From ba3e9bcca75ec90d246f8c8b2d6df2146f7120a3 Mon Sep 17 00:00:00 2001 From: Christopher Berge Hove Date: Fri, 27 Oct 2023 11:07:08 +0200 Subject: [PATCH] fix: fusionLegacyEnvIdentifier in capital letters (#425) fusionLegacyEnvIdentifier should always be returned in capital letters , some application check this and are case sensitive # Description > Please include a summary of the change and which issue is fixed. List any external dependencies that are required for this change. - [ ] PR title and description are to the point and understandable - [ ] I have performed a self-review of my own code' Please select version type the purposed change: - [ ] major - [ ] minor - [x] patch - [ ] none External Relations - [ ] database migration ## Changeset fusionLegacyEnvIdentifier should always be returned in capital letters , some application check this and are case sensitive --------- Co-authored-by: Noggling --- .changeset/pr-425-1576203123.md | 5 +++++ client/packages/portal-client/src/portal.config.json | 2 +- .../src/app/utils/app-get-legacy-client-config.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/pr-425-1576203123.md diff --git a/.changeset/pr-425-1576203123.md b/.changeset/pr-425-1576203123.md new file mode 100644 index 000000000..37e94a8fe --- /dev/null +++ b/.changeset/pr-425-1576203123.md @@ -0,0 +1,5 @@ + +--- +"fusion-project-portal": patch +--- +fusionLegacyEnvIdentifier should always be returned in capital letters , some application check this and are case sensitive diff --git a/client/packages/portal-client/src/portal.config.json b/client/packages/portal-client/src/portal.config.json index 2600eef1e..e64bcb8d2 100644 --- a/client/packages/portal-client/src/portal.config.json +++ b/client/packages/portal-client/src/portal.config.json @@ -40,5 +40,5 @@ "level": 0 } }, - "fusionLegacyEnvIdentifier": "ci" + "fusionLegacyEnvIdentifier": "CI" } \ No newline at end of file diff --git a/client/packages/portal-core/src/app/utils/app-get-legacy-client-config.ts b/client/packages/portal-core/src/app/utils/app-get-legacy-client-config.ts index e744666ce..6169eba90 100644 --- a/client/packages/portal-core/src/app/utils/app-get-legacy-client-config.ts +++ b/client/packages/portal-core/src/app/utils/app-get-legacy-client-config.ts @@ -6,7 +6,7 @@ export const getLegacyClientConfig = (): Client => ({ }); export const getFusionLegacyEnvIdentifier = (): string => { - return window._config_.fusionLegacyEnvIdentifier; + return window._config_.fusionLegacyEnvIdentifier.toUpperCase(); }; declare global { interface Window {