From f6a157f2f539c600fda61cbb94805c754705f32f Mon Sep 17 00:00:00 2001 From: Fredrik Strand Oseberg Date: Fri, 8 Sep 2023 15:52:10 +0200 Subject: [PATCH] fix: add experimental flag (#4649) --- 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 b3a40f5481..fb4390013d 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -74,6 +74,7 @@ exports[`should create default config 1`] = ` "demo": false, "disableBulkToggle": false, "disableNotifications": false, + "doraMetrics": false, "embedProxy": true, "embedProxyFrontend": true, "featureNamingPattern": false, @@ -109,6 +110,7 @@ exports[`should create default config 1`] = ` "demo": false, "disableBulkToggle": false, "disableNotifications": false, + "doraMetrics": false, "embedProxy": true, "embedProxyFrontend": true, "featureNamingPattern": false, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index de2d3083c5..736f3cda30 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -128,6 +128,10 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_FEATURE_NAMING_PATTERN, false, ), + doraMetrics: parseEnvVarBoolean( + process.env.UNLEASH_EXPERIMENTAL_DORA_METRICS, + false, + ), }; export const defaultExperimentalOptions: IExperimentalOptions = {