Skip to content

Commit

Permalink
feat(api): add new self account deletion feature toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelleBonnemay authored Nov 5, 2024
1 parent 9e2b9e6 commit 26a3510
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions api/sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -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
# =====
Expand Down
3 changes: 2 additions & 1 deletion api/src/shared/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ const configuration = (function () {
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),
Expand Down Expand Up @@ -413,12 +414,12 @@ const configuration = (function () {
config.featureToggles.isNeedToAdjustCertificationAccessibilityEnabled = 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';
config.mailing.smtpUrl = 'smtp://username:password@localhost:1025/';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ describe('Acceptance | Shared | Application | Controller | feature-toggle', func
'is-pix1d-enabled': true,
'is-pix-companion-enabled': false,
'is-quest-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,
Expand Down

0 comments on commit 26a3510

Please sign in to comment.