1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +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; archiveProjects?: boolean;
projectListImprovements?: boolean; projectListImprovements?: boolean;
onboardingUI?: boolean; onboardingUI?: boolean;
eventTimeline?: boolean;
}; };
export interface IVersionInfo { export interface IVersionInfo {

View File

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