mirror of
https://github.com/Unleash/unleash.git
synced 2025-11-10 01:19:53 +01: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;
|
createFlagDialogCache?: boolean;
|
||||||
healthToTechDebt?: boolean;
|
healthToTechDebt?: boolean;
|
||||||
improvedJsonDiff?: boolean;
|
improvedJsonDiff?: boolean;
|
||||||
|
crDiffView?: boolean;
|
||||||
changeRequestApproverEmails?: boolean;
|
changeRequestApproverEmails?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -61,6 +61,7 @@ export type IFlagKey =
|
|||||||
| 'impactMetrics'
|
| 'impactMetrics'
|
||||||
| 'createFlagDialogCache'
|
| 'createFlagDialogCache'
|
||||||
| 'improvedJsonDiff'
|
| 'improvedJsonDiff'
|
||||||
|
| 'crDiffView'
|
||||||
| 'changeRequestApproverEmails';
|
| 'changeRequestApproverEmails';
|
||||||
|
|
||||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||||
@ -282,6 +283,10 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_IMPROVED_JSON_DIFF,
|
process.env.UNLEASH_EXPERIMENTAL_IMPROVED_JSON_DIFF,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
|
crDiffView: parseEnvVarBoolean(
|
||||||
|
process.env.UNLEASH_EXPERIMENTAL_CR_DIFF_VIEW,
|
||||||
|
false,
|
||||||
|
),
|
||||||
impactMetrics: parseEnvVarBoolean(
|
impactMetrics: parseEnvVarBoolean(
|
||||||
process.env.UNLEASH_EXPERIMENTAL_IMPACT_METRICS,
|
process.env.UNLEASH_EXPERIMENTAL_IMPACT_METRICS,
|
||||||
false,
|
false,
|
||||||
|
|||||||
@ -57,6 +57,7 @@ process.nextTick(async () => {
|
|||||||
lifecycleMetrics: true,
|
lifecycleMetrics: true,
|
||||||
improvedJsonDiff: true,
|
improvedJsonDiff: true,
|
||||||
impactMetrics: true,
|
impactMetrics: true,
|
||||||
|
crDiffView: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
authentication: {
|
authentication: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user