From eb7882e2eb99b704ec179199b3c11587c14af60c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Tue, 9 Jan 2024 12:42:28 +0100 Subject: [PATCH] feat: add automated actions flag (#5805) Just a flag for an enterprise feature --- src/lib/__snapshots__/create-config.test.ts.snap | 1 + src/lib/types/experimental.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/lib/__snapshots__/create-config.test.ts.snap b/src/lib/__snapshots__/create-config.test.ts.snap index 65e8849f64..5020b2bfec 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -73,6 +73,7 @@ exports[`should create default config 1`] = ` "flagResolver": FlagResolver { "experiments": { "anonymiseEventLog": false, + "automatedActions": false, "caseInsensitiveInOperators": false, "celebrateUnleash": false, "customRootRolesKillSwitch": false, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 1f41d2f882..1e440f833c 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -34,6 +34,7 @@ export type IFlagKey = | 'newStrategyConfiguration' | 'stripHeadersOnAPI' | 'incomingWebhooks' + | 'automatedActions' | 'celebrateUnleash' | 'increaseUnleashWidth' | 'featureSearchFeedback' @@ -151,6 +152,10 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_INCOMING_WEBHOOKS, false, ), + automatedActions: parseEnvVarBoolean( + process.env.UNLEASH_EXPERIMENTAL_AUTOMATED_ACTIONS, + false, + ), celebrateUnleash: parseEnvVarBoolean( process.env.UNLEASH_EXPERIMENTAL_CELEBRATE_UNLEASH, false,