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

chore: add flag configuration for the new flag creation flow (#7662)

Add a new flag and default it to true for local development.
This commit is contained in:
Thomas Heartman 2024-07-25 11:12:58 +02:00 committed by GitHub
parent da3a8cdb1e
commit 245c3e119d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 1 deletions

View File

@ -94,6 +94,7 @@ export type UiFlags = {
insightsV2?: boolean;
featureCollaborators?: boolean;
integrationEvents?: boolean;
improveCreateFlagFlow?: boolean;
};
export interface IVersionInfo {

View File

@ -127,6 +127,7 @@ exports[`should create default config 1`] = `
"filterInvalidClientMetrics": false,
"flagCreator": false,
"googleAuthEnabled": false,
"improveCreateFlagFlow": false,
"insightsV2": false,
"integrationEvents": false,
"killInsightsUI": false,

View File

@ -69,7 +69,8 @@ export type IFlagKey =
| 'removeUnsafeInlineStyleSrc'
| 'insightsV2'
| 'integrationEvents'
| 'featureCollaborators';
| 'featureCollaborators'
| 'improveCreateFlagFlow';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -334,6 +335,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_FEATURE_COLLABORATORS,
false,
),
improveCreateFlagFlow: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_IMPROVE_CREATE_FLAG_FLOW,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {

View File

@ -59,6 +59,7 @@ process.nextTick(async () => {
insightsV2: true,
integrationEvents: true,
featureCollaborators: true,
improveCreateFlagFlow: true,
},
},
authentication: {