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

Resurrect _xpack/migration/deprecations routes #75947

Merged

Conversation

joegallo
Copy link
Contributor

@joegallo joegallo commented Aug 2, 2021

Related to #51816 / #68905.

Adds back the _xpack/migration routes when using rest compatibility for a request.

@joegallo joegallo force-pushed the resurrect-xpack-deprecation-routes branch from 463808b to 99bcaf9 Compare August 4, 2021 21:11
@joegallo joegallo added the Team:Clients Meta label for clients team label Aug 4, 2021
@joegallo
Copy link
Contributor Author

joegallo commented Aug 4, 2021

See #73930 (comment) re: Team:Clients -- I don't think there's anything the clients team needs to do here.

@joegallo joegallo marked this pull request as ready for review August 4, 2021 21:12
@elasticmachine
Copy link
Collaborator

Pinging @elastic/clients-team (Team:Clients)

Copy link
Contributor

@pgomulka pgomulka left a comment

Choose a reason for hiding this comment

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

LGTM,
left one question

@@ -99,6 +99,9 @@ tasks.named("transformV7RestTests").configure({ task ->
task.replaceKeyInDo("license.post_start_trial", "xpack-license.post_start_trial")
task.addAllowedWarningRegex(".*_xpack/license.* is deprecated.*")

task.replaceKeyInDo("migration.deprecations", "xpack-migration.deprecations")
task.addAllowedWarningRegex(".*_xpack/migration.* is deprecated.*")
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we could apply to the test that is using it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With #75950, there's only one test that's using the change ("Test get SSL certificates") so it's straightforward to limit ourselves to just the one test. Here, though, there's two ("Test Deprecations" and "Test ml") so I don't think it's worth the additional lines of code to limit ourselves.

I'm going to merge this as is, but if you disagree strongly we can always tweak change it as a new PR against master.

@joegallo joegallo merged commit b8e975e into elastic:master Aug 5, 2021
@joegallo joegallo deleted the resurrect-xpack-deprecation-routes branch August 5, 2021 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants