1
0
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:
Thomas Heartman 2025-06-27 11:24:44 +02:00 committed by GitHub
parent c5b6ee75f3
commit 4eedf88627
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View File

@ -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;
}; };

View File

@ -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,

View File

@ -57,6 +57,7 @@ process.nextTick(async () => {
lifecycleMetrics: true, lifecycleMetrics: true,
improvedJsonDiff: true, improvedJsonDiff: true,
impactMetrics: true, impactMetrics: true,
crDiffView: true,
}, },
}, },
authentication: { authentication: {