mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
chore: add flag to experimental.ts (#5925)
This change adds the new changeRequestConflictHandling flag to Unleash.
This commit is contained in:
parent
2b1111044f
commit
bbaf574841
@ -78,6 +78,7 @@ exports[`should create default config 1`] = `
|
|||||||
"automatedActions": false,
|
"automatedActions": false,
|
||||||
"caseInsensitiveInOperators": false,
|
"caseInsensitiveInOperators": false,
|
||||||
"celebrateUnleash": false,
|
"celebrateUnleash": false,
|
||||||
|
"changeRequestConflictHandling": false,
|
||||||
"customRootRolesKillSwitch": false,
|
"customRootRolesKillSwitch": false,
|
||||||
"demo": false,
|
"demo": false,
|
||||||
"detectSegmentUsageInChangeRequests": false,
|
"detectSegmentUsageInChangeRequests": false,
|
||||||
|
@ -43,7 +43,8 @@ export type IFlagKey =
|
|||||||
| 'edgeBulkMetricsKillSwitch'
|
| 'edgeBulkMetricsKillSwitch'
|
||||||
| 'extendedUsageMetrics'
|
| 'extendedUsageMetrics'
|
||||||
| 'extendedUsageMetricsUI'
|
| 'extendedUsageMetricsUI'
|
||||||
| 'adminTokenKillSwitch';
|
| 'adminTokenKillSwitch'
|
||||||
|
| 'changeRequestConflictHandling';
|
||||||
|
|
||||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||||
|
|
||||||
@ -198,6 +199,10 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_ADMIN_TOKEN_KILL_SWITCH,
|
process.env.UNLEASH_EXPERIMENTAL_ADMIN_TOKEN_KILL_SWITCH,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
|
changeRequestConflictHandling: parseEnvVarBoolean(
|
||||||
|
process.env.UNLEASH_EXPERIMENTAL_CHANGE_REQUEST_CONFLICT_HANDLING,
|
||||||
|
false,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||||
|
Loading…
Reference in New Issue
Block a user