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

chore: remove featureSearchAPI flag (#6081)

This commit is contained in:
Jaanus Sellin 2024-01-31 10:01:31 +02:00 committed by GitHub
parent aae1d0576f
commit d7eb950f3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 59 additions and 72 deletions

View File

@ -64,7 +64,6 @@ export type UiFlags = {
doraMetrics?: boolean;
dependentFeatures?: boolean;
scheduledConfigurationChanges?: boolean;
featureSearchAPI?: boolean;
newStrategyConfiguration?: boolean;
incomingWebhooks?: boolean;
automatedActions?: boolean;

View File

@ -95,7 +95,6 @@ exports[`should create default config 1`] = `
"executiveDashboard": false,
"extendedUsageMetrics": false,
"extendedUsageMetricsUI": false,
"featureSearchAPI": true,
"featureSearchFeedback": false,
"featureSearchFeedbackPosting": false,
"featuresExportImport": true,

View File

@ -15,7 +15,6 @@ import {
searchFeaturesSchema,
} from '../../openapi';
import { IAuthRequest } from '../../routes/unleash-types';
import { InvalidOperationError } from '../../error';
import {
FeatureSearchQueryParameters,
featureSearchQueryParameters,
@ -75,7 +74,6 @@ export default class FeatureSearchController extends Controller {
req: IAuthRequest<any, any, any, FeatureSearchQueryParameters>,
res: Response,
): Promise<void> {
if (this.config.flagResolver.isEnabled('featureSearchAPI')) {
const {
query,
project,
@ -131,12 +129,10 @@ export default class FeatureSearchController extends Controller {
200,
res,
searchFeaturesSchema.$id,
serializeDates({ features, total }),
);
} else {
throw new InvalidOperationError(
'Feature Search API is not enabled',
serializeDates({
features,
total,
}),
);
}
}
}

View File

@ -21,7 +21,6 @@ beforeAll(async () => {
experimental: {
flags: {
strictSchemaValidation: true,
featureSearchAPI: true,
},
},
},

View File

@ -27,7 +27,6 @@ export type IFlagKey =
| 'filterInvalidClientMetrics'
| 'customRootRolesKillSwitch'
| 'disableMetrics'
| 'featureSearchAPI'
| 'scheduledConfigurationChanges'
| 'detectSegmentUsageInChangeRequests'
| 'stripClientHeadersOn304'
@ -130,10 +129,6 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_DISABLE_METRICS,
false,
),
featureSearchAPI: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_FEATURE_SEARCH_API,
true,
),
scheduledConfigurationChanges: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_SCHEDULED_CONFIGURATION_CHANGES,
false,

View File

@ -40,7 +40,6 @@ process.nextTick(async () => {
embedProxyFrontend: true,
anonymiseEventLog: false,
responseTimeWithAppNameKillSwitch: false,
featureSearchAPI: true,
stripClientHeadersOn304: true,
newStrategyConfiguration: true,
stripHeadersOnAPI: true,