1
0
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:
Thomas Heartman 2023-07-17 14:34:10 +02:00 committed by GitHub
parent 56d5579b89
commit 209cf01477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View File

@ -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,

View File

@ -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 = {

View File

@ -42,6 +42,7 @@ process.nextTick(async () => {
newProjectLayout: true,
emitPotentiallyStaleEvents: true,
slackAppAddon: true,
configurableFeatureTypeLifetimes: true,
},
},
authentication: {