Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Infra UI] Add missing deprecation levels #117580

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions x-pack/plugins/infra/server/deprecations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const FIELD_DEPRECATION_FACTORIES: Record<string, (configNames: string[]) => 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;
Expand Down Expand Up @@ -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 =
Expand Down