-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ML] New Platform server shim: update filters routes to use new platform router #57597
Conversation
Pinging @elastic/ml-ui (:ml) |
{ | ||
path: '/api/ml/filters', | ||
validate: { | ||
body: schema.object({ ...createFilterSchema }), |
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.
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.
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.
Done in 8cd2ec8
path: '/api/ml/filters/{filterId}', | ||
validate: { | ||
params: schema.object({ filterId: schema.string() }), | ||
body: schema.object({ ...updateFilterSchema }), |
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.
Same as above
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.
Done in 8cd2ec8
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 small comment but other than that LGTM ⚡️
23d344b
to
02dc48f
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.
LGTM, just a couple of minor issues 🙂
x-pack/legacy/plugins/ml/server/models/filter/filter_manager.ts
Outdated
Show resolved
Hide resolved
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…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]>
Summary
Updates all filters routes to use new platform router.
Related meta issue: #49743
Checklist