1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01: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;
personalDashboardUI?: boolean;
purchaseAdditionalEnvironments?: boolean;
unleashAI?: boolean;
};
export interface IVersionInfo {

View File

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

View File

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