Skip to content

Commit

Permalink
feat: add slackAppAddon feature flag (#4235)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nunogois committed Jul 13, 2023
1 parent a785465 commit c387a19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/lib/__snapshots__/create-config.test.ts.snap
Expand Up @@ -94,6 +94,7 @@ exports[`should create default config 1`] = `
"proPlanAutoCharge": false,
"responseTimeWithAppNameKillSwitch": false,
"segmentContextFieldUsage": false,
"slackAppAddon": false,
"strategySplittedButton": false,
"strategyVariant": false,
"strictSchemaValidation": false,
Expand Down Expand Up @@ -128,6 +129,7 @@ exports[`should create default config 1`] = `
"proPlanAutoCharge": false,
"responseTimeWithAppNameKillSwitch": false,
"segmentContextFieldUsage": false,
"slackAppAddon": false,
"strategySplittedButton": false,
"strategyVariant": false,
"strictSchemaValidation": false,
Expand Down
7 changes: 6 additions & 1 deletion src/lib/types/experimental.ts
Expand Up @@ -25,7 +25,8 @@ export type IFlagKey =
| 'customRootRoles'
| 'strategySplittedButton'
| 'strategyVariant'
| 'newProjectLayout';
| 'newProjectLayout'
| 'slackAppAddon';

export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;

Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit c387a19

Please sign in to comment.