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

[ML] New Platform server shim: update filters routes to use new platform router #57597

Merged
merged 4 commits into from
Feb 14, 2020

Conversation

peteharverson
Copy link
Contributor

Summary

Updates all filters routes to use new platform router.

Related meta issue: #49743

Checklist

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

{
path: '/api/ml/filters',
validate: {
body: schema.object({ ...createFilterSchema }),
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't actually need to create the new object here with the spread operator - it can just be passed in plainly like schema.object(createFilterSchema).
I did it this way by mistake the first time and will clean those up. It still works but is just unnecessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 8cd2ec8

path: '/api/ml/filters/{filterId}',
validate: {
params: schema.object({ filterId: schema.string() }),
body: schema.object({ ...updateFilterSchema }),
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 8cd2ec8

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 left a comment

Choose a reason for hiding this comment

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

Left a small comment but other than that LGTM ⚡️

@peteharverson peteharverson self-assigned this Feb 14, 2020
Copy link
Contributor

@darnautov darnautov left a comment

Choose a reason for hiding this comment

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

LGTM, just a couple of minor issues 🙂

@peteharverson
Copy link
Contributor Author

@elasticmachine merge upstream

@peteharverson peteharverson mentioned this pull request Feb 14, 2020
78 tasks
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@peteharverson peteharverson merged commit 73cb0aa into elastic:master Feb 14, 2020
@peteharverson peteharverson deleted the ml-filters-np-routes branch February 14, 2020 19:08
alvarezmelissa87 pushed a commit that referenced this pull request Feb 14, 2020
…orm router (#57597) (#57717)

* [ML] Update filters routes to use new platform router

* [ML] Edits to filters route following review

* [ML] Edits following review and fix job service api docs

Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:NP Migration :ml release_note:skip Skip the PR/issue when compiling release notes v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants