1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-28 19:06:12 +01:00

chore: archive projects flag (#7772)

This commit is contained in:
Mateusz Kwasniewski 2024-08-06 14:59:49 +02:00 committed by GitHub
parent 41c6d06093
commit f9665233cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View File

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

View File

@ -78,6 +78,7 @@ exports[`should create default config 1`] = `
"adminTokenKillSwitch": false,
"anonymiseEventLog": false,
"anonymizeProjectOwners": false,
"archiveProjects": false,
"automatedActions": false,
"caseInsensitiveInOperators": false,
"celebrateUnleash": false,

View File

@ -71,7 +71,8 @@ export type IFlagKey =
| 'improveCreateFlagFlow'
| 'originMiddleware'
| 'newEventSearch'
| 'changeRequestPlayground';
| 'changeRequestPlayground'
| 'archiveProjects';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -344,6 +345,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_CHANGE_REQUEST_PLAYGROUND,
false,
),
archiveProjects: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_ARCHIVE_PROJECTS,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {