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

prioriter navn og kjønn som kommer fra PDL og ikke Freg #5068

Merged
merged 7 commits into from
Feb 12, 2025

Conversation

fredrikpf
Copy link
Contributor

@fredrikpf fredrikpf commented Feb 10, 2025

💰 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?

  • Jeg har testet mine endringer i henhold til akseptansekriteriene 🕵️
  • Jeg har config- eller sql-endringer. I så fall, husk manuell deploy til miljø for å verifisere endringene.
  • Jeg har skrevet tester. Hvis du ikke har skrevet tester, beskriv hvorfor under 👇

@fredrikpf fredrikpf requested a review from a team as a code owner February 10, 2025 16:50
fun List<PdlNavn>.filtrerNavnPåKilde(): PdlNavn? =
this
.filter { it.metadata.historisk == false }
.minByOrNull { PdlMaster.valueOf(it.metadata.master.uppercase()).prioritet }
Copy link
Contributor

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

Copy link
Contributor Author

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å :)

Copy link
Contributor

@stigebil stigebil left a 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

@fredrikpf fredrikpf added this pull request to the merge queue Feb 11, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 11, 2025
@schmelita schmelita added this pull request to the merge queue Feb 12, 2025
Merged via the queue into main with commit 835d955 Feb 12, 2025
9 checks passed
@schmelita schmelita deleted the bruk-pdl-som-master-navn-kjonn branch February 12, 2025 09:11
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.

3 participants