mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-26 13:48:33 +02:00
add crDiffView
to Unleash (#10228)
This change adds the `crDiffView` flag to Unleash, potentially enabling the new JSON diff tab in change request changes instead of the "view json diff" hover functionality.
This commit is contained in:
parent
c5b6ee75f3
commit
4eedf88627
@ -90,6 +90,7 @@ export type UiFlags = {
|
||||
createFlagDialogCache?: boolean;
|
||||
healthToTechDebt?: boolean;
|
||||
improvedJsonDiff?: boolean;
|
||||
crDiffView?: boolean;
|
||||
changeRequestApproverEmails?: boolean;
|
||||
};
|
||||
|
||||
|
@ -61,6 +61,7 @@ export type IFlagKey =
|
||||
| 'impactMetrics'
|
||||
| 'createFlagDialogCache'
|
||||
| 'improvedJsonDiff'
|
||||
| 'crDiffView'
|
||||
| 'changeRequestApproverEmails';
|
||||
|
||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||
@ -282,6 +283,10 @@ const flags: IFlags = {
|
||||
process.env.UNLEASH_EXPERIMENTAL_IMPROVED_JSON_DIFF,
|
||||
false,
|
||||
),
|
||||
crDiffView: parseEnvVarBoolean(
|
||||
process.env.UNLEASH_EXPERIMENTAL_CR_DIFF_VIEW,
|
||||
false,
|
||||
),
|
||||
impactMetrics: parseEnvVarBoolean(
|
||||
process.env.UNLEASH_EXPERIMENTAL_IMPACT_METRICS,
|
||||
false,
|
||||
|
@ -57,6 +57,7 @@ process.nextTick(async () => {
|
||||
lifecycleMetrics: true,
|
||||
improvedJsonDiff: true,
|
||||
impactMetrics: true,
|
||||
crDiffView: true,
|
||||
},
|
||||
},
|
||||
authentication: {
|
||||
|
Loading…
Reference in New Issue
Block a user