Skip to content

Conversation

@probakowski
Copy link
Contributor

This change adds validation to make sure that settings and mappings are correct in
component template. It's done the same way as in index templates - code is reused.

Reletes to #53101

This change adds validation to make sure that settings and mappings are correct in
component template. It's done the same way as in index templates - code is reused.

Reletes to elastic#53101
@probakowski probakowski added :Data Management/Indices APIs APIs to create and manage indices and templates v8.0.0 v7.7.0 labels Mar 23, 2020
@elasticmachine
Copy link
Collaborator

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

@martijnvg martijnvg mentioned this pull request Mar 23, 2020
39 tasks
Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @probakowski! I left some comments but they're all super minor nits.

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

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

LGTM

Maybe also add the non-issue label?
This is usually done for changes that are not available by default yet,
because they are developed in a branch or behind a feature flag.

probakowski and others added 5 commits March 24, 2020 11:44
…taIndexTemplateService.java

Co-Authored-By: Lee Hinman <[email protected]>
…taIndexTemplateServiceTests.java

Co-Authored-By: Lee Hinman <[email protected]>
…taIndexTemplateServiceTests.java

Co-Authored-By: Lee Hinman <[email protected]>
…taIndexTemplateServiceTests.java

Co-Authored-By: Lee Hinman <[email protected]>
…taIndexTemplateService.java

Co-Authored-By: Lee Hinman <[email protected]>
@probakowski probakowski merged commit 36377d7 into elastic:master Mar 24, 2020
@probakowski probakowski deleted the component-templates-validation branch March 24, 2020 12:10
probakowski added a commit to probakowski/elasticsearch that referenced this pull request Mar 24, 2020
* Add validation for component templates

This change adds validation to make sure that settings and mappings are correct in
component template. It's done the same way as in index templates - code is reused.

Reletes to elastic#53101

* Fix checkstyle violation

* Update server/src/main/java/org/elasticsearch/cluster/metadata/MetaDataIndexTemplateService.java

Co-Authored-By: Lee Hinman <[email protected]>

* Update server/src/test/java/org/elasticsearch/cluster/metadata/MetaDataIndexTemplateServiceTests.java

Co-Authored-By: Lee Hinman <[email protected]>

* Update server/src/test/java/org/elasticsearch/cluster/metadata/MetaDataIndexTemplateServiceTests.java

Co-Authored-By: Lee Hinman <[email protected]>

* Update server/src/test/java/org/elasticsearch/cluster/metadata/MetaDataIndexTemplateServiceTests.java

Co-Authored-By: Lee Hinman <[email protected]>

* Update server/src/main/java/org/elasticsearch/cluster/metadata/MetaDataIndexTemplateService.java

Co-Authored-By: Lee Hinman <[email protected]>

Co-authored-by: Lee Hinman <[email protected]>
probakowski added a commit that referenced this pull request Mar 24, 2020
* Add validation for component templates (#54023)

* Add validation for component templates

This change adds validation to make sure that settings and mappings are correct in
component template. It's done the same way as in index templates - code is reused.

Reletes to #53101

* Fix checkstyle violation

* Update server/src/main/java/org/elasticsearch/cluster/metadata/MetaDataIndexTemplateService.java

Co-Authored-By: Lee Hinman <[email protected]>

* Update server/src/test/java/org/elasticsearch/cluster/metadata/MetaDataIndexTemplateServiceTests.java

Co-Authored-By: Lee Hinman <[email protected]>

* Update server/src/test/java/org/elasticsearch/cluster/metadata/MetaDataIndexTemplateServiceTests.java

Co-Authored-By: Lee Hinman <[email protected]>

* Update server/src/test/java/org/elasticsearch/cluster/metadata/MetaDataIndexTemplateServiceTests.java

Co-Authored-By: Lee Hinman <[email protected]>

* Update server/src/main/java/org/elasticsearch/cluster/metadata/MetaDataIndexTemplateService.java

Co-Authored-By: Lee Hinman <[email protected]>

Co-authored-by: Lee Hinman <[email protected]>

* Adjusted to 7.7

* unused import fixed

* npe fixeD

* change exception type

Co-authored-by: Lee Hinman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/Indices APIs APIs to create and manage indices and templates >non-issue v7.7.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants