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:
parent
f4e3388606
commit
b67c73a578
@ -86,6 +86,7 @@ export type UiFlags = {
|
||||
navigationSidebar?: boolean;
|
||||
commandBarUI?: boolean;
|
||||
flagCreator?: boolean;
|
||||
resourceLimits?: boolean;
|
||||
};
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
@ -142,6 +142,7 @@ exports[`should create default config 1`] = `
|
||||
"personalAccessTokensKillSwitch": false,
|
||||
"projectOverviewRefactorFeedback": false,
|
||||
"queryMissingTokens": false,
|
||||
"resourceLimits": false,
|
||||
"responseTimeMetricsFix": false,
|
||||
"responseTimeWithAppNameKillSwitch": false,
|
||||
"scimApi": false,
|
||||
|
@ -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 = {
|
||||
|
@ -54,6 +54,7 @@ process.nextTick(async () => {
|
||||
enableLegacyVariants: false,
|
||||
commandBarUI: true,
|
||||
flagCreator: true,
|
||||
resourceLimits: true,
|
||||
},
|
||||
},
|
||||
authentication: {
|
||||
|
Loading…
Reference in New Issue
Block a user