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

Nav 24098 tilpasser opphørsperiode for lovverk 2025 #1064

Merged
merged 5 commits into from
Feb 3, 2025

Conversation

thoalm
Copy link
Contributor

@thoalm thoalm commented Jan 31, 2025

💰 Hva skal gjøres, og hvorfor?

Favro: https://favro.com/organization/98c34fb974ce445eac854de0/1844bbac3b6605eacc8f5543?card=NAV-24098

Oppdaterer mapTilOpphørsperioder til å ta høyde for ny lovverksendring.

🔎️ Er det noe spesielt du ønsker tilbakemelding om?

Se kommentarer i PR.

✅ 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 👇

💬 Ønsker du en muntlig gjennomgang?

  • Ja
  • Nei

@@ -127,18 +135,21 @@ private fun finnOpphørsperiodeEtterSisteUtbetalingsperiode(

val erFramtidigOpphørPgaBarnehageplass =
vilkårsvurdering.personResultater.any { personResultat ->
Copy link
Contributor

Choose a reason for hiding this comment

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

Denne og på linje 142. Skal det fortsatt være any()? Nå vil den bare gi første og beste treff, men hva hvis det er flere barn med forskjellige fødselsdatoer? F.eks at barn1 treffer gammelt lovverk og barn2 treffer nytt lovverk.

Copy link
Contributor

Choose a reason for hiding this comment

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

Den variabelen brukes til å sette begrunnelse, og den skal vel gjelde for alle lovverk

emptyList(),
)
@Test
fun `skal mappe opphørte perioder for forskjellige barn som treffer før og etter lovverk feb 2025`() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Gir denne testen i det hele tatt mening? Ref. kommentar med any() så får man vel ikke testet dette på noen måte.

Copy link
Contributor

@MagnusTonnessen MagnusTonnessen Feb 3, 2025

Choose a reason for hiding this comment

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

Lovverk 2024 og lovverk 2025 gir forskjellige opphørsperioder, så denne testen vil feile uten logikken dere har lagt til, fordi man bare får én opphørsperiode

@GardOS GardOS requested a review from a team January 31, 2025 13:42
@GardOS GardOS marked this pull request as ready for review January 31, 2025 13:46
Copy link
Contributor

@UyQuangNguyen UyQuangNguyen left a comment

Choose a reason for hiding this comment

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

LGTM! ⭐ ⭐

Copy link
Contributor

@MagnusTonnessen MagnusTonnessen left a comment

Choose a reason for hiding this comment

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

@GardOS GardOS merged commit a03f7be into main Feb 3, 2025
12 checks passed
@GardOS GardOS deleted the NAV_24098_tilpasser_opphørsperiode_for_lovverk_2025 branch February 3, 2025 08:58
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.

4 participants