From 7fdcffac1abcc05d034dafb186e71fb16f9e4566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20St=C3=BCrmer?= Date: Thu, 4 Nov 2021 19:24:30 +0100 Subject: [PATCH] Set missing deprecation levels to critical --- x-pack/plugins/infra/server/deprecations.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/infra/server/deprecations.ts b/x-pack/plugins/infra/server/deprecations.ts index 70131cd96d117..018fb017e8b18 100644 --- a/x-pack/plugins/infra/server/deprecations.ts +++ b/x-pack/plugins/infra/server/deprecations.ts @@ -145,7 +145,7 @@ const FIELD_DEPRECATION_FACTORIES: Record Dep export const configDeprecations: ConfigDeprecationProvider = ({ deprecate }) => [ ...Object.keys(FIELD_DEPRECATION_FACTORIES).map( (key): ConfigDeprecation => - (completeConfig, rootPath, addDeprecation) => { + (completeConfig, _rootPath, addDeprecation) => { const configuredValue = get(completeConfig, `xpack.infra.sources.default.fields.${key}`); if (typeof configuredValue === 'undefined') { return completeConfig; @@ -179,8 +179,9 @@ export const configDeprecations: ConfigDeprecationProvider = ({ deprecate }) => return completeConfig; } ), - deprecate('sources.default.logAlias', '8.0.0'), - deprecate('sources.default.metricAlias', '8.0.0'), + deprecate('sources.default.logAlias', '8.0.0', { level: 'critical' }), + deprecate('sources.default.metricAlias', '8.0.0', { level: 'critical' }), + deprecate('enabled', '8.0.0', { level: 'critical' }), ]; export const getInfraDeprecationsFactory =