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

🙈 Slipp igjennom IngenGjeldendeIdentException ved consumering av EndringPaOppfolgingBruker #670

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
import no.nav.common.rest.client.RestClient;
import no.nav.common.token_client.builder.AzureAdTokenClientBuilder;
import no.nav.common.token_client.builder.TokenXTokenClientBuilder;
import no.nav.common.token_client.client.AzureAdMachineToMachineTokenClient;
import no.nav.common.token_client.client.AzureAdOnBehalfOfTokenClient;
import no.nav.common.token_client.client.MachineToMachineTokenClient;
import no.nav.common.token_client.client.TokenXOnBehalfOfTokenClient;
import no.nav.veilarboppfolging.client.amttiltak.AmtTiltakClient;
import no.nav.veilarboppfolging.client.digdir_krr.DigdirClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,15 @@ public void consumeEndringPaOppfolgingBruker(ConsumerRecord<String, EndringPaaOp
"Denne loggmeldingen er kun til informasjon slik at vi eventuelt kan fange opp dette scenariet til ettertid.");
}

kvpService.avsluttKvpVedEnhetBytte(endringPaBruker);
iservService.oppdaterUtmeldingsStatus(KanskjeIservBruker.Companion.of(endringPaBruker));
oppfolgingsenhetEndringService.behandleBrukerEndring(endringPaBruker);
oppfolgingEndringService.oppdaterOppfolgingMedStatusFraArena(endringPaBruker);
sisteEndringPaaOppfolgingBrukerService.lagreSisteEndring(brukerFnr, endringPaBruker.getSistEndretDato());
try {
kvpService.avsluttKvpVedEnhetBytte(endringPaBruker);
iservService.oppdaterUtmeldingsStatus(KanskjeIservBruker.Companion.of(endringPaBruker));
oppfolgingsenhetEndringService.behandleBrukerEndring(endringPaBruker);
oppfolgingEndringService.oppdaterOppfolgingMedStatusFraArena(endringPaBruker);
sisteEndringPaaOppfolgingBrukerService.lagreSisteEndring(brukerFnr, endringPaBruker.getSistEndretDato());
} catch (IngenGjeldendeIdentException e) {
log.warn("Fant ikke gjeldende ident ved behandling av endringPaOppfolgingBruker melding");
}
}

private boolean erEndringGammel(Fnr fnr, ZonedDateTime nyEndringTidspunkt) {
Expand Down