From 64050121dbfaccc0095ad2a5ad04a6ad602e29f0 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Wed, 23 Jul 2025 15:33:40 +0200 Subject: [PATCH] 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. --- frontend/src/interfaces/uiConfig.ts | 1 + src/lib/types/experimental.ts | 5 +++++ src/server-dev.ts | 1 + 3 files changed, 7 insertions(+) diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index 7ccf976eeb..9a873673ee 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -92,6 +92,7 @@ export type UiFlags = { crDiffView?: boolean; changeRequestApproverEmails?: boolean; eventGrouping?: boolean; + timestampsInChangeRequestTimeline?: boolean; reportUnknownFlags?: boolean; lifecycleGraphs?: boolean; }; diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 9fb52ba978..3217aaa06f 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -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, diff --git a/src/server-dev.ts b/src/server-dev.ts index 4b9d10a5ff..579bce6495 100644 --- a/src/server-dev.ts +++ b/src/server-dev.ts @@ -59,6 +59,7 @@ process.nextTick(async () => { crDiffView: true, eventGrouping: true, paygTrialEvents: true, + timestampsInChangeRequestTimeline: true, lifecycleGraphs: true, }, },