1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-22 01:16:07 +02:00

feat: add returnGlobalFrontendApiCache flag (#6494)

This commit is contained in:
Jaanus Sellin 2024-03-11 14:27:17 +02:00 committed by GitHub
parent eae373f386
commit 184e0e5190
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View File

@ -135,6 +135,7 @@ exports[`should create default config 1`] = `
"queryMissingTokens": false,
"responseTimeMetricsFix": false,
"responseTimeWithAppNameKillSwitch": false,
"returnGlobalFrontendApiCache": false,
"scimApi": false,
"sdkReporting": false,
"showInactiveUsers": false,

View File

@ -54,7 +54,8 @@ export type IFlagKey =
| 'responseTimeMetricsFix'
| 'scimApi'
| 'displayEdgeBanner'
| 'globalFrontendApiCache';
| 'globalFrontendApiCache'
| 'returnGlobalFrontendApiCache';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -267,6 +268,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_GLOBAL_FRONTEND_API_CACHE,
false,
),
returnGlobalFrontendApiCache: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_RETURN_GLOBAL_FRONTEND_API_CACHE,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {

View File

@ -51,6 +51,7 @@ process.nextTick(async () => {
userAccessUIEnabled: true,
sdkReporting: true,
globalFrontendApiCache: true,
returnGlobalFrontendApiCache: true,
},
},
authentication: {