1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

chore: resource limits flag (#7471)

This commit is contained in:
Mateusz Kwasniewski 2024-06-27 14:25:07 +02:00 committed by GitHub
parent f4e3388606
commit b67c73a578
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 1 deletions

View File

@ -86,6 +86,7 @@ export type UiFlags = {
navigationSidebar?: boolean;
commandBarUI?: boolean;
flagCreator?: boolean;
resourceLimits?: boolean;
};
export interface IVersionInfo {

View File

@ -142,6 +142,7 @@ exports[`should create default config 1`] = `
"personalAccessTokensKillSwitch": false,
"projectOverviewRefactorFeedback": false,
"queryMissingTokens": false,
"resourceLimits": false,
"responseTimeMetricsFix": false,
"responseTimeWithAppNameKillSwitch": false,
"scimApi": false,

View File

@ -61,7 +61,8 @@ export type IFlagKey =
| 'navigationSidebar'
| 'commandBarUI'
| 'flagCreator'
| 'anonymizeProjectOwners';
| 'anonymizeProjectOwners'
| 'resourceLimits';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -294,6 +295,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_ANONYMIZE_PROJECT_OWNERS,
false,
),
resourceLimits: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_RESOURCE_LIMITS,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {

View File

@ -54,6 +54,7 @@ process.nextTick(async () => {
enableLegacyVariants: false,
commandBarUI: true,
flagCreator: true,
resourceLimits: true,
},
},
authentication: {