1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-31 13:47:02 +02:00

Add timestampsInChangeRequestTimeline flag (#10399)

Adds flag to OSS for the new timestamps in CR timeline capability.

We might not need them in the UI, but might as well add it in case.
This commit is contained in:
Thomas Heartman 2025-07-23 15:33:40 +02:00 committed by GitHub
parent 299ed65ef7
commit 64050121db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View File

@ -92,6 +92,7 @@ export type UiFlags = {
crDiffView?: boolean;
changeRequestApproverEmails?: boolean;
eventGrouping?: boolean;
timestampsInChangeRequestTimeline?: boolean;
reportUnknownFlags?: boolean;
lifecycleGraphs?: boolean;
};

View File

@ -63,6 +63,7 @@ export type IFlagKey =
| 'paygTrialEvents'
| 'eventGrouping'
| 'paygInstanceStatsEvents'
| 'timestampsInChangeRequestTimeline'
| 'lifecycleGraphs';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -291,6 +292,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_PAYG_INSTANCE_STATS_EVENTS,
false,
),
timestampsInChangeRequestTimeline: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_TIMESTAMPS_IN_CHANGE_REQUEST_TIMELINE,
false,
),
lifecycleGraphs: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_LIFECYCLE_GRAPHS,
false,

View File

@ -59,6 +59,7 @@ process.nextTick(async () => {
crDiffView: true,
eventGrouping: true,
paygTrialEvents: true,
timestampsInChangeRequestTimeline: true,
lifecycleGraphs: true,
},
},