-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
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, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
No description provided.