-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Resurrect _xpack/license routes #73930
Resurrect _xpack/license routes #73930
Conversation
Pinging @elastic/clients-team (Team:Clients) |
I don't think this will impact the client's team. When the |
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 - 1 minor non blocking comment.
task.replaceKeyInDo("license.post_start_basic", "xpack-license.post_start_basic") | ||
task.replaceKeyInDo("license.post_start_trial", "xpack-license.post_start_trial") | ||
|
||
task.addAllowedWarningRegex(".*_xpack/license.* is deprecated.*") |
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.
should this be allowed or just warnings ? I think we can require it since the modified spec only has the deprecated variant.
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.
Ooh, good point. I'll check!
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.
Alright, I looked into this for a little while, and I don't think just warnings ends up working very well for this, at least as it's currently written.
It requires a test name (see the InjectWarnings
constructor), which works well enough on its own, but we also (sometimes) need to allow warnings on the do
sections within setup
or teardown
, and that happens to end up being the case here.
That's not to say that we couldn't rework the machinery a bit to make that possible, but it's more than just a tweak on this PR.
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
Related to #51816 / #68905.
Adds back the
_xpack/license
routes when using rest compatibility for a request.