Skip to content

Commit

Permalink
Fjerne prosess vilkar soknadsfrist v1 forsøk 2 (#6930)
Browse files Browse the repository at this point in the history
* Fjerner v1 av prosess-vilkar-soknadsfrist

* Fjerner gammel v2

* Oppdaterer deps
  • Loading branch information
hallvardastark authored Dec 16, 2024
1 parent e3932b2 commit 3b46079
Show file tree
Hide file tree
Showing 43 changed files with 14 additions and 3,877 deletions.
4 changes: 0 additions & 4 deletions _mocks/featureToggles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ export const featureTogglesFactory = () => [
key: 'NYE_NOKKELTALL',
value: process.env.VITE_NYE_NOKKELTALL,
},
{
key: 'PROSESS_VILKAR_SOKNADSFRIST',
value: process.env.VITE_PROSESS_VILKAR_SOKNADSFRIST,
},
{
key: 'UTVIDET_VARSELFELT',
value: process.env.VITE_UTVIDET_VARSELFELT,
Expand Down
2 changes: 0 additions & 2 deletions deploy/dev-fss-k9saksbehandling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ spec:
value: "true"
- name: NYE_NOKKELTALL
value: "true"
- name: PROSESS_VILKAR_SOKNADSFRIST
value: "true"
- name: UTVIDET_VARSELFELT
value: "true"
- name: SKILL_UT_PRIVATPERSON
Expand Down
2 changes: 0 additions & 2 deletions deploy/prod-fss-k9saksbehandling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ spec:
value: "true"
- name: NYE_NOKKELTALL
value: "false"
- name: PROSESS_VILKAR_SOKNADSFRIST
value: "false"
- name: UTVIDET_VARSELFELT
value: "true"
- name: SKILL_UT_PRIVATPERSON
Expand Down
4 changes: 0 additions & 4 deletions feature-toggles.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@
"key": "NYE_NOKKELTALL",
"value": "${NYE_NOKKELTALL}"
},
{
"key": "PROSESS_VILKAR_SOKNADSFRIST",
"value": "${PROSESS_VILKAR_SOKNADSFRIST}"
},
{
"key": "UTVIDET_VARSELFELT",
"value": "${UTVIDET_VARSELFELT}"
Expand Down
2 changes: 1 addition & 1 deletion packages/behandling-omsorgspenger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"@k9-sak-web/fakta-barn-oms": "1.0.0",
"@k9-sak-web/fakta-inntektsmelding": "1.0.0",
"@k9-sak-web/fakta-omsorgen-for": "1.0.0",
"@k9-sak-web/gui": "1.0.0",
"@k9-sak-web/konstanter": "1.0.0",
"@k9-sak-web/prosess-aarskvantum-oms": "1.0.0",
"@k9-sak-web/prosess-vilkar-soknadsfrist": "1.0.0",
"@k9-sak-web/rest-api": "1.0.0",
"@k9-sak-web/rest-api-hooks": "1.0.0",
"@k9-sak-web/types": "1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import behandlingStatus from '@fpsak-frontend/kodeverk/src/behandlingStatus';
import kodeverkTyper from '@fpsak-frontend/kodeverk/src/kodeverkTyper';
import vilkarType from '@fpsak-frontend/kodeverk/src/vilkarType';
import { ProsessStegPanelDef } from '@k9-sak-web/behandling-felles';
import SoknadsfristVilkarProsessIndexV2 from '@k9-sak-web/gui/prosess/vilkar-soknadsfrist/SoknadsfristVilkarProsessIndex.js';
import SoknadsfristVilkarProsessIndex from '@k9-sak-web/gui/prosess/vilkar-soknadsfrist/SoknadsfristVilkarProsessIndex.js';
import { konverterKodeverkTilKode } from '@k9-sak-web/lib/kodeverk/konverterKodeverkTilKode.js';
import SoknadsfristVilkarProsessIndex from '@k9-sak-web/prosess-vilkar-soknadsfrist-v2';
import { OmsorgspengerBehandlingApiKeys } from '../../../data/omsorgspengerBehandlingApi';

class SoknadsfristPanelDef extends ProsessStegPanelDef {
Expand All @@ -16,9 +15,6 @@ class SoknadsfristPanelDef extends ProsessStegPanelDef {
getKomponent = props => {
const deepCopyProps = JSON.parse(JSON.stringify(props));
konverterKodeverkTilKode(deepCopyProps, false);
if (props.featureToggles?.PROSESS_VILKAR_SOKNADSFRIST) {
return <SoknadsfristVilkarProsessIndexV2 {...props} {...deepCopyProps} />;
}
return <SoknadsfristVilkarProsessIndex {...props} {...deepCopyProps} />;
};

Expand Down
2 changes: 1 addition & 1 deletion packages/behandling-opplaeringspenger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"@k9-sak-web/fakta-medisinsk-vilkar": "1.0.0",
"@k9-sak-web/fakta-om-barnet": "1.0.0",
"@k9-sak-web/fakta-omsorgen-for": "1.0.0",
"@k9-sak-web/gui": "1.0.0",
"@k9-sak-web/konstanter": "1.0.0",
"@k9-sak-web/prosess-uttak": "1.0.0",
"@k9-sak-web/prosess-vilkar-soknadsfrist": "1.0.0",
"@k9-sak-web/prosess-vilkar-sykdom": "1.0.0",
"@k9-sak-web/rest-api": "1.0.0",
"@k9-sak-web/rest-api-hooks": "1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import behandlingStatus from '@fpsak-frontend/kodeverk/src/behandlingStatus';
import kodeverkTyper from '@fpsak-frontend/kodeverk/src/kodeverkTyper';
import vilkarType from '@fpsak-frontend/kodeverk/src/vilkarType';
import { ProsessStegPanelDef } from '@k9-sak-web/behandling-felles';
import SoknadsfristVilkarProsessIndexV2 from '@k9-sak-web/gui/prosess/vilkar-soknadsfrist/SoknadsfristVilkarProsessIndex.js';
import SoknadsfristVilkarProsessIndex from '@k9-sak-web/gui/prosess/vilkar-soknadsfrist/SoknadsfristVilkarProsessIndex.js';
import { konverterKodeverkTilKode } from '@k9-sak-web/lib/kodeverk/konverterKodeverkTilKode.js';
import SoknadsfristVilkarProsessIndex from '@k9-sak-web/prosess-vilkar-soknadsfrist-v2';
import { OpplaeringspengerBehandlingApiKeys } from '../../../data/opplaeringspengerBehandlingApi';

class SoknadsfristPanelDef extends ProsessStegPanelDef {
Expand All @@ -16,9 +15,7 @@ class SoknadsfristPanelDef extends ProsessStegPanelDef {
getKomponent = props => {
const deepCopyProps = JSON.parse(JSON.stringify(props));
konverterKodeverkTilKode(deepCopyProps, false);
if (props.featureToggles?.PROSESS_VILKAR_SOKNADSFRIST) {
return <SoknadsfristVilkarProsessIndexV2 {...props} {...deepCopyProps} />;
}

return <SoknadsfristVilkarProsessIndex {...props} {...deepCopyProps} />;
};

Expand Down
2 changes: 1 addition & 1 deletion packages/behandling-pleiepenger-sluttfase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"@k9-sak-web/fakta-inntektsmelding": "1.0.0",
"@k9-sak-web/fakta-medisinsk-vilkar": "1.0.0",
"@k9-sak-web/fakta-utenlandsopphold": "1.0.0",
"@k9-sak-web/gui": "1.0.0",
"@k9-sak-web/konstanter": "1.0.0",
"@k9-sak-web/prosess-uttak": "1.0.0",
"@k9-sak-web/prosess-vilkar-soknadsfrist": "1.0.0",
"@k9-sak-web/prosess-vilkar-sykdom": "1.0.0",
"@k9-sak-web/rest-api": "1.0.0",
"@k9-sak-web/rest-api-hooks": "1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import behandlingStatus from '@fpsak-frontend/kodeverk/src/behandlingStatus';
import kodeverkTyper from '@fpsak-frontend/kodeverk/src/kodeverkTyper';
import vilkarType from '@fpsak-frontend/kodeverk/src/vilkarType';
import { ProsessStegPanelDef } from '@k9-sak-web/behandling-felles';
import SoknadsfristVilkarProsessIndexV2 from '@k9-sak-web/gui/prosess/vilkar-soknadsfrist/SoknadsfristVilkarProsessIndex.js';
import SoknadsfristVilkarProsessIndex from '@k9-sak-web/gui/prosess/vilkar-soknadsfrist/SoknadsfristVilkarProsessIndex.js';
import { konverterKodeverkTilKode } from '@k9-sak-web/lib/kodeverk/konverterKodeverkTilKode.js';
import SoknadsfristVilkarProsessIndex from '@k9-sak-web/prosess-vilkar-soknadsfrist-v2';
import { PleiepengerSluttfaseBehandlingApiKeys } from '../../../data/pleiepengerSluttfaseBehandlingApi';

class SoknadsfristPanelDef extends ProsessStegPanelDef {
Expand All @@ -16,9 +15,6 @@ class SoknadsfristPanelDef extends ProsessStegPanelDef {
getKomponent = props => {
const deepCopyProps = JSON.parse(JSON.stringify(props));
konverterKodeverkTilKode(deepCopyProps, false);
if (props.featureToggles?.PROSESS_VILKAR_SOKNADSFRIST) {
return <SoknadsfristVilkarProsessIndexV2 {...props} {...deepCopyProps} />;
}
return <SoknadsfristVilkarProsessIndex {...props} {...deepCopyProps} />;
};

Expand Down
2 changes: 1 addition & 1 deletion packages/behandling-pleiepenger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"@k9-sak-web/fakta-om-barnet": "1.0.0",
"@k9-sak-web/fakta-omsorgen-for": "1.0.0",
"@k9-sak-web/fakta-utenlandsopphold": "1.0.0",
"@k9-sak-web/gui": "1.0.0",
"@k9-sak-web/konstanter": "1.0.0",
"@k9-sak-web/prosess-uttak": "1.0.0",
"@k9-sak-web/prosess-vilkar-soknadsfrist": "1.0.0",
"@k9-sak-web/prosess-vilkar-sykdom": "1.0.0",
"@k9-sak-web/rest-api": "1.0.0",
"@k9-sak-web/rest-api-hooks": "1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import behandlingStatus from '@fpsak-frontend/kodeverk/src/behandlingStatus';
import kodeverkTyper from '@fpsak-frontend/kodeverk/src/kodeverkTyper';
import vilkarType from '@fpsak-frontend/kodeverk/src/vilkarType';
import { ProsessStegPanelDef } from '@k9-sak-web/behandling-felles';
import SoknadsfristVilkarProsessIndexV2 from '@k9-sak-web/gui/prosess/vilkar-soknadsfrist/SoknadsfristVilkarProsessIndex.js';
import SoknadsfristVilkarProsessIndex from '@k9-sak-web/gui/prosess/vilkar-soknadsfrist/SoknadsfristVilkarProsessIndex.js';
import { konverterKodeverkTilKode } from '@k9-sak-web/lib/kodeverk/konverterKodeverkTilKode.js';
import SoknadsfristVilkarProsessIndex from '@k9-sak-web/prosess-vilkar-soknadsfrist-v2';
import { PleiepengerBehandlingApiKeys } from '../../../data/pleiepengerBehandlingApi';

class SoknadsfristPanelDef extends ProsessStegPanelDef {
Expand All @@ -16,9 +15,6 @@ class SoknadsfristPanelDef extends ProsessStegPanelDef {
getKomponent = props => {
const deepCopyProps = JSON.parse(JSON.stringify(props));
konverterKodeverkTilKode(deepCopyProps, false);
if (props.featureToggles?.PROSESS_VILKAR_SOKNADSFRIST) {
return <SoknadsfristVilkarProsessIndexV2 {...props} {...deepCopyProps} />;
}
return <SoknadsfristVilkarProsessIndex {...props} {...deepCopyProps} />;
};

Expand Down
1 change: 0 additions & 1 deletion packages/prosess-vilkar-soknadsfrist-v2/index.ts

This file was deleted.

28 changes: 0 additions & 28 deletions packages/prosess-vilkar-soknadsfrist-v2/package.json

This file was deleted.

This file was deleted.

Loading

0 comments on commit 3b46079

Please sign in to comment.