From 7aff34b4e9d51b6249dd9bbb00ce005baab65628 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Tue, 16 Nov 2021 13:12:33 -0500 Subject: [PATCH] Add deprecation level for data plugin config renames (#118442) (#118715) * Add deprecation level for data plugin config renames * Make warning level instead of critical Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Lukas Olson --- src/plugins/data/server/config_deprecations.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/data/server/config_deprecations.ts b/src/plugins/data/server/config_deprecations.ts index 47a88217611a3..d98364a8e83c6 100644 --- a/src/plugins/data/server/config_deprecations.ts +++ b/src/plugins/data/server/config_deprecations.ts @@ -13,7 +13,10 @@ export const autocompleteConfigDeprecationProvider: ConfigDeprecationProvider = }) => [ renameFromRoot( 'kibana.autocompleteTerminateAfter', - 'data.autocomplete.valueSuggestions.terminateAfter' + 'data.autocomplete.valueSuggestions.terminateAfter', + { level: 'warning' } ), - renameFromRoot('kibana.autocompleteTimeout', 'data.autocomplete.valueSuggestions.timeout'), + renameFromRoot('kibana.autocompleteTimeout', 'data.autocomplete.valueSuggestions.timeout', { + level: 'warning', + }), ];