1
0
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:
Thomas Heartman 2024-04-16 14:57:52 +02:00 committed by GitHub
parent 023e1594e9
commit ef23cc0cc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 1 deletions

View File

@ -83,6 +83,7 @@ export type UiFlags = {
featureLifecycle?: boolean;
scimApi?: boolean;
projectListFilterMyProjects?: boolean;
createProjectWithEnvironmentConfig?: boolean;
};
export interface IVersionInfo {

View File

@ -80,6 +80,7 @@ exports[`should create default config 1`] = `
"caseInsensitiveInOperators": false,
"celebrateUnleash": false,
"collectTrafficDataUsage": false,
"createProjectWithEnvironmentConfig": false,
"demo": false,
"disableBulkToggle": false,
"disableMetrics": false,

View File

@ -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 = {

View File

@ -56,6 +56,7 @@ process.nextTick(async () => {
featureLifecycle: true,
projectListFilterMyProjects: true,
parseProjectFromSession: true,
createProjectWithEnvironmentConfig: true,
},
},
authentication: {