1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-09 01:17:06 +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; newEventSearch?: boolean;
changeRequestPlayground?: boolean; changeRequestPlayground?: boolean;
archiveProjects?: boolean; archiveProjects?: boolean;
projectListImprovements?: boolean;
}; };
export interface IVersionInfo { export interface IVersionInfo {

View File

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

View File

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

View File

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