mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-23 13:46:45 +02:00
chore: remove unkonwn flags (#10389)
We're iterating over the keys of experimental and checking if they're
enabled:
e140ab63e1/src/lib/util/flag-resolver.ts (L26)
which leads to this big list of unknown flags
This comes from our report:
<img width="1461" height="1042" alt="image"
src="https://github.com/user-attachments/assets/9579f351-e5e9-42ad-a141-b5cde83a41b8"
/>
This commit is contained in:
parent
bfd82015d1
commit
57ec5ce876
@ -9,7 +9,6 @@ export type IFlagKey =
|
|||||||
| 'anonymiseEventLog'
|
| 'anonymiseEventLog'
|
||||||
| 'encryptEmails'
|
| 'encryptEmails'
|
||||||
| 'enableLicense'
|
| 'enableLicense'
|
||||||
| 'enableLicenseChecker'
|
|
||||||
| 'responseTimeWithAppNameKillSwitch'
|
| 'responseTimeWithAppNameKillSwitch'
|
||||||
| 'maintenanceMode'
|
| 'maintenanceMode'
|
||||||
| 'messageBanner'
|
| 'messageBanner'
|
||||||
@ -17,7 +16,6 @@ export type IFlagKey =
|
|||||||
| 'personalAccessTokensKillSwitch'
|
| 'personalAccessTokensKillSwitch'
|
||||||
| 'migrationLock'
|
| 'migrationLock'
|
||||||
| 'demo'
|
| 'demo'
|
||||||
| 'googleAuthEnabled'
|
|
||||||
| 'advancedPlayground'
|
| 'advancedPlayground'
|
||||||
| 'filterInvalidClientMetrics'
|
| 'filterInvalidClientMetrics'
|
||||||
| 'disableMetrics'
|
| 'disableMetrics'
|
||||||
@ -27,7 +25,6 @@ export type IFlagKey =
|
|||||||
| 'feedbackPosting'
|
| 'feedbackPosting'
|
||||||
| 'extendedUsageMetrics'
|
| 'extendedUsageMetrics'
|
||||||
| 'feedbackComments'
|
| 'feedbackComments'
|
||||||
| 'showInactiveUsers'
|
|
||||||
| 'killScheduledChangeRequestCache'
|
| 'killScheduledChangeRequestCache'
|
||||||
| 'estimateTrafficDataCost'
|
| 'estimateTrafficDataCost'
|
||||||
| 'useMemoizedActiveTokens'
|
| 'useMemoizedActiveTokens'
|
||||||
@ -73,7 +70,6 @@ export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
|||||||
const flags: IFlags = {
|
const flags: IFlags = {
|
||||||
anonymiseEventLog: false,
|
anonymiseEventLog: false,
|
||||||
enableLicense: false,
|
enableLicense: false,
|
||||||
enableLicenseChecker: false,
|
|
||||||
responseTimeWithAppNameKillSwitch: parseEnvVarBoolean(
|
responseTimeWithAppNameKillSwitch: parseEnvVarBoolean(
|
||||||
process.env.UNLEASH_RESPONSE_TIME_WITH_APP_NAME_KILL_SWITCH,
|
process.env.UNLEASH_RESPONSE_TIME_WITH_APP_NAME_KILL_SWITCH,
|
||||||
false,
|
false,
|
||||||
@ -104,10 +100,6 @@ const flags: IFlags = {
|
|||||||
),
|
),
|
||||||
migrationLock: parseEnvVarBoolean(process.env.MIGRATION_LOCK, true),
|
migrationLock: parseEnvVarBoolean(process.env.MIGRATION_LOCK, true),
|
||||||
demo: parseEnvVarBoolean(process.env.UNLEASH_DEMO, false),
|
demo: parseEnvVarBoolean(process.env.UNLEASH_DEMO, false),
|
||||||
googleAuthEnabled: parseEnvVarBoolean(
|
|
||||||
process.env.GOOGLE_AUTH_ENABLED,
|
|
||||||
false,
|
|
||||||
),
|
|
||||||
filterInvalidClientMetrics: parseEnvVarBoolean(
|
filterInvalidClientMetrics: parseEnvVarBoolean(
|
||||||
process.env.FILTER_INVALID_CLIENT_METRICS,
|
process.env.FILTER_INVALID_CLIENT_METRICS,
|
||||||
false,
|
false,
|
||||||
@ -157,10 +149,6 @@ const flags: IFlags = {
|
|||||||
'',
|
'',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
showInactiveUsers: parseEnvVarBoolean(
|
|
||||||
process.env.UNLEASH_EXPERIMENTAL_SHOW_INACTIVE_USERS,
|
|
||||||
false,
|
|
||||||
),
|
|
||||||
useMemoizedActiveTokens: parseEnvVarBoolean(
|
useMemoizedActiveTokens: parseEnvVarBoolean(
|
||||||
process.env.UNLEASH_EXPERIMENTAL_MEMOIZED_ACTIVE_TOKENS,
|
process.env.UNLEASH_EXPERIMENTAL_MEMOIZED_ACTIVE_TOKENS,
|
||||||
false,
|
false,
|
||||||
|
Loading…
Reference in New Issue
Block a user