-
Notifications
You must be signed in to change notification settings - Fork 1
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
prioriter navn og kjønn som kommer fra PDL og ikke Freg #5068
Conversation
Signed-off-by: FredrikP <[email protected]>
Signed-off-by: FredrikP <[email protected]>
Signed-off-by: FredrikP <[email protected]>
Signed-off-by: FredrikP <[email protected]>
src/main/kotlin/no/nav/familie/ba/sak/integrasjoner/pdl/domene/PdlHentPersonResponse.kt
Outdated
Show resolved
Hide resolved
fun List<PdlNavn>.filtrerNavnPåKilde(): PdlNavn? = | ||
this | ||
.filter { it.metadata.historisk == false } | ||
.minByOrNull { PdlMaster.valueOf(it.metadata.master.uppercase()).prioritet } |
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.
Vil fungere dårlig hvis det er andre kilder enn PDL og FREG
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.
Lagt inn en when-sjekk i stedet for enum nå :)
Signed-off-by: FredrikP <[email protected]>
Signed-off-by: FredrikP <[email protected]>
|
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.
Sikkert lurt å teste i preprod
💰 Hva skal gjøres, og hvorfor?
Favro
Ref pdl-doc så ønsker vi å bruke PDL som master og ikke Freg når vi får verdier fra begge.
Velger derfor å ta med metadata, master og historisk for å kunne filtrere ut når det er flere kilder til navn/kjønn.
Dokumentasjon om metadata og kilder
✅ Checklist
Har du husket alle punktene i listen?