1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-11-10 01:19:53 +01:00

chore: safeguards flag (#10906)

This commit is contained in:
Mateusz Kwasniewski 2025-11-03 12:05:26 +01:00 committed by GitHub
parent bf19b62079
commit d452e45f37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View File

@ -93,6 +93,7 @@ export type UiFlags = {
milestoneProgression?: boolean;
featureReleasePlans?: boolean;
envAddStrategySuggestion?: boolean;
safeguards?: boolean;
};
export interface IVersionInfo {

View File

@ -63,7 +63,8 @@ export type IFlagKey =
| 'milestoneProgression'
| 'envAddStrategySuggestion'
| 'featureReleasePlans'
| 'plausibleMetrics';
| 'plausibleMetrics'
| 'safeguards';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -292,6 +293,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_PLAUSIBLE_METRICS,
false,
),
safeguards: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_SAFEGUARDS,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {

View File

@ -59,6 +59,7 @@ process.nextTick(async () => {
milestoneProgression: true,
featureReleasePlans: true,
envAddStrategySuggestion: true,
safeguards: true,
},
},
authentication: {