Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legg til ny river for å hente arbeidsforhold #630

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

bjerga
Copy link
Contributor

@bjerga bjerga commented Jul 23, 2024

No description provided.

@bjerga bjerga requested a review from a team as a code owner July 23, 2024 14:00
@bjerga
Copy link
Contributor Author

bjerga commented Jul 23, 2024

Testet OK.

@@ -46,7 +46,7 @@ class ArbeidsforholdLoeser(
override fun accept(): River.PacketValidation =
River.PacketValidation {
it.demandValues(
Key.BEHOV to BehovType.ARBEIDSFORHOLD.name,
Key.BEHOV to BehovType.HENT_ARBEIDSFORHOLD.name,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Betyr dette at både ArbeidsforholdLoeser og HentArbeidsforholdRiver løser de samme behovene samtidig? så førstemann som får svar blir brukt.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nei, fordi den ene krever at noen av verdiene ligger på rot, mens den andre krever at de ligger nested inni Key.DATA.

Key.EVENT_NAME to eventName.toJson(),
Key.UUID to transaksjonId.toJson(),
Key.DATA to
data
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Har ikke tenkt på dete før, men blir allt som er i data feltet som kommer inn til riveren sendt med videre her?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Det stemmer. Det er sånn "state" blir bevart i de stateless servicene.

@bjerga bjerga merged commit d08aaa4 into main Jul 30, 2024
67 checks passed
@bjerga bjerga deleted the dev/ny-river-hent-arbeidsforhold branch July 30, 2024 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants