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:
parent
da3a8cdb1e
commit
245c3e119d
@ -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 {
|
||||||
|
@ -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,
|
||||||
|
@ -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 = {
|
||||||
|
@ -59,6 +59,7 @@ process.nextTick(async () => {
|
|||||||
insightsV2: true,
|
insightsV2: true,
|
||||||
integrationEvents: true,
|
integrationEvents: true,
|
||||||
featureCollaborators: true,
|
featureCollaborators: true,
|
||||||
|
improveCreateFlagFlow: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
authentication: {
|
authentication: {
|
||||||
|
Loading…
Reference in New Issue
Block a user