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": { "flags": {
"anonymiseEventLog": false, "anonymiseEventLog": false,
"caseInsensitiveInOperators": false, "caseInsensitiveInOperators": false,
"cleanClientApi": false,
"configurableFeatureTypeLifetimes": false, "configurableFeatureTypeLifetimes": false,
"customRootRoles": false, "customRootRoles": false,
"demo": false, "demo": false,
@ -104,7 +103,6 @@ exports[`should create default config 1`] = `
"experiments": { "experiments": {
"anonymiseEventLog": false, "anonymiseEventLog": false,
"caseInsensitiveInOperators": false, "caseInsensitiveInOperators": false,
"cleanClientApi": false,
"configurableFeatureTypeLifetimes": false, "configurableFeatureTypeLifetimes": false,
"customRootRoles": false, "customRootRoles": false,
"demo": false, "demo": false,

View File

@ -940,37 +940,29 @@ class FeatureToggleService {
const result = await this.featureToggleClientStore.getClient( const result = await this.featureToggleClientStore.getClient(
query || {}, query || {},
); );
if (this.flagResolver.isEnabled('cleanClientApi')) { return result.map(
return result.map( ({
({ name,
name, type,
type, enabled,
enabled, project,
project, stale,
stale, strategies,
strategies, variants,
variants, description,
description, impressionData,
createdAt, }) => ({
lastSeenAt, name,
impressionData, type,
}) => ({ enabled,
name, project,
type, stale,
enabled, strategies,
project, variants,
stale, description,
strategies, impressionData,
variants, }),
description, );
createdAt,
lastSeenAt,
impressionData,
}),
);
} else {
return result;
}
} }
async getPlaygroundFeatures( async getPlaygroundFeatures(

View File

@ -14,7 +14,6 @@ export type IFlagKey =
| 'strictSchemaValidation' | 'strictSchemaValidation'
| 'proPlanAutoCharge' | 'proPlanAutoCharge'
| 'personalAccessTokensKillSwitch' | 'personalAccessTokensKillSwitch'
| 'cleanClientApi'
| 'migrationLock' | 'migrationLock'
| 'demo' | 'demo'
| 'googleAuthEnabled' | 'googleAuthEnabled'
@ -81,7 +80,6 @@ const flags: IFlags = {
process.env.UNLEASH_PAT_KILL_SWITCH, process.env.UNLEASH_PAT_KILL_SWITCH,
false, false,
), ),
cleanClientApi: parseEnvVarBoolean(process.env.CLEAN_CLIENT_API, false),
migrationLock: parseEnvVarBoolean(process.env.MIGRATION_LOCK, false), migrationLock: parseEnvVarBoolean(process.env.MIGRATION_LOCK, false),
demo: parseEnvVarBoolean(process.env.UNLEASH_DEMO, false), demo: parseEnvVarBoolean(process.env.UNLEASH_DEMO, false),
googleAuthEnabled: parseEnvVarBoolean( googleAuthEnabled: parseEnvVarBoolean(