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;
|
featureLifecycle?: boolean;
|
||||||
scimApi?: boolean;
|
scimApi?: boolean;
|
||||||
projectListFilterMyProjects?: boolean;
|
projectListFilterMyProjects?: boolean;
|
||||||
|
createProjectWithEnvironmentConfig?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface IVersionInfo {
|
export interface IVersionInfo {
|
||||||
|
@ -80,6 +80,7 @@ exports[`should create default config 1`] = `
|
|||||||
"caseInsensitiveInOperators": false,
|
"caseInsensitiveInOperators": false,
|
||||||
"celebrateUnleash": false,
|
"celebrateUnleash": false,
|
||||||
"collectTrafficDataUsage": false,
|
"collectTrafficDataUsage": false,
|
||||||
|
"createProjectWithEnvironmentConfig": false,
|
||||||
"demo": false,
|
"demo": false,
|
||||||
"disableBulkToggle": false,
|
"disableBulkToggle": false,
|
||||||
"disableMetrics": false,
|
"disableMetrics": false,
|
||||||
|
@ -59,7 +59,8 @@ export type IFlagKey =
|
|||||||
| 'projectOverviewRefactorFeedback'
|
| 'projectOverviewRefactorFeedback'
|
||||||
| 'featureLifecycle'
|
| 'featureLifecycle'
|
||||||
| 'projectListFilterMyProjects'
|
| 'projectListFilterMyProjects'
|
||||||
| 'parseProjectFromSession';
|
| 'parseProjectFromSession'
|
||||||
|
| 'createProjectWithEnvironmentConfig';
|
||||||
|
|
||||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||||
|
|
||||||
@ -292,6 +293,10 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_PARSE_PROJECT_FROM_SESSION,
|
process.env.UNLEASH_EXPERIMENTAL_PARSE_PROJECT_FROM_SESSION,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
|
createProjectWithEnvironmentConfig: parseEnvVarBoolean(
|
||||||
|
process.env.UNLEASH_EXPERIMENTAL_CREATE_PROJECT_WITH_ENVIRONMENT_CONFIG,
|
||||||
|
false,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||||
|
@ -56,6 +56,7 @@ process.nextTick(async () => {
|
|||||||
featureLifecycle: true,
|
featureLifecycle: true,
|
||||||
projectListFilterMyProjects: true,
|
projectListFilterMyProjects: true,
|
||||||
parseProjectFromSession: true,
|
parseProjectFromSession: true,
|
||||||
|
createProjectWithEnvironmentConfig: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
authentication: {
|
authentication: {
|
||||||
|
Loading…
Reference in New Issue
Block a user