1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-01 01:18:10 +02:00

add feature flag: network view (#2543)

https://linear.app/unleash/issue/2-453/add-feature-flag
This commit is contained in:
Nuno Góis 2022-11-28 13:48:02 +00:00 committed by GitHub
parent e7225dd29f
commit 1fec43947d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

@ -45,6 +45,7 @@ export interface IFlags {
cloneEnvironment?: boolean;
variantsPerEnvironment?: boolean;
tokensLastSeen?: boolean;
networkView?: boolean;
}
export interface IVersionInfo {

View File

@ -74,6 +74,7 @@ exports[`should create default config 1`] = `
"cloneEnvironment": false,
"embedProxy": false,
"embedProxyFrontend": false,
"networkView": false,
"proxyReturnAllToggles": false,
"responseTimeWithAppName": false,
"syncSSOGroups": false,
@ -91,6 +92,7 @@ exports[`should create default config 1`] = `
"cloneEnvironment": false,
"embedProxy": false,
"embedProxyFrontend": false,
"networkView": false,
"proxyReturnAllToggles": false,
"responseTimeWithAppName": false,
"syncSSOGroups": false,

View File

@ -50,6 +50,10 @@ export const defaultExperimentalOptions = {
process.env.UNLEASH_EXPERIMENTAL_TOKENS_LAST_SEEN,
false,
),
networkView: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_NETWORK_VIEW,
false,
),
},
externalResolver: { isEnabled: (): boolean => false },
};
@ -68,6 +72,7 @@ export interface IExperimentalOptions {
proxyReturnAllToggles?: boolean;
variantsPerEnvironment?: boolean;
tokensLastSeen?: boolean;
networkView?: boolean;
};
externalResolver: IExternalFlagResolver;
}