-
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
Chore: koderydding del 4 #4500
Merged
Merged
Chore: koderydding del 4 #4500
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…om den var en subtype av
…å lage egen tilTidslinje-funksjon
idaame
commented
Apr 19, 2024
@@ -637,6 +637,5 @@ fun ISanityBegrunnelse.erGjeldendeForBrevPeriodeType( | |||
vedtaksperiode.fom, | |||
erUtbetalingEllerDeltBostedIPeriode, | |||
) | |||
return this.periodeType == brevPeriodeType || this.periodeType == BrevPeriodeType.IKKE_RELEVANT || | |||
(this.periodeType == BrevPeriodeType.FORTSATT_INNVILGET && brevPeriodeType == BrevPeriodeType.FORTSATT_INNVILGET_NY) |
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.
Denne sjekken på fortsatt innvilget tolker jeg at kun var der fordi:
- Brevperiodetypen som kommer fra sanity har verdi FORTSATT_INNVILGET
- Vi har laget en ny brevperiodetype for fortsatt innvilget som har postfix _NY. For at disse skal verifisere som samme verdi må man være eksplisitt da
this.periodeType == brevPeriodeType
ikke fanger opp dette
halvorbmundal
approved these changes
Apr 19, 2024
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
💰 Hva skal gjøres, og hvorfor?
Skriv 1 eller 2 setninger om hvilken funksjonell endring som blir implementert. Ta med en lenke til Favro og
skriv en kort beskrivelse av hvorfor endringen skal gjøres.
Favro: https://favro.com/organization/98c34fb974ce445eac854de0/1844bbac3b6605eacc8f5543?card=NAV-20565
Sletter enda mer ubrukt kode. Største endringene her er at jeg slette enum-verdier for BrevPeriodeType som er deprecated, men rimelig sikker på at det skal gå bra da det aldri er noe vi lagrer ned. Kan verifisere i preprod før merge:)
Burde leses commit for commit!
🔎️ Er det noe spesielt du ønsker tilbakemelding om?
Er det noe du er usikker på eller ønsker å diskutere? Beskriv det gjerne her eller kommenter koden det gjelder.
Nei
✅ Checklist
Har du husket alle punktene i listen?
Jeg har ikke skrevet tester fordi:
Finnes eksisterende tester, jeg bare sletter kode
💬 Ønsker du en muntlig gjennomgang?