1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-31 01:16:01 +02:00

chore: add flags projectListImprovements and useProjectReadModel (#7905)

These are both related to the work on the project list improvements
project.

The `projectListImprovements` flag will be used to enable disable the
new project list improvements.

The `useProjectReadModel` flag will be used to enable/disable the use
of the new project read model and is mostly a safety feature.
This commit is contained in:
Thomas Heartman 2024-08-16 11:54:11 +02:00 committed by GitHub
parent b9ea24be8d
commit abd077aaf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 1 deletions

View File

@ -94,6 +94,7 @@ export type UiFlags = {
newEventSearch?: boolean;
changeRequestPlayground?: boolean;
archiveProjects?: boolean;
projectListImprovements?: boolean;
};
export interface IVersionInfo {

View File

@ -140,6 +140,7 @@ exports[`should create default config 1`] = `
"originMiddleware": false,
"outdatedSdksBanner": false,
"personalAccessTokensKillSwitch": false,
"projectListImprovements": false,
"projectOverviewRefactorFeedback": false,
"queryMissingTokens": false,
"removeUnsafeInlineStyleSrc": false,
@ -150,6 +151,7 @@ exports[`should create default config 1`] = `
"signals": false,
"strictSchemaValidation": false,
"useMemoizedActiveTokens": false,
"useProjectReadModel": false,
"userAccessUIEnabled": false,
},
"externalResolver": {

View File

@ -64,7 +64,9 @@ export type IFlagKey =
| 'originMiddleware'
| 'newEventSearch'
| 'changeRequestPlayground'
| 'archiveProjects';
| 'archiveProjects'
| 'projectListImprovements'
| 'useProjectReadModel';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -313,6 +315,14 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_ARCHIVE_PROJECTS,
false,
),
projectListImprovements: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_PROJECT_LIST_IMPROVEMENTS,
false,
),
useProjectReadModel: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_USE_PROJECT_READ_MODEL,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {

View File

@ -57,6 +57,8 @@ process.nextTick(async () => {
originMiddleware: true,
newEventSearch: true,
changeRequestPlayground: true,
projectListImprovements: true,
useProjectReadModel: true,
},
},
authentication: {