1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-18 00:19:49 +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; insightsV2?: boolean;
featureCollaborators?: boolean; featureCollaborators?: boolean;
integrationEvents?: boolean; integrationEvents?: boolean;
improveCreateFlagFlow?: boolean;
}; };
export interface IVersionInfo { export interface IVersionInfo {

View File

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

View File

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

View File

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