mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Infrastructure UI] Upgrade assistand: Extend deprecation errors rules for 8.x (#153094)
Closes #152954 ## Summary This PR fixes the issue with deprecation errors in the Upgrade assistance for versions newer than 8.x ### Testing 1. First check that they are no error - go to Kibana > Stack Management > Upgrade assistant and there shouldn't be any critical errors:  2. Go to Kibana > Infrastructure > Settings and change the default value from `metrics-*,metricbeat-*` to anything else - even `metricbeat-*,metrics-*` (swapping the order) will work. Apply the changes. <img width="1725" alt="image" src="https://user-images.githubusercontent.com/14139027/224307871-bd710809-c1da-4403-8b48-1e0f9ad8298b.png"> 3. Go to Kibana > Stack Management > Upgrade assistant and there shouldn't be any critical errors.
This commit is contained in:
parent
7a0b6ba524
commit
ecd98ef5cc
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ export const getInfraDeprecationsFactory =
|
|||
const { name, fields } = configuration;
|
||||
for (const [key, defaultValue] of Object.entries(DEFAULT_VALUES)) {
|
||||
const configuredValue = Reflect.get(fields, key);
|
||||
if (configuredValue !== defaultValue) {
|
||||
if (configuredValue !== undefined && configuredValue !== defaultValue) {
|
||||
const affectedConfigNames = deprecatedFieldsToSourceConfigMap.get(key) ?? [];
|
||||
affectedConfigNames.push(name);
|
||||
deprecatedFieldsToSourceConfigMap.set(key, affectedConfigNames);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue