-
Notifications
You must be signed in to change notification settings - Fork 25.2k
HLRC: Get Deprecation Info API #36279
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
This commit adds the Get Deprecation Info API and associated documentation. Relates elastic#29827
Pinging @elastic/es-core-features |
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.
Left a few comments as I've been hip-deep in the server side of this code for the last few days.
static Request getDeprecationInfo(DeprecationInfoRequest deprecationInfoRequest) { | ||
String endpoint = new RequestConverters.EndpointBuilder() | ||
.addCommaSeparatedPathParts(deprecationInfoRequest.getIndices()) | ||
.addPathPartAsIs("_xpack", "migration", "deprecations") |
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.
In 7.0 this should use _migration/deprecations
as of #35976, although in 6.x it will have to use _xpack
.
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.
Do u think its worth me doing that in a new PR after this so i can backport it back, similar to the way we did the other PRs?
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.
lol i guess i dont have a choice!
> Warnings: [[GET /{index}/_xpack/migration/deprecations] is deprecated! Use [GET /{index}/_migration/deprecations] instead.]
|
||
public enum Level { | ||
NONE, | ||
INFO, |
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.
Soon (likely tomorrow) I'll have a PR removing NONE
and INFO
from this list server-side - whichever merges last will have to remove them from this list too.
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.
++ pls link the PR when u have it
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.
Aforementioned PR: #36326
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 like i won ;)
client/rest-high-level/src/test/java/org/elasticsearch/client/MigrationIT.java
Show resolved
Hide resolved
[id="{upid}-{api}-response"] | ||
==== Get Deprecation Info Response | ||
|
||
The returned +{response}+ contains the cluster, index and node level deprecations. |
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.
This is awkward and not very clear, do you think we could reword it to something like:
The returned +{response}+ contains the cluster, index and node level deprecations. | |
The returned +{response}+ contains information about deprecated features currently in use at the cluster, node, and index level. |
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.
woah what is this black magic commit suggestion thing? I kinda want to click it just to have played around with it!
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.
LGTM
This commit adds the Get Deprecation Info API and associated documentation. Note: This commit is different from master as it adds back the _xpack portion of the API. Relates #29827
This commit adds the Get Deprecation Info API and associated
documentation.
Relates #29827