-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Backport of types removal for Put/Get index templates #38022
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
Conversation
|
Pinging @elastic/es-search |
5508dcd to
e695d56
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple small comments. One thing to note is that I think we will need to update FullClusterRestartIT on master to account for the fact that that index template requests on 6.7 can now produce deprecation warnings. I didn't do this after merging the 'create index' PR into 6.x, and ended up causing some failures on master.
client/rest-high-level/src/main/java/org/elasticsearch/client/IndicesRequestConverters.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we'll need to add expectedParams.put(INCLUDE_TYPE_NAME_PARAMETER, "false") here.
qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java
Outdated
Show resolved
Hide resolved
...er/src/main/java/org/elasticsearch/rest/action/admin/indices/RestGetIndexTemplateAction.java
Outdated
Show resolved
Hide resolved
e695d56 to
ae13841
Compare
|
It looks like some HLRC tests might need adjusting. It would also be good to update to the new deprecation messages in #38052. Other than that, this looks ready to me! |
1ab74fb to
49556fe
Compare
|
@elasticmachine run elasticsearch-ci/1 |
0fbff41 to
6fe5ebb
Compare
jtibshirani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Just re-posting a note I put on a previous review, since it is easy to lose track of: after this merges I think we will need to update FullClusterRestartIT on master to account for the fact that that index template requests on 6.7 can now produce deprecation warnings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably not worth another full build, but just in case you need to rebuild for another reason -- we decided not to use backticks in the messages.
94f3e73 to
6a17e55
Compare
6a17e55 to
4de6429
Compare
…stic#37484) Added deprecation warnings for use of include_type_name in put/get index templates. HLRC changes: GetIndexTemplateRequest has a new client-side class which is a copy of server's GetIndexTemplateResponse but modified to be typeless. PutIndexTemplateRequest has a new client-side counterpart which doesn't use types in the mappings Relates to elastic#35190
…back ported 7.x changes with the 6.x-specific deprecation policies. Hopefully this makes review easier by not lumping in with all the 7.x code
…e). Felt a little trappy to have my =false setting ignored.
Other fixes for review comments
Updated 6.x test expectations
4de6429 to
3fa0f09
Compare
|
@elasticmachine run elasticsearch-ci/2 |
|
@markharwood mentioned it would be fine if I merged this when we got a green build. |
Backport of PR #37484
I'll keep this as 2 commits to simplify review: