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,
|
"anonymiseEventLog": false,
|
||||||
"caseInsensitiveInOperators": false,
|
"caseInsensitiveInOperators": false,
|
||||||
"cleanClientApi": false,
|
"cleanClientApi": false,
|
||||||
|
"configurableFeatureTypeLifetimes": false,
|
||||||
"customRootRoles": false,
|
"customRootRoles": false,
|
||||||
"demo": false,
|
"demo": false,
|
||||||
"disableBulkToggle": false,
|
"disableBulkToggle": false,
|
||||||
@ -105,6 +106,7 @@ exports[`should create default config 1`] = `
|
|||||||
"anonymiseEventLog": false,
|
"anonymiseEventLog": false,
|
||||||
"caseInsensitiveInOperators": false,
|
"caseInsensitiveInOperators": false,
|
||||||
"cleanClientApi": false,
|
"cleanClientApi": false,
|
||||||
|
"configurableFeatureTypeLifetimes": false,
|
||||||
"customRootRoles": false,
|
"customRootRoles": false,
|
||||||
"demo": false,
|
"demo": false,
|
||||||
"disableBulkToggle": false,
|
"disableBulkToggle": false,
|
||||||
|
@ -25,7 +25,8 @@ export type IFlagKey =
|
|||||||
| 'strategyVariant'
|
| 'strategyVariant'
|
||||||
| 'newProjectLayout'
|
| 'newProjectLayout'
|
||||||
| 'slackAppAddon'
|
| 'slackAppAddon'
|
||||||
| 'emitPotentiallyStaleEvents';
|
| 'emitPotentiallyStaleEvents'
|
||||||
|
| 'configurableFeatureTypeLifetimes';
|
||||||
|
|
||||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||||
|
|
||||||
@ -119,6 +120,11 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_EMIT_POTENTIALLY_STALE_EVENTS,
|
process.env.UNLEASH_EXPERIMENTAL_EMIT_POTENTIALLY_STALE_EVENTS,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
|
|
||||||
|
configurableFeatureTypeLifetimes: parseEnvVarBoolean(
|
||||||
|
process.env.UNLEASH_EXPERIMENTAL_CONFIGURABLE_FEATURE_TYPE_LIFETIMES,
|
||||||
|
false,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||||
|
@ -42,6 +42,7 @@ process.nextTick(async () => {
|
|||||||
newProjectLayout: true,
|
newProjectLayout: true,
|
||||||
emitPotentiallyStaleEvents: true,
|
emitPotentiallyStaleEvents: true,
|
||||||
slackAppAddon: true,
|
slackAppAddon: true,
|
||||||
|
configurableFeatureTypeLifetimes: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
authentication: {
|
authentication: {
|
||||||
|
Loading…
Reference in New Issue
Block a user