From 840ca275cfa4dd7b495637a59aee3a02281bd743 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Mon, 22 May 2023 15:12:45 +0200 Subject: [PATCH] feat: disable bulk update env var (#3828) --- src/lib/__snapshots__/create-config.test.ts.snap | 2 ++ src/lib/types/experimental.ts | 4 ++++ 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 09ec2bbae2..03bcaee127 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -71,6 +71,7 @@ exports[`should create default config 1`] = ` "caseInsensitiveInOperators": false, "cleanClientApi": false, "demo": false, + "disableBulkToggle": false, "embedProxy": true, "embedProxyFrontend": true, "featuresExportImport": true, @@ -100,6 +101,7 @@ exports[`should create default config 1`] = ` "caseInsensitiveInOperators": false, "cleanClientApi": false, "demo": false, + "disableBulkToggle": false, "embedProxy": true, "embedProxyFrontend": true, "featuresExportImport": true, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 6d0b157f4c..d9f04590b3 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -94,6 +94,10 @@ const flags: IFlags = { process.env.UNLEASH_VARIANT_METRICS, false, ), + disableBulkToggle: parseEnvVarBoolean( + process.env.DISABLE_BULK_TOGGLE, + false, + ), }; export const defaultExperimentalOptions: IExperimentalOptions = {