Skip to content

Conversation

JMLindseth
Copy link
Contributor

No description provided.

@JMLindseth JMLindseth requested a review from a team as a code owner May 30, 2025 08:41
@JMLindseth JMLindseth requested a review from Copilot May 30, 2025 08:41
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a classified endpoint, extends the API to send period information to the frontend, and updates the database schema and mapping logic to include a new "begrunnelse" field. Key changes include:

  • Package renaming from v1 to api/v1 for improved consistency.
  • Addition of period data and "begrunnelse" in both request/response models and DB migrations.
  • Introduction of a new endpoint in the v3 API for handling classified income.

Reviewed Changes

Copilot reviewed 29 out of 29 changed files in this pull request and generated 2 comments.

File Description
dp-inntekt-api/src/test/kotlin/no/nav/dagpenger/inntekt/api/v1/* Package updates and adjusted imports for test endpoints
dp-inntekt-api/src/main/resources/db/migration/* Added new migration files for period columns and begrunnelse
dp-inntekt-api/src/main/kotlin/no/nav/dagpenger/inntekt/* Updated mapping, mutable period fields, and DB queries to deal with new fields
dp-inntekt-api/src/main/kotlin/no/nav/dagpenger/inntekt/api/v3/KlassifisertInntektRouteV3.kt Introduced new endpoint for classified income with period overrides

@vskjefst vskjefst force-pushed the støtte-for-lagring-av-begrunnelse-for-endring branch from fb6cec9 to 323aa67 Compare June 4, 2025 07:45
@vskjefst vskjefst force-pushed the støtte-for-lagring-av-begrunnelse-for-endring branch from 323aa67 to 50bec50 Compare June 6, 2025 08:26
@JMLindseth JMLindseth force-pushed the støtte-for-lagring-av-begrunnelse-for-endring branch from 50bec50 to 0f97ffc Compare June 10, 2025 08:05
vskjefst and others added 18 commits June 10, 2025 10:48
Da blir ikke rota besudlet med pakker ved resjonering av APIet
Ny versjon av det som ligger i InntektRoute. Slår sammen aktørId og fnr til personidentifikator, og tar i tillegg inn periodeFraOgMed og periodeTilOgMed, som erstatter periodene utledet av Opptjeningsperiode gitt beregningsDato.
Eller iallfall tidlig. Hvis VaktmesterTest er den siste testen som kjøres, så feiler uthenting av Prometheus-metrikker.
Frontend har fått denne, og den kommer tilbake til backend i POST-kallet
Fiks også småfeil i sql'en, som også er fikset på main.
Verifiser også at det blir med periode ved henting av uklassifisert inntekt, så frontend ikke trenger å beregne det selv.

Co-authored-by: Vegard Skjefstad <[email protected]>
Vi må håndtere at den kan være null når vi joiner manuelt_redigert med innntekt.

Co-authored-by: Vegard Skjefstad <[email protected]>
Da er det likt som perioden til hele InntekterDTO.
Det er også mer presist.
JMLindseth and others added 2 commits June 10, 2025 10:48
Co-authored-by: Vegard Skjefstad <[email protected]>
Nå er det mer i tråd med anbefalingene i Nais-konsollen.

Co-authored-by: Vegard Skjefstad <[email protected]>
@JMLindseth JMLindseth force-pushed the støtte-for-lagring-av-begrunnelse-for-endring branch from 4c900dd to 3b7c6e1 Compare June 10, 2025 08:48
@JMLindseth JMLindseth merged commit 238c7e5 into main Jun 10, 2025
4 checks passed
@JMLindseth JMLindseth deleted the støtte-for-lagring-av-begrunnelse-for-endring branch June 10, 2025 09:46
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