mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
chore: clean client api flag removed (#4368)
This commit is contained in:
parent
b34f00c2cb
commit
ce468dcdce
@ -69,7 +69,6 @@ exports[`should create default config 1`] = `
|
||||
"flags": {
|
||||
"anonymiseEventLog": false,
|
||||
"caseInsensitiveInOperators": false,
|
||||
"cleanClientApi": false,
|
||||
"configurableFeatureTypeLifetimes": false,
|
||||
"customRootRoles": false,
|
||||
"demo": false,
|
||||
@ -104,7 +103,6 @@ exports[`should create default config 1`] = `
|
||||
"experiments": {
|
||||
"anonymiseEventLog": false,
|
||||
"caseInsensitiveInOperators": false,
|
||||
"cleanClientApi": false,
|
||||
"configurableFeatureTypeLifetimes": false,
|
||||
"customRootRoles": false,
|
||||
"demo": false,
|
||||
|
@ -940,37 +940,29 @@ class FeatureToggleService {
|
||||
const result = await this.featureToggleClientStore.getClient(
|
||||
query || {},
|
||||
);
|
||||
if (this.flagResolver.isEnabled('cleanClientApi')) {
|
||||
return result.map(
|
||||
({
|
||||
name,
|
||||
type,
|
||||
enabled,
|
||||
project,
|
||||
stale,
|
||||
strategies,
|
||||
variants,
|
||||
description,
|
||||
createdAt,
|
||||
lastSeenAt,
|
||||
impressionData,
|
||||
}) => ({
|
||||
name,
|
||||
type,
|
||||
enabled,
|
||||
project,
|
||||
stale,
|
||||
strategies,
|
||||
variants,
|
||||
description,
|
||||
createdAt,
|
||||
lastSeenAt,
|
||||
impressionData,
|
||||
}),
|
||||
);
|
||||
} else {
|
||||
return result;
|
||||
}
|
||||
return result.map(
|
||||
({
|
||||
name,
|
||||
type,
|
||||
enabled,
|
||||
project,
|
||||
stale,
|
||||
strategies,
|
||||
variants,
|
||||
description,
|
||||
impressionData,
|
||||
}) => ({
|
||||
name,
|
||||
type,
|
||||
enabled,
|
||||
project,
|
||||
stale,
|
||||
strategies,
|
||||
variants,
|
||||
description,
|
||||
impressionData,
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
async getPlaygroundFeatures(
|
||||
|
@ -14,7 +14,6 @@ export type IFlagKey =
|
||||
| 'strictSchemaValidation'
|
||||
| 'proPlanAutoCharge'
|
||||
| 'personalAccessTokensKillSwitch'
|
||||
| 'cleanClientApi'
|
||||
| 'migrationLock'
|
||||
| 'demo'
|
||||
| 'googleAuthEnabled'
|
||||
@ -81,7 +80,6 @@ const flags: IFlags = {
|
||||
process.env.UNLEASH_PAT_KILL_SWITCH,
|
||||
false,
|
||||
),
|
||||
cleanClientApi: parseEnvVarBoolean(process.env.CLEAN_CLIENT_API, false),
|
||||
migrationLock: parseEnvVarBoolean(process.env.MIGRATION_LOCK, false),
|
||||
demo: parseEnvVarBoolean(process.env.UNLEASH_DEMO, false),
|
||||
googleAuthEnabled: parseEnvVarBoolean(
|
||||
|
Loading…
Reference in New Issue
Block a user