Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove prefer_v2_templates query string parameter #56546

Merged
merged 2 commits into from
May 11, 2020

Conversation

dakrone
Copy link
Member

@dakrone dakrone commented May 11, 2020

This commit removes the prefer_v2_templates flag and setting. This was a brief setting that
allowed specifying whether V1 or V2 template should be used when an index is created. It has been
removed in favor of V2 templates always having priority.

Relates to #53101
Resolves #56528

This is not a breaking change because this flag was never in a released version.

This commit removes the `prefer_v2_templates` flag and setting. This was a brief setting that
allowed specifying whether V1 or V2 template should be used when an index is created. It has been
removed in favor of V2 templates always having priority.

Relates to elastic#53101
Resolves elastic#56528

This is not a breaking change because this flag was never in a released version.
@dakrone dakrone added >non-issue :Data Management/Indices APIs APIs to create and manage indices and templates v8.0.0 labels May 11, 2020
@elasticmachine
Copy link
Collaborator

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

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label May 11, 2020
@dakrone
Copy link
Member Author

dakrone commented May 11, 2020

This needs #56543 and #56542 to be merged prior to being merged

@dakrone
Copy link
Member Author

dakrone commented May 11, 2020

7.x: #56545
7.8: #56541

Copy link
Contributor

@probakowski probakowski left a comment

Choose a reason for hiding this comment

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

LGTM, one small thing that can be skipped if you want

@@ -218,11 +217,6 @@ protected void finishHim(Exception failure, List<BulkItemResponse.Failure> index
return super.buildScriptApplier();
}

@Override
protected BulkRequest buildBulk(Iterable<? extends ScrollableHitSource.Hit> docs) {
Copy link
Contributor

Choose a reason for hiding this comment

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

As we removed only overriding method we can change it back to private in parent class

@dakrone
Copy link
Member Author

dakrone commented May 11, 2020

@elasticmachine update branch

dakrone added a commit to dakrone/elasticsearch that referenced this pull request May 11, 2020
This can only be merged once elastic#56541, elastic#56545 and elastic#56546 have been merged
dakrone added a commit that referenced this pull request May 11, 2020
This can only be merged once #56541, #56545 and #56546 have been merged
dakrone added a commit to dakrone/elasticsearch that referenced this pull request May 11, 2020
This can only be merged once elastic#56541, elastic#56545 and elastic#56546 have been merged
@dakrone dakrone merged commit fc708cc into elastic:master May 11, 2020
@dakrone dakrone deleted the itv2-remove-prefer-flag branch May 11, 2020 20:56
dakrone added a commit that referenced this pull request May 11, 2020
This can only be merged once #56541, #56545 and #56546 have been merged
dakrone added a commit that referenced this pull request May 11, 2020
This can only be merged once #56541, #56545 and #56546 have been merged
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 Team:Data Management Meta label for data/management team v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove prefer_v2_templates flag on indexing operations
4 participants