mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
chore: add a toggle for project segments (#3272)
## About the changes This adds a new flag that can be used in the UI to display project specific segments
This commit is contained in:
parent
068c55a925
commit
7c289369cc
@ -48,6 +48,7 @@ export interface IFlags {
|
||||
proPlanAutoCharge?: boolean;
|
||||
notifications?: boolean;
|
||||
loginHistory?: boolean;
|
||||
projectScopedSegments?: boolean;
|
||||
}
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
@ -80,6 +80,7 @@ exports[`should create default config 1`] = `
|
||||
"newProjectOverview": false,
|
||||
"notifications": false,
|
||||
"proPlanAutoCharge": false,
|
||||
"projectScopedSegments": false,
|
||||
"projectStatusApi": false,
|
||||
"proxyReturnAllToggles": false,
|
||||
"responseTimeWithAppNameKillSwitch": false,
|
||||
@ -102,6 +103,7 @@ exports[`should create default config 1`] = `
|
||||
"newProjectOverview": false,
|
||||
"notifications": false,
|
||||
"proPlanAutoCharge": false,
|
||||
"projectScopedSegments": false,
|
||||
"projectStatusApi": false,
|
||||
"proxyReturnAllToggles": false,
|
||||
"responseTimeWithAppNameKillSwitch": false,
|
||||
|
@ -64,6 +64,10 @@ const flags = {
|
||||
),
|
||||
notifications: parseEnvVarBoolean(process.env.NOTIFICATIONS, false),
|
||||
loginHistory: parseEnvVarBoolean(process.env.UNLEASH_LOGIN_HISTORY, false),
|
||||
projectScopedSegments: parseEnvVarBoolean(
|
||||
process.env.PROJECT_SCOPED_SEGMENTS,
|
||||
false,
|
||||
),
|
||||
};
|
||||
|
||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||
|
@ -42,6 +42,7 @@ process.nextTick(async () => {
|
||||
newProjectOverview: true,
|
||||
projectStatusApi: true,
|
||||
showProjectApiAccess: true,
|
||||
projectScopedSegments: true,
|
||||
},
|
||||
},
|
||||
authentication: {
|
||||
|
Loading…
Reference in New Issue
Block a user