From 126dff2344234b6f92d37b97f00b4f18a89f6132 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Wed, 31 Jul 2024 11:38:55 +0200 Subject: [PATCH] chore: change request playground flag (#7707) --- src/lib/__snapshots__/create-config.test.ts.snap | 1 + src/lib/types/experimental.ts | 7 ++++++- src/server-dev.ts | 1 + 3 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 5613f00012..4a22c1b2b6 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -82,6 +82,7 @@ exports[`should create default config 1`] = ` "automatedActions": false, "caseInsensitiveInOperators": false, "celebrateUnleash": false, + "changeRequestPlayground": false, "cleanApiTokenWhenOrphaned": false, "collectTrafficDataUsage": false, "commandBarUI": false, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 0fca2fc2fe..17dbe6b406 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -72,7 +72,8 @@ export type IFlagKey = | 'featureCollaborators' | 'improveCreateFlagFlow' | 'originMiddleware' - | 'newEventSearch'; + | 'newEventSearch' + | 'changeRequestPlayground'; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; @@ -349,6 +350,10 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_NEW_EVENT_SEARCH, false, ), + changeRequestPlayground: parseEnvVarBoolean( + process.env.UNLEASH_EXPERIMENTAL_CHANGE_REQUEST_PLAYGROUND, + false, + ), }; export const defaultExperimentalOptions: IExperimentalOptions = { diff --git a/src/server-dev.ts b/src/server-dev.ts index a7c5068698..baa9a40ffd 100644 --- a/src/server-dev.ts +++ b/src/server-dev.ts @@ -62,6 +62,7 @@ process.nextTick(async () => { improveCreateFlagFlow: true, originMiddleware: true, newEventSearch: true, + changeRequestPlayground: true, }, }, authentication: {