1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-10 17:53:36 +02:00

chore: add a flag for scim (#6361)

This commit is contained in:
Simon Hornby 2024-02-27 14:33:57 +02:00 committed by GitHub
parent 6cefe71534
commit 43b013ff2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -134,6 +134,7 @@ exports[`should create default config 1`] = `
"proPlanAutoCharge": false, "proPlanAutoCharge": false,
"responseTimeWithAppNameKillSwitch": false, "responseTimeWithAppNameKillSwitch": false,
"scheduledConfigurationChanges": false, "scheduledConfigurationChanges": false,
"scimApi": false,
"sdkReporting": false, "sdkReporting": false,
"showInactiveUsers": false, "showInactiveUsers": false,
"strictSchemaValidation": false, "strictSchemaValidation": false,

View File

@ -51,7 +51,8 @@ export type IFlagKey =
| 'userAccessUIEnabled' | 'userAccessUIEnabled'
| 'disableUpdateMaxRevisionId' | 'disableUpdateMaxRevisionId'
| 'disablePublishUnannouncedEvents' | 'disablePublishUnannouncedEvents'
| 'sdkReporting'; | 'sdkReporting'
| 'scimApi';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -252,6 +253,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_DISABLE_SCHEDULED_CACHES, process.env.UNLEASH_EXPERIMENTAL_DISABLE_SCHEDULED_CACHES,
false, false,
), ),
scimApi: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_SCIM_API,
false,
),
}; };
export const defaultExperimentalOptions: IExperimentalOptions = { export const defaultExperimentalOptions: IExperimentalOptions = {