Skip to content

[7.x] Add ComponentTemplate to MetaData (#53290)#53489

Merged
dakrone merged 3 commits intoelastic:7.xfrom
dakrone:backport/7.x/pr-53290
Mar 12, 2020
Merged

[7.x] Add ComponentTemplate to MetaData (#53290)#53489
dakrone merged 3 commits intoelastic:7.xfrom
dakrone:backport/7.x/pr-53290

Conversation

@dakrone
Copy link
Copy Markdown
Member

@dakrone dakrone commented Mar 12, 2020

Backports the following commits to 7.x:

* Add ComponentTemplate to MetaData

This adds a `ComponentTemplate` datastructure that will be used as part of elastic#53101 (Index Templates
v2) to the `MetaData` class. Currently there are no APIs for interacting with this class, so it will
always be an empty map (other than in tests). This infrastructure will be built upon to add APIs in
a subsequent commit.

A `ComponentTemplate` is made up of a `Template`, a version, and a MetaData.Custom class. The
`Template` contains similar information to an `IndexTemplateMetaData` object— settings, mappings,
and alias configuration.
@dakrone dakrone added backport :Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. v7.7.0 labels Mar 12, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Indices APIs)

@dakrone
Copy link
Copy Markdown
Member Author

dakrone commented Mar 12, 2020

@elasticmachine update branch

dakrone added a commit to dakrone/elasticsearch that referenced this pull request Mar 12, 2020
dakrone added a commit to dakrone/elasticsearch that referenced this pull request Mar 12, 2020
This disables the BWC tests for the ComponentTemplateMetadata class added in elastic#53290 and elastic#53489
dakrone added a commit that referenced this pull request Mar 12, 2020
This disables the BWC tests for the ComponentTemplateMetadata class added in #53290 and #53489
@dakrone dakrone merged commit 2789fe4 into elastic:7.x Mar 12, 2020
@dakrone dakrone deleted the backport/7.x/pr-53290 branch March 12, 2020 21:33
dakrone added a commit that referenced this pull request Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. v7.7.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants