1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-26 13:48:33 +02:00

feat: add scheduledConfigurationChanges flag (#5161)

add scheduledConfigurationChanges flag

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
andreas-unleash 2023-10-26 17:00:53 +03:00 committed by GitHub
parent acb23e8b87
commit 66cc526855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View File

@ -71,6 +71,7 @@ export type UiFlags = {
disableEnvsOnRevive?: boolean; disableEnvsOnRevive?: boolean;
playgroundImprovements?: boolean; playgroundImprovements?: boolean;
featureSwitchRefactor?: boolean; featureSwitchRefactor?: boolean;
scheduledConfigurationChanges?: boolean;
}; };
export interface IVersionInfo { export interface IVersionInfo {

View File

@ -107,6 +107,7 @@ exports[`should create default config 1`] = `
"privateProjects": false, "privateProjects": false,
"proPlanAutoCharge": false, "proPlanAutoCharge": false,
"responseTimeWithAppNameKillSwitch": false, "responseTimeWithAppNameKillSwitch": false,
"scheduledConfigurationChanges": false,
"separateAdminClientApi": false, "separateAdminClientApi": false,
"strictSchemaValidation": false, "strictSchemaValidation": false,
"useLastSeenRefactor": false, "useLastSeenRefactor": false,

View File

@ -36,7 +36,8 @@ export type IFlagKey =
| 'disableEnvsOnRevive' | 'disableEnvsOnRevive'
| 'playgroundImprovements' | 'playgroundImprovements'
| 'featureSwitchRefactor' | 'featureSwitchRefactor'
| 'featureSearchAPI'; | 'featureSearchAPI'
| 'scheduledConfigurationChanges';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -172,6 +173,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_FEATURE_SEARCH_API, process.env.UNLEASH_EXPERIMENTAL_FEATURE_SEARCH_API,
false, false,
), ),
scheduledConfigurationChanges: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_SCHEDULED_CONFIGURATION_CHANGES,
false,
),
}; };
export const defaultExperimentalOptions: IExperimentalOptions = { export const defaultExperimentalOptions: IExperimentalOptions = {