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

[Gitar] Cleaning up Typescript files

This commit is contained in:
Gitar Bot 2024-04-16 11:14:59 +00:00
parent 279d3431eb
commit 8c9ab25526
4 changed files with 1 additions and 16 deletions

View File

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

View File

@ -213,17 +213,9 @@ export default class FrontendAPIController extends Controller {
)}`,
);
}
} else if (
this.config.flagResolver.isEnabled('returnGlobalFrontendApiCache')
) {
toggles =
await this.services.frontendApiService.getNewFrontendApiFeatures(
req.user,
FrontendAPIController.createContext(req),
);
} else {
toggles =
await this.services.frontendApiService.getFrontendApiFeatures(
await this.services.frontendApiService.getNewFrontendApiFeatures(
req.user,
FrontendAPIController.createContext(req),
);

View File

@ -52,7 +52,6 @@ export type IFlagKey =
| 'scimApi'
| 'displayEdgeBanner'
| 'globalFrontendApiCache'
| 'returnGlobalFrontendApiCache'
| 'projectOverviewRefactor'
| 'variantDependencies'
| 'disableShowContextFieldSelectionValues'
@ -260,10 +259,6 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_GLOBAL_FRONTEND_API_CACHE,
false,
),
returnGlobalFrontendApiCache: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_RETURN_GLOBAL_FRONTEND_API_CACHE,
false,
),
projectOverviewRefactor: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_PROJECT_OVERVIEW_REFACTOR,
false,

View File

@ -49,7 +49,6 @@ process.nextTick(async () => {
userAccessUIEnabled: true,
outdatedSdksBanner: true,
globalFrontendApiCache: true,
returnGlobalFrontendApiCache: false,
projectOverviewRefactor: true,
disableShowContextFieldSelectionValues: false,
variantDependencies: true,