1
0
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:
Mateusz Kwasniewski 2023-07-31 12:27:31 +02:00 committed by GitHub
parent b34f00c2cb
commit ce468dcdce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 35 deletions

View File

@ -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,

View File

@ -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(

View File

@ -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(