Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ import { getInstallation } from '../../packages';
import { retryTransientEsErrors } from '../retry';
import { isUserSettingsTemplate } from '../template/utils';

import { MAX_CONCURRENT_TRANSFORMS_OPERATIONS } from '../../../../constants';
import {
MAX_CONCURRENT_TRANSFORMS_OPERATIONS,
STACK_COMPONENT_TEMPLATE_ECS_MAPPINGS,
} from '../../../../constants';

import { deleteTransforms } from './remove';
import { getDestinationIndexAliases } from './transform_utils';
Expand Down Expand Up @@ -579,7 +582,10 @@ const installTransformsAssets = async (
?.get('destinationIndex').index,
],
_meta: destinationIndexTemplate._meta,
composed_of: Object.keys(componentTemplates),
composed_of: [
...Object.keys(componentTemplates),
STACK_COMPONENT_TEMPLATE_ECS_MAPPINGS,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To confirm, is it expected that this change impacts all packages with transforms?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we had a few discussions in the related threads:

It's an option to make this change opt-in through the package-spec, but no blockers were raised to make it happen for every transform

],
ignore_missing_component_templates:
Object.keys(componentTemplates).filter(isUserSettingsTemplate),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ _meta:
'logs-endpoint.metadata_current-template@package',
'endpoint@custom',
'logs-endpoint.metadata_current-template@custom',
'ecs@mappings',
],
index_patterns: ['.metrics-endpoint.metadata_united_default'],
priority: 250,
Expand Down Expand Up @@ -676,6 +677,7 @@ _meta:
'logs-endpoint.metadata_current-template@package',
'endpoint@custom',
'logs-endpoint.metadata_current-template@custom',
'ecs@mappings',
],
index_patterns: ['.metrics-endpoint.metadata_united_default'],
priority: 250,
Expand Down Expand Up @@ -941,6 +943,7 @@ _meta:
'logs-endpoint.metadata_current-template@package',
'endpoint@custom',
'logs-endpoint.metadata_current-template@custom',
'ecs@mappings',
],
index_patterns: ['.metrics-endpoint.metadata_united_default'],
priority: 250,
Expand Down
Loading