-
Notifications
You must be signed in to change notification settings - Fork 1
Legg til klassifisert-endepunkt, send periode til frontend, lagre begrunnelse #337
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
Legg til klassifisert-endepunkt, send periode til frontend, lagre begrunnelse #337
The head ref may contain hidden characters: "st\u00F8tte-for-lagring-av-begrunnelse-for-endring"
Conversation
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.
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 |
...nntekt-api/src/main/kotlin/no/nav/dagpenger/inntekt/opptjeningsperiode/Opptjeningsperiode.kt
Show resolved
Hide resolved
dp-inntekt-api/src/main/kotlin/no/nav/dagpenger/inntekt/db/PostgresInntektStore.kt
Show resolved
Hide resolved
fb6cec9
to
323aa67
Compare
323aa67
to
50bec50
Compare
50bec50
to
0f97ffc
Compare
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]>
…rt inntekt 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]>
Co-authored-by: John Martin Lindseth <[email protected]>
Da er det likt som perioden til hele InntekterDTO. Det er også mer presist.
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]>
4c900dd
to
3b7c6e1
Compare
No description provided.