diff --git a/api/sample.env b/api/sample.env index 8f46172f445..63e72275aba 100644 --- a/api/sample.env +++ b/api/sample.env @@ -818,6 +818,11 @@ TEST_REDIS_URL=redis://localhost:6379 # default: false # FT_ENABLE_ASYNC_QUESTS_REWARDS_CALCULATION=false +# Enable self account deletion +# type: boolean +# default: false +# FT_SELF_ACCOUNT_DELETION=false + # ===== # CPF # ===== diff --git a/api/src/shared/config.js b/api/src/shared/config.js index 210ef8df83c..ea920b76eba 100644 --- a/api/src/shared/config.js +++ b/api/src/shared/config.js @@ -198,23 +198,25 @@ const configuration = (function () { scoAccountRecoveryKeyLifetimeMinutes: process.env.SCO_ACCOUNT_RECOVERY_KEY_LIFETIME_MINUTES, }, featureToggles: { - isV3EligibilityCheckEnabled: toBoolean(process.env.FT_ENABLE_V3_ELIGIBILITY_CHECK), deprecatePoleEmploiPushNotification: toBoolean(process.env.DEPRECATE_PE_PUSH_NOTIFICATION), isAlwaysOkValidateNextChallengeEndpointEnabled: toBoolean( process.env.FT_ALWAYS_OK_VALIDATE_NEXT_CHALLENGE_ENDPOINT, ), + isAsyncQuestRewardingCalculationEnabled: toBoolean(process.env.FT_ENABLE_ASYNC_QUESTS_REWARDS_CALCULATION), isCertificationTokenScopeEnabled: toBoolean(process.env.FT_ENABLE_CERTIF_TOKEN_SCOPE), isNeedToAdjustCertificationAccessibilityEnabled: toBoolean( process.env.FT_ENABLE_NEED_TO_ADJUST_CERTIFICATION_ACCESSIBILITY, ), - isQuestEnabled: toBoolean(process.env.FT_ENABLE_QUESTS), - isAsyncQuestRewardingCalculationEnabled: toBoolean(process.env.FT_ENABLE_ASYNC_QUESTS_REWARDS_CALCULATION), isNewAuthenticationDesignEnabled: toBoolean(process.env.FT_NEW_AUTHENTICATION_DESIGN_ENABLED), isPix1dEnabled: toBoolean(process.env.FT_PIX_1D_ENABLED), + isPixCompanionEnabled: toBoolean(process.env.FT_PIX_COMPANION_ENABLED), + isSelfAccountDeletionEnabled: toBoolean(process.env.FT_SELF_ACCOUNT_DELETION), + isQuestEnabled: toBoolean(process.env.FT_ENABLE_QUESTS), isTextToSpeechButtonEnabled: toBoolean(process.env.FT_ENABLE_TEXT_TO_SPEECH_BUTTON), + isV3EligibilityCheckEnabled: toBoolean(process.env.FT_ENABLE_V3_ELIGIBILITY_CHECK), showExperimentalMissions: toBoolean(process.env.FT_SHOW_EXPERIMENTAL_MISSIONS), showNewCampaignPresentationPage: toBoolean(process.env.FT_SHOW_NEW_CAMPAIGN_PRESENTATION_PAGE), - isPixCompanionEnabled: toBoolean(process.env.FT_PIX_COMPANION_ENABLED), + showNewResultPage: toBoolean(process.env.FT_SHOW_NEW_RESULT_PAGE), }, hapi: { options: {}, @@ -406,16 +408,17 @@ const configuration = (function () { config.features.pixCertifScoBlockedAccessDateLycee = null; config.features.pixCertifScoBlockedAccessDateCollege = null; - config.featureToggles.isV3EligibilityCheckEnabled = false; + config.featureToggles.deprecatePoleEmploiPushNotification = false; config.featureToggles.isAlwaysOkValidateNextChallengeEndpointEnabled = false; - config.featureToggles.isPix1dEnabled = true; config.featureToggles.isCertificationTokenScopeEnabled = false; - config.featureToggles.isTextToSpeechButtonEnabled = false; - config.featureToggles.deprecatePoleEmploiPushNotification = false; config.featureToggles.isNeedToAdjustCertificationAccessibilityEnabled = false; - config.featureToggles.showNewCampaignPresentationPage = false; - config.featureToggles.showExperimentalMissions = false; + config.featureToggles.isPix1dEnabled = true; config.featureToggles.isPixCompanionEnabled = false; + config.featureToggles.isSelfAccountDeletionEnabled = false; + config.featureToggles.isTextToSpeechButtonEnabled = false; + config.featureToggles.isV3EligibilityCheckEnabled = false; + config.featureToggles.showNewResultPage = false; + config.featureToggles.showExperimentalMissions = false; config.mailing.enabled = false; config.mailing.provider = 'brevo'; diff --git a/api/tests/shared/acceptance/application/feature-toggles/feature-toggle-controller_test.js b/api/tests/shared/acceptance/application/feature-toggles/feature-toggle-controller_test.js index 039ba7341c6..c76f071564f 100644 --- a/api/tests/shared/acceptance/application/feature-toggles/feature-toggle-controller_test.js +++ b/api/tests/shared/acceptance/application/feature-toggles/feature-toggle-controller_test.js @@ -21,18 +21,20 @@ describe('Acceptance | Shared | Application | Controller | feature-toggle', func type: 'feature-toggles', attributes: { 'deprecate-pole-emploi-push-notification': false, - 'is-v3-eligibility-check-enabled': false, 'is-always-ok-validate-next-challenge-endpoint-enabled': false, + 'is-async-quest-rewarding-calculation-enabled': false, 'is-certification-token-scope-enabled': false, + 'is-need-to-adjust-certification-accessibility-enabled': false, 'is-new-authentication-design-enabled': false, 'is-pix1d-enabled': true, - 'is-need-to-adjust-certification-accessibility-enabled': false, - 'is-text-to-speech-button-enabled': false, - 'show-new-campaign-presentation-page': false, - 'show-experimental-missions': false, 'is-pix-companion-enabled': false, 'is-quest-enabled': false, - 'is-async-quest-rewarding-calculation-enabled': false, + 'is-self-account-deletion-enabled': false, + 'is-text-to-speech-button-enabled': false, + 'is-v3-eligibility-check-enabled': false, + 'show-experimental-missions': false, + 'show-new-campaign-presentation-page': false, + 'show-new-result-page': false, }, }, };