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:
parent
da3a8cdb1e
commit
245c3e119d
@ -94,6 +94,7 @@ export type UiFlags = {
|
||||
insightsV2?: boolean;
|
||||
featureCollaborators?: boolean;
|
||||
integrationEvents?: boolean;
|
||||
improveCreateFlagFlow?: boolean;
|
||||
};
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
@ -127,6 +127,7 @@ exports[`should create default config 1`] = `
|
||||
"filterInvalidClientMetrics": false,
|
||||
"flagCreator": false,
|
||||
"googleAuthEnabled": false,
|
||||
"improveCreateFlagFlow": false,
|
||||
"insightsV2": false,
|
||||
"integrationEvents": false,
|
||||
"killInsightsUI": false,
|
||||
|
@ -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 = {
|
||||
|
@ -59,6 +59,7 @@ process.nextTick(async () => {
|
||||
insightsV2: true,
|
||||
integrationEvents: true,
|
||||
featureCollaborators: true,
|
||||
improveCreateFlagFlow: true,
|
||||
},
|
||||
},
|
||||
authentication: {
|
||||
|
Loading…
Reference in New Issue
Block a user