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:
parent
b9ea24be8d
commit
abd077aaf7
@ -94,6 +94,7 @@ export type UiFlags = {
|
||||
newEventSearch?: boolean;
|
||||
changeRequestPlayground?: boolean;
|
||||
archiveProjects?: boolean;
|
||||
projectListImprovements?: boolean;
|
||||
};
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
@ -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": {
|
||||
|
@ -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 = {
|
||||
|
@ -57,6 +57,8 @@ process.nextTick(async () => {
|
||||
originMiddleware: true,
|
||||
newEventSearch: true,
|
||||
changeRequestPlayground: true,
|
||||
projectListImprovements: true,
|
||||
useProjectReadModel: true,
|
||||
},
|
||||
},
|
||||
authentication: {
|
||||
|
Loading…
Reference in New Issue
Block a user