1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

feat: add playground imrpovements flag (#5045)

Adds the playgroundImprovements flag

Close #
[1-1508](https://linear.app/unleash/issue/1-1508/add-playgroundimprovements-feature-flag)

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
andreas-unleash 2023-10-16 14:08:21 +03:00 committed by GitHub
parent b58d900c2d
commit 8561ba8df7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -71,6 +71,7 @@ export type UiFlags = {
dependentFeatures?: boolean;
internalMessageBanners?: boolean;
disableEnvsOnRevive?: boolean;
playgroundImprovements?: boolean;
};
export interface IVersionInfo {

View File

@ -108,6 +108,7 @@ exports[`should create default config 1`] = `
"multipleRoles": false,
"newInviteLink": false,
"personalAccessTokensKillSwitch": false,
"playgroundImprovements": false,
"privateProjects": false,
"proPlanAutoCharge": false,
"responseTimeWithAppNameKillSwitch": false,
@ -153,6 +154,7 @@ exports[`should create default config 1`] = `
"multipleRoles": false,
"newInviteLink": false,
"personalAccessTokensKillSwitch": false,
"playgroundImprovements": false,
"privateProjects": false,
"proPlanAutoCharge": false,
"responseTimeWithAppNameKillSwitch": false,

View File

@ -38,7 +38,8 @@ export type IFlagKey =
| 'internalMessageBanners'
| 'internalMessageBanner'
| 'separateAdminClientApi'
| 'disableEnvsOnRevive';
| 'disableEnvsOnRevive'
| 'playgroundImprovements';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -178,6 +179,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_DISABLE_ENVS_ON_REVIVE,
false,
),
playgroundImprovements: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_PLAYGROUND_IMPROVEMENTS,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {