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:
parent
b58d900c2d
commit
8561ba8df7
@ -71,6 +71,7 @@ export type UiFlags = {
|
||||
dependentFeatures?: boolean;
|
||||
internalMessageBanners?: boolean;
|
||||
disableEnvsOnRevive?: boolean;
|
||||
playgroundImprovements?: boolean;
|
||||
};
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
@ -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,
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user