-
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
Job for å prosessere klagevedtak fra KA #631
Conversation
Klagevedtak.Utfall.AVVIST, | ||
-> { | ||
log.error("Utfall: ${klagevedtak.utfall} fra Klageinstans er ikke håndtert.") | ||
klagevedtakRepo.markerSomFeil(klagevedtak.id) |
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.
Kan legge til en kommentar her om at tanken er at kjente FEIL kan settes tilbake til UPROSESSERT manuelt av oss i databasen etter vi har lagt til ny logikk som støtter disse tilfellene. Alternativt kan man ha en db-migreringsjobb sammen med kodeendringen.
service/src/main/kotlin/no/nav/su/se/bakover/service/klage/KlagevedtakServiceImpl.kt
Outdated
Show resolved
Hide resolved
@@ -113,6 +113,10 @@ internal class OppgaveHttpClient( | |||
"--- ${ | |||
Tidspunkt.now(clock).toOppgaveFormat() | |||
} - Opprettet av Supplerende Stønad ---\nSaksnummer : ${config.saksreferanse}" | |||
is OppgaveConfig.Klage.Vedtak -> |
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.
is OppgaveConfig.Klage.Vedtak -> | |
is OppgaveConfig.Klageinstans.Vedtak -> |
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.
Da blir det också OppgaveConfig.Klageinstans.Saksbehandler
og OppgaveConfig.Klageinstans.Attestering
for saksbehandlings & attesteringsoppgaver for klagene som behandles. Blir det ikke rart? Klageinstansen er ikke involvert i de.
Kanske kunde endre navnet fra Vedtak
til VedtakFraKlageinstans
eller noe istedet?
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.
Hmm. Hvorfor trenger vi .Attestering? Kan ikke attesteringsoppgaven heller gå inn i den vanlige flyten vår.
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.
Per nå så ser vår oppgave-config klasse såhär for Klage:
sealed class Klage(..) {
data class Saksbehandler(...): Klage()
data class Attestering(...): Klage()
data class Vedtak(...): Klage()
}
Hvis vi endrer Klage
til Klageinstans
så påverkas alla de tre. Men kanske jag kunne trekt ut Vedtak
og lagt det som en egen liksom? Är de det du tänker? 😊
client/src/main/kotlin/no/nav/su/se/bakover/client/oppgave/OppgavebeskrivelseMapper.kt
Outdated
Show resolved
Hide resolved
client/src/main/kotlin/no/nav/su/se/bakover/client/oppgave/OppgavebeskrivelseMapper.kt
Outdated
Show resolved
Hide resolved
client/src/main/kotlin/no/nav/su/se/bakover/client/oppgave/OppgavebeskrivelseMapper.kt
Outdated
Show resolved
Hide resolved
client/src/main/kotlin/no/nav/su/se/bakover/client/oppgave/OppgavebeskrivelseMapper.kt
Outdated
Show resolved
Hide resolved
client/src/main/kotlin/no/nav/su/se/bakover/client/oppgave/OppgavebeskrivelseMapper.kt
Outdated
Show resolved
Hide resolved
data class Handling( | ||
override val saksnummer: Saksnummer, | ||
override val aktørId: AktørId, | ||
override val journalpostId: JournalpostId, |
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.
Tror denne er optional fra Klageinstansen. aka. nullable
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.
Den står som required i deras schema.
Ref: https://github.com/navikt/kabal-api/blob/main/docs/schema/klagevedtak-fattet.json (vedtaksbrevReferanse
)
KlagevedtakUtfall.UGUNST -> OppgaveConfig.Klage.Vedtak.Handling( | ||
saksnummer = klage.saksnummer, | ||
aktørId = aktørId, | ||
journalpostId = JournalpostId(klagevedtak.vedtaksbrevReferanse), |
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.
vedtaksbrevReferanse burde være nullable. Hvor i overgangen vil dette smelle? Kanskje legge inn en test som har vedtaksbrevReferanse som null 😁
Co-authored-by: John Andre Hestad <[email protected]>
No description provided.