From 5f9edcb0374c3e2d60c46f1a0489365bb7c71fd3 Mon Sep 17 00:00:00 2001 From: Cristiano Tofani Date: Tue, 12 Jan 2021 16:15:32 +0100 Subject: [PATCH] feat(Carta Giovani Nazionale): [#176442968] Adds CGN Feature Flag #2714 --- .env.example | 2 ++ .env.local | 2 ++ .env.production | 2 ++ scripts/changelog/ts/changelog.ts | 3 ++- ts/config.ts | 3 +++ 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 00bbc143cf5..cacd3c2ae2d 100644 --- a/.env.example +++ b/.env.example @@ -46,6 +46,8 @@ BPD_TEST_OVERLAY=NO BPD_API_URL_PREFIX=https://prod.cstar.pagopa.it BPD_API_SIT='https://bpd-dev.azure-api.net' BPD_API_UAT='https://test.cstar.pagopa.it' +# CGN configuration +CGN_ENABLED=NO diff --git a/.env.local b/.env.local index ad4010a7ce6..dd8bd2bf44a 100644 --- a/.env.local +++ b/.env.local @@ -46,4 +46,6 @@ BPD_TEST_OVERLAY=NO BPD_API_URL_PREFIX='http://127.0.0.1:3000/bonus' BPD_API_SIT='https://bpd-dev.azure-api.net' BPD_API_UAT='https://test.cstar.pagopa.it' +# CGN configuration +CGN_ENABLED=NO diff --git a/.env.production b/.env.production index 3bc4b921f8d..0212bafa33e 100644 --- a/.env.production +++ b/.env.production @@ -46,3 +46,5 @@ BPD_TEST_OVERLAY=NO BPD_API_URL_PREFIX=https://prod.cstar.pagopa.it BPD_API_SIT='https://bpd-dev.azure-api.net' BPD_API_UAT='https://test.cstar.pagopa.it' +# CGN configuration +CGN_ENABLED=NO diff --git a/scripts/changelog/ts/changelog.ts b/scripts/changelog/ts/changelog.ts index 3c87ab6af34..d42b347d966 100644 --- a/scripts/changelog/ts/changelog.ts +++ b/scripts/changelog/ts/changelog.ts @@ -37,7 +37,8 @@ const allowedScope = new Map([ const projectToScope = new Map([ [2449547, "Bonus Vacanze"], [2463683, "My Portal"], - [2477137, "Bonus Pagamenti Digitali"] + [2477137, "Bonus Pagamenti Digitali"], + [2476636, "Carta Giovani Nazionale"] ]); const cleanChangelogRegex = /^(fix(\(.+\))?!?: |feat(\(.+\))?!?: |chore(\(.+\))?!?: )?(.*)$/; diff --git a/ts/config.ts b/ts/config.ts index a1fe98e9265..40b63aecfd0 100644 --- a/ts/config.ts +++ b/ts/config.ts @@ -58,6 +58,9 @@ export const bpdApiUatUrlPrefix: string = Config.BPD_API_UAT; export const isPlaygroundsEnabled: boolean = Config.PLAYGROUNDS_ENABLED === "YES"; +// CGN Feature Flag +export const cgnEnabled: boolean = Config.CGN_ENABLED === "YES"; + // version of ToS export const tosVersion: NonNegativeNumber = 2.1 as NonNegativeNumber;