Skip to content

[7.x] Add REST APIs for IndexTemplateV2Metadata CRUD (#54039)#54347

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

[7.x] Add REST APIs for IndexTemplateV2Metadata CRUD (#54039)#54347
dakrone merged 3 commits intoelastic:7.xfrom
dakrone:backport/7.x/pr-54039

Conversation

@dakrone
Copy link
Copy Markdown
Member

@dakrone dakrone commented Mar 27, 2020

Backports the following commits to 7.x:

* Add REST APIs for IndexTemplateV2Metadata CRUD

This commit adds the get/put/delete APIs for interacting with the now v2 versions of index
templates.

These APIs are behind the existing `es.itv2_feature_flag_registered` system property feature flag.

Relates to elastic#53101

* Add exceptions for HLRC tests

* Add skips for 7.x versions

* Use index_template instead of template_v2 in action names

* Add test for MetaDataIndexTemplateService.addIndexTemplateV2

* Move removal to static method and add test

* Add unit tests for request classes (implement hashCode & equals)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@dakrone dakrone added backport :Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. v7.8.0 labels Mar 27, 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 27, 2020

@elasticmachine update branch

@dakrone
Copy link
Copy Markdown
Member Author

dakrone commented Mar 27, 2020

@elasticmachine run elasticsearch-ci/packaging-sample-unix-docker

@dakrone dakrone merged commit f2cc2b1 into elastic:7.x Mar 27, 2020
@dakrone dakrone deleted the backport/7.x/pr-54039 branch March 27, 2020 16:47
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.8.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants