diff --git a/x-pack/plugins/maps/server/index.ts b/x-pack/plugins/maps/server/index.ts index 331e9ac70afdd..a884b2354b583 100644 --- a/x-pack/plugins/maps/server/index.ts +++ b/x-pack/plugins/maps/server/index.ts @@ -24,6 +24,30 @@ export const config: PluginConfigDescriptor = { }, schema: configSchema, deprecations: () => [ + ( + completeConfig: Record, + rootPath: string, + addDeprecation: AddConfigDeprecation + ) => { + if (_.get(completeConfig, 'xpack.maps.showMapVisualizationTypes') === undefined) { + return completeConfig; + } + addDeprecation({ + message: i18n.translate('xpack.maps.deprecation.showMapVisualizationTypes.message', { + defaultMessage: + 'xpack.maps.showMapVisualizationTypes is deprecated and is no longer used', + }), + correctiveActions: { + manualSteps: [ + i18n.translate('xpack.maps.deprecation.showMapVisualizationTypes.step1', { + defaultMessage: + 'Remove "xpack.maps.showMapVisualizationTypes" in the Kibana config file, CLI flag, or environment variable (in Docker only).', + }), + ], + }, + }); + return completeConfig; + }, ( completeConfig: Record, rootPath: string, @@ -36,8 +60,7 @@ export const config: PluginConfigDescriptor = { documentationUrl: 'https://www.elastic.co/guide/en/kibana/current/maps-connect-to-ems.html#elastic-maps-server', message: i18n.translate('xpack.maps.deprecation.proxyEMS.message', { - defaultMessage: - 'map.proxyElasticMapsServiceInMaps is deprecated and will be removed in 8.0.', + defaultMessage: 'map.proxyElasticMapsServiceInMaps is deprecated and is no longer used', }), correctiveActions: { manualSteps: [ @@ -63,7 +86,7 @@ export const config: PluginConfigDescriptor = { } addDeprecation({ message: i18n.translate('xpack.maps.deprecation.regionmap.message', { - defaultMessage: 'map.regionmap is deprecated and will be removed in 8.0.', + defaultMessage: 'map.regionmap is deprecated and is no longer used', }), correctiveActions: { manualSteps: [