mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Logs UI] [Metrics UI] Remove deprecated alias config entries (#115974)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
c566e048e8
commit
34b22578d6
4 changed files with 1 additions and 26 deletions
|
@ -49,8 +49,6 @@ export const TimestampFromString = new rt.Type<number, string>(
|
|||
export const sourceConfigurationConfigFilePropertiesRT = rt.type({
|
||||
sources: rt.type({
|
||||
default: rt.partial({
|
||||
logAlias: rt.string, // Cannot be deprecated until 8.0.0. Will be converted to an indexName reference.
|
||||
metricAlias: rt.string,
|
||||
fields: rt.partial({
|
||||
timestamp: rt.string,
|
||||
message: rt.array(rt.string),
|
||||
|
|
|
@ -179,8 +179,6 @@ export const configDeprecations: ConfigDeprecationProvider = ({ deprecate }) =>
|
|||
return completeConfig;
|
||||
}
|
||||
),
|
||||
deprecate('sources.default.logAlias', '8.0.0'),
|
||||
deprecate('sources.default.metricAlias', '8.0.0'),
|
||||
];
|
||||
|
||||
export const getInfraDeprecationsFactory =
|
||||
|
|
|
@ -212,26 +212,7 @@ export class InfraSources {
|
|||
fold(constant({}), identity)
|
||||
);
|
||||
|
||||
// NOTE: Legacy logAlias needs converting to a logIndices reference until we can remove
|
||||
// config file sources in 8.0.0.
|
||||
if (staticSourceConfiguration && staticSourceConfiguration.logAlias) {
|
||||
const convertedStaticSourceConfiguration: InfraStaticSourceConfiguration & {
|
||||
logAlias?: string;
|
||||
} = {
|
||||
...staticSourceConfiguration,
|
||||
logIndices: {
|
||||
type: 'index_name',
|
||||
indexName: staticSourceConfiguration.logAlias,
|
||||
},
|
||||
};
|
||||
delete convertedStaticSourceConfiguration.logAlias;
|
||||
return mergeSourceConfiguration(
|
||||
defaultSourceConfiguration,
|
||||
convertedStaticSourceConfiguration
|
||||
);
|
||||
} else {
|
||||
return mergeSourceConfiguration(defaultSourceConfiguration, staticSourceConfiguration);
|
||||
}
|
||||
return mergeSourceConfiguration(defaultSourceConfiguration, staticSourceConfiguration);
|
||||
}
|
||||
|
||||
private async getSavedSourceConfiguration(
|
||||
|
|
|
@ -51,8 +51,6 @@ export const config: PluginConfigDescriptor = {
|
|||
schema.object({
|
||||
default: schema.maybe(
|
||||
schema.object({
|
||||
logAlias: schema.maybe(schema.string()), // NOTE / TODO: Should be deprecated in 8.0.0
|
||||
metricAlias: schema.maybe(schema.string()),
|
||||
fields: schema.maybe(
|
||||
schema.object({
|
||||
timestamp: schema.maybe(schema.string()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue