Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add subobjects definition (at the data stream level) (#727)
## What does this PR do? <!-- Mandatory Explain here WHAT changes you made in the PR. --> Add support for `subobjects: false` at the data stream level. Here is an example: ```yaml # From /packages/good_v3/data_stream/subobjects/manifest.yml title: my-data-stream type: logs elasticsearch: index_template: mappings: subobjects: true ``` ## Why is it important? <!-- Mandatory Explain here the WHY, or the rationale/motivation for the changes. --> Give integration developers (per data stream) access to the [subobjects](https://www.elastic.co/guide/en/elasticsearch/reference/current/subobjects.html) option in the integration's index template mappings. Since we added the `subobjects` option in stack version 8.3, users could customize how Elasticsearch handles fields that contain dots in their names from `true` (expanded, current default) to `false` (not expanded). However, integration developers could not set this up in the integrations. Note on per filed option: the `subobjects` option [has been available](#573) at the field level since package-spec 3.1.0. However, to make this happen at the data stream level, we needed elastic/elasticsearch#99860 to land in Elasticsearch. ## Checklist <!-- Mandatory Add a checklist of things that are required to be reviewed in order to have the PR approved List here all the items you have verified BEFORE sending this PR. Please DO NOT remove any item, striking through those that do not apply. (Just in case, strikethrough uses two tildes. ~~Scratch this.~~) --> - [x] I have added test packages to [`test/packages`](https://github.com/elastic/package-spec/tree/main/test/packages) that prove my change is effective. - [x] I have added an entry in [`spec/changelog.yml`](https://github.com/elastic/package-spec/blob/main/spec/changelog.yml). ## Related issues <!-- Recommended Link related issues below. Insert the issue link or reference after the word "Closes" if merging this should automatically close it. - Closes #123 - Relates #123 - Requires #123 - Supersedes #123 --> - #349 - #573 - elastic/elasticsearch#99860 (requirement) --------- Co-authored-by: Mario Rodriguez Molins <mario.rodriguez@elastic.co>
- Loading branch information