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

Bruk wrappers i forespoersel #808

Merged
merged 1 commit into from
Dec 17, 2024
Merged

Bruk wrappers i forespoersel #808

merged 1 commit into from
Dec 17, 2024

Conversation

bjerga
Copy link
Contributor

@bjerga bjerga commented Dec 16, 2024

Bytter felt i Forespoersel for orgnr og fnr fra typen String til typene Orgnr og Fnr for å gjøre det mer typesikkert.

@bjerga bjerga requested a review from a team as a code owner December 16, 2024 16:20
@bjerga
Copy link
Contributor Author

bjerga commented Dec 17, 2024

Testet OK.

Copy link
Contributor

@magnusae magnusae left a comment

Choose a reason for hiding this comment

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

orgnr = orgnr.verdi,
fnr = bjarneBetjent.ident!!,
orgnr = orgnr,
fnr = bjarneBetjent.ident!!.let(::Fnr),
Copy link
Contributor

@magnusae magnusae Dec 17, 2024

Choose a reason for hiding this comment

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

Hvordan har det seg egentlig at FullPerson sitt felt ident er nullable (som gjør at vi må double-bange denne)? Gir det mening, eller stammer det bare fra noe gammel moro?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Jeg vet ikke hvorfor det ble gjort, men det hadde vært bedre om den ikke var det. Vi bruker jo typisk fnr for å hente personinfo, så man skulle trodd at man alltid hadde fnr.

@bjerga bjerga merged commit 7cc5b3c into main Dec 17, 2024
74 checks passed
@bjerga bjerga deleted the dev/wrappers-i-forespoersel branch December 17, 2024 09:49
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