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;
|
navigationSidebar?: boolean;
|
||||||
commandBarUI?: boolean;
|
commandBarUI?: boolean;
|
||||||
flagCreator?: boolean;
|
flagCreator?: boolean;
|
||||||
|
resourceLimits?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface IVersionInfo {
|
export interface IVersionInfo {
|
||||||
|
@ -142,6 +142,7 @@ exports[`should create default config 1`] = `
|
|||||||
"personalAccessTokensKillSwitch": false,
|
"personalAccessTokensKillSwitch": false,
|
||||||
"projectOverviewRefactorFeedback": false,
|
"projectOverviewRefactorFeedback": false,
|
||||||
"queryMissingTokens": false,
|
"queryMissingTokens": false,
|
||||||
|
"resourceLimits": false,
|
||||||
"responseTimeMetricsFix": false,
|
"responseTimeMetricsFix": false,
|
||||||
"responseTimeWithAppNameKillSwitch": false,
|
"responseTimeWithAppNameKillSwitch": false,
|
||||||
"scimApi": false,
|
"scimApi": false,
|
||||||
|
@ -61,7 +61,8 @@ export type IFlagKey =
|
|||||||
| 'navigationSidebar'
|
| 'navigationSidebar'
|
||||||
| 'commandBarUI'
|
| 'commandBarUI'
|
||||||
| 'flagCreator'
|
| 'flagCreator'
|
||||||
| 'anonymizeProjectOwners';
|
| 'anonymizeProjectOwners'
|
||||||
|
| 'resourceLimits';
|
||||||
|
|
||||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||||
|
|
||||||
@ -294,6 +295,10 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_ANONYMIZE_PROJECT_OWNERS,
|
process.env.UNLEASH_EXPERIMENTAL_ANONYMIZE_PROJECT_OWNERS,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
|
resourceLimits: parseEnvVarBoolean(
|
||||||
|
process.env.UNLEASH_EXPERIMENTAL_RESOURCE_LIMITS,
|
||||||
|
false,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||||
|
@ -54,6 +54,7 @@ process.nextTick(async () => {
|
|||||||
enableLegacyVariants: false,
|
enableLegacyVariants: false,
|
||||||
commandBarUI: true,
|
commandBarUI: true,
|
||||||
flagCreator: true,
|
flagCreator: true,
|
||||||
|
resourceLimits: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
authentication: {
|
authentication: {
|
||||||
|
Loading…
Reference in New Issue
Block a user