-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/endringsmelding frontend refaktor (#3465)
* Stor refaktorering av endringsmelding-frontend, skrevet oss vekk fra redux til fordel for useState * Endret en god del av oppsettet for henting av identer og logging i endringsmelding løypa * Flyttet DollyLogbackEncoder til serlvet-core og reactive-core og endret til å peke på riktig sted for de respektive appene * Fix av dolly frontend på visning av gammel type ident * Fikset visning bug og unødvendig logging av empty warning liste i endringsmelding-frontend * Skrur av sjekk i prod på EksisterPersonCommand etter diskusjon med Kristen, skal kunne opprette fødsels og dødsmelding på vaskede identer i prodlast miljøene * Implement WebFilter and update error handling - Added WebFilter implementation to OpenApiConfig for path '/swagger' redirect. Updated error handling in FoedselsmeldingService and DoedsmeldingService to remove the check for "p" environment and modify the error message to better reflect the status of identity creation or deletion in the requested environment. * Refactor DoedsmeldingService error handling - Error handling in DoedsmeldingService has been refactored to improve clarity and accuracy. The check for "p" environment has been removed and the code has been streamlined to directly send a death cancellation message only if a person is marked as deceased. This helps to accurately reflect the status of identity handling in the requested environment --------- Co-authored-by: kristenhaerum <[email protected]>
- Loading branch information
Showing
124 changed files
with
1,008 additions
and
1,509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 8 additions & 7 deletions
15
apps/dolly-frontend/src/main/js/src/service/services/tpsmessaging/TpsMessagingService.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
import Request from '@/service/services/Request' | ||
|
||
const TPS_MESSAGING_URL = `/testnav-tps-messaging-service/api/v1/personer` | ||
const TPS_MESSAGING_URL_V1 = `/testnav-tps-messaging-service/api/v1/personer` | ||
const TPS_MESSAGING_URL_V2 = `/testnav-tps-messaging-service/api/v2/personer` | ||
|
||
const getTpsMessagingUrl = (ident, miljoe) => `${TPS_MESSAGING_URL}/${ident}?miljoer=${miljoe}` | ||
const getTpsMessagingUrlAllEnvs = (ident) => `${TPS_MESSAGING_URL}/${ident}` | ||
const getTpsMessagingUrl_V2 = (miljoe) => `${TPS_MESSAGING_URL_V2}/ident?miljoer=${miljoe}` | ||
const getTpsMessagingUrlAllEnvs_V2 = () => `${TPS_MESSAGING_URL_V2}/ident` | ||
|
||
export default { | ||
getTpsPersonInfo(ident, miljoe) { | ||
return Request.get(getTpsMessagingUrl(ident, miljoe)) | ||
return Request.post(getTpsMessagingUrl_V2(miljoe), ident) | ||
}, | ||
getTpsPersonInfoAllEnvs(ident) { | ||
return Request.get(getTpsMessagingUrlAllEnvs(ident)) | ||
return Request.post(getTpsMessagingUrlAllEnvs_V2(), ident) | ||
}, | ||
deleteBankkontoNorsk(ident) { | ||
return Request.delete(`${TPS_MESSAGING_URL}/${ident}/bankkonto-norsk`) | ||
return Request.delete(`${TPS_MESSAGING_URL_V1}/${ident}/bankkonto-norsk`) | ||
}, | ||
deleteBankkontoUtenlandsk(ident) { | ||
return Request.delete(`${TPS_MESSAGING_URL}/${ident}/bankkonto-utenlandsk`) | ||
return Request.delete(`${TPS_MESSAGING_URL_V1}/${ident}/bankkonto-utenlandsk`) | ||
}, | ||
} |
Oops, something went wrong.