Skip to content

Commit a66f409

Browse files
committed
Fix: Remove deprecated environment 't13' from configuration and related code #deploy-miljoer-service
1 parent 743da41 commit a66f409

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

apps/dolly-backend/src/main/java/no/nav/dolly/mapper/BestillingTpsMessagingStatusMapper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
@NoArgsConstructor(access = AccessLevel.PRIVATE)
2929
public final class BestillingTpsMessagingStatusMapper {
3030

31-
private static final List<String> HIDE_MILJOER = List.of("t13", "q5", "qa", "qx");
31+
private static final List<String> HIDE_MILJOER = List.of("q5", "qa", "qx");
3232
private static final String OKEY = "OK";
3333
private static final String ADVARSEL = "Advarsel: ";
3434
private static final String FEIL = "Feil: ";

apps/dolly-backend/src/test/java/no/nav/dolly/provider/api/TestgruppeControllerPostTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void createBestilling()
101101
.thenReturn(Optional.of(new UserInfo(bruker.getBrukerId(), "", "", bruker.getBrukernavn())));
102102

103103
when(miljoerConsumer.getMiljoer())
104-
.thenReturn(Mono.just(List.of("t13", "q1", "q2", "q4", "qx")));
104+
.thenReturn(Mono.just(List.of("q1", "q2", "q4", "qx")));
105105

106106
Testgruppe testgruppe = Testgruppe
107107
.builder()

apps/dolly-frontend/src/main/js/src/utils/hooks/useEnvironments.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const getArenaMiljoerUrl = '/testnav-arena-forvalteren-proxy/api/v1/miljoe'
88
const getInstMiljoerUrl = '/testnav-inst-proxy/api/v1/environment'
99
const getDokarkivMiljoerUrl = '/testnav-dokarkiv-proxy/rest/miljoe'
1010

11-
const prefetchedMiljoer = ['t13', 'q1', 'q2', 'q4', 'qx']
11+
const prefetchedMiljoer = ['q1', 'q2', 'q4', 'qx']
1212
const prefetchedPensjonMiljoer = ['q1', 'q2']
1313
const prefetchedArenaMiljoer = ['q1', 'q2', 'q4']
1414
const prefetchedInstMiljoer = { institusjonsoppholdEnvironments: ['q1', 'q2'] }

apps/dolly-frontend/src/main/js/src/utils/hooks/useOrganisasjoner.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export const useOrganisasjonBestillingStatus = (
208208

209209
export const useArbeidsforhold = (ident: string, harAaregBestilling: boolean, miljoe?: string) => {
210210
const { dollyEnvironmentList } = useDollyEnvironments()
211-
const unsupportedEnvironments = ['t13', 'qx']
211+
const unsupportedEnvironments = ['qx']
212212
const filteredEnvironments = dollyEnvironmentList
213213
?.map((miljoe) => miljoe.id)
214214
?.filter((miljoe) => !unsupportedEnvironments.includes(miljoe))

apps/faste-data-frontend/src/main/js/src/pages/FastePersonDataPage/FastePersonDataPage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const grupper = [
2424
'WIP',
2525
];
2626

27-
const miljoer = ['q1', 'q2', 'q4', 'qx', 't13'];
27+
const miljoer = ['q1', 'q2', 'q4', 'qx'];
2828

2929
const toOptions = (options: string[]) =>
3030
options.map((value) => ({

apps/miljoer-service/src/main/resources/application.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
AAD_ISSUER_URI: https://login.microsoftonline.com/62366534-1ec3-4962-8869-9b5535279d0b
22

33
config:
4-
miljoer: t13, q1, q2, q4, qx
4+
miljoer: q1, q2, q4, qx
55

66
spring:
77
main:

apps/organisasjon-forvalter/src/main/java/no/nav/organisasjonforvalter/consumer/MiljoerServiceConsumer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public Set<String> getOrgMiljoer() {
4141
.flatMap(token ->
4242
new MiljoerServiceCommand(webClient, token.getTokenValue()).call())
4343
.map(miljoer -> Flux.fromIterable(Arrays.asList(miljoer))
44-
.filter(env -> !env.equals("t13") && !env.equals("qx"))
44+
.filter(env -> !env.equals("qx"))
4545
.collect(Collectors.toSet()))
4646
.flatMap(Mono::from)
4747
.cache(Duration.ofMinutes(5))

0 commit comments

Comments
 (0)