Skip to content

Commit

Permalink
chore: add flag to experimental.ts (#5925)
Browse files Browse the repository at this point in the history
This change adds the new changeRequestConflictHandling flag to Unleash.
  • Loading branch information
thomasheartman committed Jan 17, 2024
1 parent 2b11110 commit bbaf574
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib/__snapshots__/create-config.test.ts.snap
Expand Up @@ -78,6 +78,7 @@ exports[`should create default config 1`] = `
"automatedActions": false,
"caseInsensitiveInOperators": false,
"celebrateUnleash": false,
"changeRequestConflictHandling": false,
"customRootRolesKillSwitch": false,
"demo": false,
"detectSegmentUsageInChangeRequests": false,
Expand Down
7 changes: 6 additions & 1 deletion src/lib/types/experimental.ts
Expand Up @@ -43,7 +43,8 @@ export type IFlagKey =
| 'edgeBulkMetricsKillSwitch'
| 'extendedUsageMetrics'
| 'extendedUsageMetricsUI'
| 'adminTokenKillSwitch';
| 'adminTokenKillSwitch'
| 'changeRequestConflictHandling';

export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;

Expand Down Expand Up @@ -198,6 +199,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_ADMIN_TOKEN_KILL_SWITCH,
false,
),
changeRequestConflictHandling: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_CHANGE_REQUEST_CONFLICT_HANDLING,
false,
),
};

export const defaultExperimentalOptions: IExperimentalOptions = {
Expand Down

0 comments on commit bbaf574

Please sign in to comment.