1
1
package no .nav .pto .veilarbportefolje .persononinfo ;
2
2
3
- import io .getunleash .DefaultUnleash ;
4
3
import lombok .RequiredArgsConstructor ;
5
4
import lombok .SneakyThrows ;
6
5
import lombok .extern .slf4j .Slf4j ;
7
6
import no .nav .common .types .identer .AktorId ;
8
7
import no .nav .common .types .identer .Fnr ;
9
- import no .nav .pto .veilarbportefolje .config .FeatureToggle ;
10
8
import no .nav .pto .veilarbportefolje .kafka .KafkaCommonNonKeyedConsumerService ;
11
9
import no .nav .pto .veilarbportefolje .opensearch .OpensearchIndexer ;
12
10
import no .nav .pto .veilarbportefolje .opensearch .OpensearchIndexerV2 ;
@@ -39,7 +37,6 @@ public class PdlBrukerdataKafkaService extends KafkaCommonNonKeyedConsumerServic
39
37
private final BarnUnder18AarService barnUnder18AarService ;
40
38
private final OpensearchIndexer opensearchIndexer ;
41
39
private final OpensearchIndexerV2 opensearchIndexerV2 ;
42
- private final DefaultUnleash defaultUnleash ;
43
40
44
41
@ Override
45
42
@ SneakyThrows
@@ -60,14 +57,11 @@ public void behandleKafkaMeldingLogikk(PdlDokument pdlDokument) {
60
57
if (pdlIdentRepository .harAktorIdUnderOppfolging (aktorIder )) {
61
58
AktorId aktivAktorId = hentAktivAktor (pdlIdenter );
62
59
secureLog .info ("Det oppsto en PDL endring aktoer: {}" , aktivAktorId );
63
-
64
60
handterIdentEndring (pdlIdenter );
65
61
66
62
handterBrukerDataEndring (pdlDokument .getHentPerson (), pdlIdenter );
67
63
68
- if (!FeatureToggle .stoppOpensearchIndeksering (defaultUnleash )) {
69
- oppdaterOpensearch (aktivAktorId , pdlIdenter );
70
- }
64
+ oppdaterOpensearch (aktivAktorId , pdlIdenter );
71
65
}
72
66
73
67
if (barnUnder18AarService .erFnrBarnAvForelderUnderOppfolging (fnrs )) {
@@ -77,7 +71,6 @@ public void behandleKafkaMeldingLogikk(PdlDokument pdlDokument) {
77
71
78
72
handterBarnEndring (pdlDokument .getHentPerson (), pdlIdenter );
79
73
80
- if (!FeatureToggle .stoppOpensearchIndeksering (defaultUnleash )) {
81
74
List <Fnr > foreldreTilBarn = barnUnder18AarService .finnForeldreTilBarn (aktivtFnr );
82
75
83
76
foreldreTilBarn .forEach (fnrForelder -> {
@@ -89,7 +82,6 @@ public void behandleKafkaMeldingLogikk(PdlDokument pdlDokument) {
89
82
}
90
83
}
91
84
);
92
- }
93
85
}
94
86
}
95
87
0 commit comments