1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-28 19:06:12 +01:00

chore: add inMemoryScheduledChangeRequests flag (#6151)

What it says on the box

Closes #
[1-2030](https://linear.app/unleash/issue/1-2030/create-inmemoryscheduledchangerequests-flag)

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
andreas-unleash 2024-02-07 16:35:14 +02:00 committed by GitHub
parent 11bfcd605a
commit 59a736f56b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -114,6 +114,7 @@ exports[`should create default config 1`] = `
},
"filterInvalidClientMetrics": false,
"googleAuthEnabled": false,
"inMemoryScheduledChangeRequests": false,
"incomingWebhooks": false,
"increaseUnleashWidth": false,
"maintenanceMode": false,

View File

@ -47,6 +47,7 @@ export type IFlagKey =
| 'feedbackComments'
| 'createdByUserIdDataMigration'
| 'showInactiveUsers'
| 'inMemoryScheduledChangeRequests'
| 'useMemoizedActiveTokens';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -232,6 +233,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_MEMOIZED_ACTIVE_TOKENS,
false,
),
inMemoryScheduledChangeRequests: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_IN_MEMORY_SCHEDULED_CHANGE_REQUESTS,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {