Skip to content

Add prefer_v2_templates parameter to Reindex#56253

Merged
probakowski merged 6 commits intoelastic:masterfrom
probakowski:reindex-prefer-v2-templates
May 6, 2020
Merged

Add prefer_v2_templates parameter to Reindex#56253
probakowski merged 6 commits intoelastic:masterfrom
probakowski:reindex-prefer-v2-templates

Conversation

@probakowski
Copy link
Copy Markdown
Contributor

Relates to #53101

@probakowski probakowski added >enhancement :Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. v8.0.0 v7.8.0 labels May 5, 2020
@probakowski probakowski requested review from andreidan and dakrone May 5, 2020 22:12
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label May 5, 2020
@probakowski
Copy link
Copy Markdown
Contributor Author

@elasticmachine update branch

@elasticmachine
Copy link
Copy Markdown
Collaborator

user doesn't have permission to update head repository

@probakowski
Copy link
Copy Markdown
Contributor Author

@elasticmachine update branch

@elasticmachine
Copy link
Copy Markdown
Collaborator

user doesn't have permission to update head repository

@dakrone dakrone changed the title Add prefere_v2_templates parameter to Reindex Add prefer_v2_templates parameter to Reindex May 5, 2020
Copy link
Copy Markdown
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.

Thanks for doing this @probakowski! I left two really minor comments that are just related to BWC for the request, otherwise this looks good to me!

@pugnascotia pugnascotia added v7.8.1 and removed v7.8.0 labels May 6, 2020
Copy link
Copy Markdown
Contributor

@andreidan andreidan 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 Przemko

}

if (request.hasParam("prefer_v2_templates")) {
internal.preferV2Templates(Boolean.parseBoolean(request.param("prefer_v2_templates")));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

for 8.0 we want this to default to true if it's not specified by the user (this is just a reminder to change this after backport)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I wonder if we should change it here or simply pass null down the road and let create index request pick up correct default (for making it DRY and using only single place to set defaults)

@pugnascotia pugnascotia added v7.9.0 and removed v7.8.1 labels May 6, 2020
@martijnvg martijnvg mentioned this pull request May 6, 2020
39 tasks
@probakowski
Copy link
Copy Markdown
Contributor Author

@elasticmachine run elasticsearch-ci/2

@probakowski probakowski merged commit 7ca47f5 into elastic:master May 6, 2020
@probakowski probakowski deleted the reindex-prefer-v2-templates branch May 6, 2020 20:01
probakowski added a commit to probakowski/elasticsearch that referenced this pull request May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. >enhancement Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v7.9.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants