From c387a1983143f6e363be2c19dc22e8cf9be1f004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Thu, 13 Jul 2023 11:26:22 +0100 Subject: [PATCH] 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. --- src/lib/__snapshots__/create-config.test.ts.snap | 2 ++ src/lib/types/experimental.ts | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib/__snapshots__/create-config.test.ts.snap b/src/lib/__snapshots__/create-config.test.ts.snap index 907f898639..8f03087ac7 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -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, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index d3f5066b83..8aa0e0dacc 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -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 = {