mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-12 13:48:35 +02:00
chore: remove configurableFeatureTypeLifetimes flag (#4569)
This commit is contained in:
parent
3ebeea4d64
commit
1f96c1646c
@ -195,7 +195,6 @@ exports[`returns all baseRoutes 1`] = `
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"component": [Function],
|
"component": [Function],
|
||||||
"flag": "configurableFeatureTypeLifetimes",
|
|
||||||
"menu": {
|
"menu": {
|
||||||
"advanced": true,
|
"advanced": true,
|
||||||
"mobile": true,
|
"mobile": true,
|
||||||
|
@ -216,7 +216,6 @@ export const routes: IRoute[] = [
|
|||||||
component: FeatureTypesList,
|
component: FeatureTypesList,
|
||||||
type: 'protected',
|
type: 'protected',
|
||||||
menu: { mobile: true, advanced: true },
|
menu: { mobile: true, advanced: true },
|
||||||
flag: 'configurableFeatureTypeLifetimes',
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// Strategies
|
// Strategies
|
||||||
|
@ -52,7 +52,6 @@ export interface IFlags {
|
|||||||
advancedPlayground?: boolean;
|
advancedPlayground?: boolean;
|
||||||
customRootRolesKillSwitch?: boolean;
|
customRootRolesKillSwitch?: boolean;
|
||||||
strategyVariant?: boolean;
|
strategyVariant?: boolean;
|
||||||
configurableFeatureTypeLifetimes?: boolean;
|
|
||||||
segmentChangeRequests?: boolean;
|
segmentChangeRequests?: boolean;
|
||||||
changeRequestReject?: boolean;
|
changeRequestReject?: boolean;
|
||||||
lastSeenByEnvironment?: boolean;
|
lastSeenByEnvironment?: boolean;
|
||||||
|
@ -71,7 +71,6 @@ exports[`should create default config 1`] = `
|
|||||||
"anonymiseEventLog": false,
|
"anonymiseEventLog": false,
|
||||||
"caseInsensitiveInOperators": false,
|
"caseInsensitiveInOperators": false,
|
||||||
"changeRequestReject": false,
|
"changeRequestReject": false,
|
||||||
"configurableFeatureTypeLifetimes": false,
|
|
||||||
"customRootRolesKillSwitch": false,
|
"customRootRolesKillSwitch": false,
|
||||||
"demo": false,
|
"demo": false,
|
||||||
"disableBulkToggle": false,
|
"disableBulkToggle": false,
|
||||||
@ -107,7 +106,6 @@ exports[`should create default config 1`] = `
|
|||||||
"anonymiseEventLog": false,
|
"anonymiseEventLog": false,
|
||||||
"caseInsensitiveInOperators": false,
|
"caseInsensitiveInOperators": false,
|
||||||
"changeRequestReject": false,
|
"changeRequestReject": false,
|
||||||
"configurableFeatureTypeLifetimes": false,
|
|
||||||
"customRootRolesKillSwitch": false,
|
"customRootRolesKillSwitch": false,
|
||||||
"demo": false,
|
"demo": false,
|
||||||
"disableBulkToggle": false,
|
"disableBulkToggle": false,
|
||||||
|
@ -113,20 +113,16 @@ When a feature toggle type's expected lifetime is changed, this will also cause
|
|||||||
>,
|
>,
|
||||||
res: Response<FeatureTypeSchema>,
|
res: Response<FeatureTypeSchema>,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
if (this.flagResolver.isEnabled('configurableFeatureTypeLifetimes')) {
|
const result = await this.featureTypeService.updateLifetime(
|
||||||
const result = await this.featureTypeService.updateLifetime(
|
req.params.id.toLowerCase(),
|
||||||
req.params.id.toLowerCase(),
|
req.body.lifetimeDays,
|
||||||
req.body.lifetimeDays,
|
);
|
||||||
);
|
|
||||||
|
|
||||||
this.openApiService.respondWithValidation(
|
this.openApiService.respondWithValidation(
|
||||||
200,
|
200,
|
||||||
res,
|
res,
|
||||||
featureTypeSchema.$id,
|
featureTypeSchema.$id,
|
||||||
result,
|
result,
|
||||||
);
|
);
|
||||||
} else {
|
|
||||||
res.status(409).end();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,6 @@ export type IFlagKey =
|
|||||||
| 'advancedPlayground'
|
| 'advancedPlayground'
|
||||||
| 'strategyVariant'
|
| 'strategyVariant'
|
||||||
| 'slackAppAddon'
|
| 'slackAppAddon'
|
||||||
| 'configurableFeatureTypeLifetimes'
|
|
||||||
| 'filterInvalidClientMetrics'
|
| 'filterInvalidClientMetrics'
|
||||||
| 'lastSeenByEnvironment'
|
| 'lastSeenByEnvironment'
|
||||||
| 'segmentChangeRequests'
|
| 'segmentChangeRequests'
|
||||||
@ -105,10 +104,6 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_SLACK_APP_ADDON,
|
process.env.UNLEASH_SLACK_APP_ADDON,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
configurableFeatureTypeLifetimes: parseEnvVarBoolean(
|
|
||||||
process.env.UNLEASH_EXPERIMENTAL_CONFIGURABLE_FEATURE_TYPE_LIFETIMES,
|
|
||||||
false,
|
|
||||||
),
|
|
||||||
filterInvalidClientMetrics: parseEnvVarBoolean(
|
filterInvalidClientMetrics: parseEnvVarBoolean(
|
||||||
process.env.FILTER_INVALID_CLIENT_METRICS,
|
process.env.FILTER_INVALID_CLIENT_METRICS,
|
||||||
false,
|
false,
|
||||||
|
@ -39,7 +39,6 @@ process.nextTick(async () => {
|
|||||||
responseTimeWithAppNameKillSwitch: false,
|
responseTimeWithAppNameKillSwitch: false,
|
||||||
strategyVariant: true,
|
strategyVariant: true,
|
||||||
slackAppAddon: true,
|
slackAppAddon: true,
|
||||||
configurableFeatureTypeLifetimes: true,
|
|
||||||
lastSeenByEnvironment: true,
|
lastSeenByEnvironment: true,
|
||||||
segmentChangeRequests: true,
|
segmentChangeRequests: true,
|
||||||
newApplicationList: true,
|
newApplicationList: true,
|
||||||
|
@ -12,7 +12,6 @@ beforeAll(async () => {
|
|||||||
app = await setupAppWithCustomConfig(db.stores, {
|
app = await setupAppWithCustomConfig(db.stores, {
|
||||||
experimental: {
|
experimental: {
|
||||||
flags: {
|
flags: {
|
||||||
configurableFeatureTypeLifetimes: true,
|
|
||||||
strictSchemaValidation: true,
|
strictSchemaValidation: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user