mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
chore: add flag for improved project creation (#6870)
This PR adds the flag for the improved project creation flag to Unleash.
This commit is contained in:
parent
023e1594e9
commit
ef23cc0cc1
@ -83,6 +83,7 @@ export type UiFlags = {
|
||||
featureLifecycle?: boolean;
|
||||
scimApi?: boolean;
|
||||
projectListFilterMyProjects?: boolean;
|
||||
createProjectWithEnvironmentConfig?: boolean;
|
||||
};
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
@ -80,6 +80,7 @@ exports[`should create default config 1`] = `
|
||||
"caseInsensitiveInOperators": false,
|
||||
"celebrateUnleash": false,
|
||||
"collectTrafficDataUsage": false,
|
||||
"createProjectWithEnvironmentConfig": false,
|
||||
"demo": false,
|
||||
"disableBulkToggle": false,
|
||||
"disableMetrics": false,
|
||||
|
@ -59,7 +59,8 @@ export type IFlagKey =
|
||||
| 'projectOverviewRefactorFeedback'
|
||||
| 'featureLifecycle'
|
||||
| 'projectListFilterMyProjects'
|
||||
| 'parseProjectFromSession';
|
||||
| 'parseProjectFromSession'
|
||||
| 'createProjectWithEnvironmentConfig';
|
||||
|
||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||
|
||||
@ -292,6 +293,10 @@ const flags: IFlags = {
|
||||
process.env.UNLEASH_EXPERIMENTAL_PARSE_PROJECT_FROM_SESSION,
|
||||
false,
|
||||
),
|
||||
createProjectWithEnvironmentConfig: parseEnvVarBoolean(
|
||||
process.env.UNLEASH_EXPERIMENTAL_CREATE_PROJECT_WITH_ENVIRONMENT_CONFIG,
|
||||
false,
|
||||
),
|
||||
};
|
||||
|
||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||
|
@ -56,6 +56,7 @@ process.nextTick(async () => {
|
||||
featureLifecycle: true,
|
||||
projectListFilterMyProjects: true,
|
||||
parseProjectFromSession: true,
|
||||
createProjectWithEnvironmentConfig: true,
|
||||
},
|
||||
},
|
||||
authentication: {
|
||||
|
Loading…
Reference in New Issue
Block a user