[Logs UI] [Metrics UI] Register deprecations for the logAlias and metricAlias config settings (#115845)

This commit is contained in:
Felix Stürmer 2021-10-21 16:58:37 +02:00 committed by GitHub
parent 3cffe8b6a4
commit 5890a01896
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,7 +142,7 @@ const FIELD_DEPRECATION_FACTORIES: Record<string, (configNames: string[]) => Dep
}),
};
export const configDeprecations: ConfigDeprecationProvider = () => [
export const configDeprecations: ConfigDeprecationProvider = ({ deprecate }) => [
...Object.keys(FIELD_DEPRECATION_FACTORIES).map(
(key): ConfigDeprecation =>
(completeConfig, rootPath, addDeprecation) => {
@ -179,6 +179,8 @@ export const configDeprecations: ConfigDeprecationProvider = () => [
return completeConfig;
}
),
deprecate('sources.default.logAlias', '8.0.0'),
deprecate('sources.default.metricAlias', '8.0.0'),
];
export const getInfraDeprecationsFactory =