1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

feat: add slackAppAddon feature flag (#4235)

https://linear.app/unleash/issue/2-1231/add-new-slack-app-addon-feature-flag

Adds a new feature flag for the new slack app addon.
This commit is contained in:
Nuno Góis 2023-07-13 11:26:22 +01:00 committed by GitHub
parent a785465943
commit c387a19831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -94,6 +94,7 @@ exports[`should create default config 1`] = `
"proPlanAutoCharge": false,
"responseTimeWithAppNameKillSwitch": false,
"segmentContextFieldUsage": false,
"slackAppAddon": false,
"strategySplittedButton": false,
"strategyVariant": false,
"strictSchemaValidation": false,
@ -128,6 +129,7 @@ exports[`should create default config 1`] = `
"proPlanAutoCharge": false,
"responseTimeWithAppNameKillSwitch": false,
"segmentContextFieldUsage": false,
"slackAppAddon": false,
"strategySplittedButton": false,
"strategyVariant": false,
"strictSchemaValidation": false,

View File

@ -25,7 +25,8 @@ export type IFlagKey =
| 'customRootRoles'
| 'strategySplittedButton'
| 'strategyVariant'
| 'newProjectLayout';
| 'newProjectLayout'
| 'slackAppAddon';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -118,6 +119,10 @@ const flags: IFlags = {
process.env.UNLEASH_STRATEGY_VARIANT,
false,
),
slackAppAddon: parseEnvVarBoolean(
process.env.UNLEASH_SLACK_APP_ADDON,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {