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

chore: add eventTimeline feature flag (#8159)

https://linear.app/unleash/issue/2-2658/create-eventtimeline-feature-flag

Adds a new `eventTimeline` feature flag for the new event timeline
feature.

I think `eventTimeline` is an appropriate name given the feature
description and the way it is evolving, but I'm open to suggestions.
~~This also assumes that this feature will target OSS.~~ Confirmed that
this will be a premium feature.
This commit is contained in:
Nuno Góis 2024-09-18 08:55:50 +01:00 committed by GitHub
parent 7a0bda5b51
commit 85b67ae330
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -90,6 +90,7 @@ export type UiFlags = {
archiveProjects?: boolean;
projectListImprovements?: boolean;
onboardingUI?: boolean;
eventTimeline?: boolean;
};
export interface IVersionInfo {

View File

@ -63,7 +63,8 @@ export type IFlagKey =
| 'addonUsageMetrics'
| 'onboardingMetrics'
| 'onboardingUI'
| 'projectRoleAssignment';
| 'projectRoleAssignment'
| 'eventTimeline';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -312,6 +313,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_PROJECT_ROLE_ASSIGNMENT,
false,
),
eventTimeline: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_EVENT_TIMELINE,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {