1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +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, "filterInvalidClientMetrics": false,
"googleAuthEnabled": false, "googleAuthEnabled": false,
"inMemoryScheduledChangeRequests": false,
"incomingWebhooks": false, "incomingWebhooks": false,
"increaseUnleashWidth": false, "increaseUnleashWidth": false,
"maintenanceMode": false, "maintenanceMode": false,

View File

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