1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-09 01:17:06 +02:00

chore: add unleashAI feature flag (#8399)

https://linear.app/unleash/issue/2-2773/add-unleashai-feature-flag

Adds the `unleashAI` feature flag, the first step in the Unleash AI
experiment.
This commit is contained in:
Nuno Góis 2024-10-09 14:10:58 +01:00 committed by GitHub
parent 178940ce7f
commit d032a91494
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View File

@ -90,6 +90,7 @@ export type UiFlags = {
eventTimeline?: boolean; eventTimeline?: boolean;
personalDashboardUI?: boolean; personalDashboardUI?: boolean;
purchaseAdditionalEnvironments?: boolean; purchaseAdditionalEnvironments?: boolean;
unleashAI?: boolean;
}; };
export interface IVersionInfo { export interface IVersionInfo {

View File

@ -61,7 +61,8 @@ export type IFlagKey =
| 'eventTimeline' | 'eventTimeline'
| 'personalDashboardUI' | 'personalDashboardUI'
| 'trackLifecycleMetrics' | 'trackLifecycleMetrics'
| 'purchaseAdditionalEnvironments'; | 'purchaseAdditionalEnvironments'
| 'unleashAI';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -302,6 +303,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_PURCHASE_ADDITIONAL_ENVIRONMENTS, process.env.UNLEASH_EXPERIMENTAL_PURCHASE_ADDITIONAL_ENVIRONMENTS,
false, false,
), ),
unleashAI: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_UNLEASH_AI,
false,
),
}; };
export const defaultExperimentalOptions: IExperimentalOptions = { export const defaultExperimentalOptions: IExperimentalOptions = {

View File

@ -56,6 +56,7 @@ process.nextTick(async () => {
onboardingUI: true, onboardingUI: true,
personalDashboardUI: true, personalDashboardUI: true,
purchaseAdditionalEnvironments: true, purchaseAdditionalEnvironments: true,
unleashAI: true,
}, },
}, },
authentication: { authentication: {