Skip to content

Commit

Permalink
chore: change request playground flag (#7707)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew authored Jul 31, 2024
1 parent 6170d10 commit 126dff2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib/__snapshots__/create-config.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ exports[`should create default config 1`] = `
"automatedActions": false,
"caseInsensitiveInOperators": false,
"celebrateUnleash": false,
"changeRequestPlayground": false,
"cleanApiTokenWhenOrphaned": false,
"collectTrafficDataUsage": false,
"commandBarUI": false,
Expand Down
7 changes: 6 additions & 1 deletion src/lib/types/experimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export type IFlagKey =
| 'featureCollaborators'
| 'improveCreateFlagFlow'
| 'originMiddleware'
| 'newEventSearch';
| 'newEventSearch'
| 'changeRequestPlayground';

export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;

Expand Down Expand Up @@ -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 = {
Expand Down
1 change: 1 addition & 0 deletions src/server-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ process.nextTick(async () => {
improveCreateFlagFlow: true,
originMiddleware: true,
newEventSearch: true,
changeRequestPlayground: true,
},
},
authentication: {
Expand Down

0 comments on commit 126dff2

Please sign in to comment.