mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
Chore: add configurable feature type lifetimes flag (#4253)
Relates to #4205
This commit is contained in:
parent
56d5579b89
commit
209cf01477
@ -71,6 +71,7 @@ exports[`should create default config 1`] = `
|
||||
"anonymiseEventLog": false,
|
||||
"caseInsensitiveInOperators": false,
|
||||
"cleanClientApi": false,
|
||||
"configurableFeatureTypeLifetimes": false,
|
||||
"customRootRoles": false,
|
||||
"demo": false,
|
||||
"disableBulkToggle": false,
|
||||
@ -105,6 +106,7 @@ exports[`should create default config 1`] = `
|
||||
"anonymiseEventLog": false,
|
||||
"caseInsensitiveInOperators": false,
|
||||
"cleanClientApi": false,
|
||||
"configurableFeatureTypeLifetimes": false,
|
||||
"customRootRoles": false,
|
||||
"demo": false,
|
||||
"disableBulkToggle": false,
|
||||
|
@ -25,7 +25,8 @@ export type IFlagKey =
|
||||
| 'strategyVariant'
|
||||
| 'newProjectLayout'
|
||||
| 'slackAppAddon'
|
||||
| 'emitPotentiallyStaleEvents';
|
||||
| 'emitPotentiallyStaleEvents'
|
||||
| 'configurableFeatureTypeLifetimes';
|
||||
|
||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||
|
||||
@ -119,6 +120,11 @@ const flags: IFlags = {
|
||||
process.env.UNLEASH_EXPERIMENTAL_EMIT_POTENTIALLY_STALE_EVENTS,
|
||||
false,
|
||||
),
|
||||
|
||||
configurableFeatureTypeLifetimes: parseEnvVarBoolean(
|
||||
process.env.UNLEASH_EXPERIMENTAL_CONFIGURABLE_FEATURE_TYPE_LIFETIMES,
|
||||
false,
|
||||
),
|
||||
};
|
||||
|
||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||
|
@ -42,6 +42,7 @@ process.nextTick(async () => {
|
||||
newProjectLayout: true,
|
||||
emitPotentiallyStaleEvents: true,
|
||||
slackAppAddon: true,
|
||||
configurableFeatureTypeLifetimes: true,
|
||||
},
|
||||
},
|
||||
authentication: {
|
||||
|
Loading…
Reference in New Issue
Block a user