elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.75k stars 8.15k forks source link

[ML] Refactor client side use of `esSearch` into dedicated endpoints #153458

Open walterra opened 1 year ago

walterra commented 1 year ago

For some parts of the ML plugin's UI we construct ES queries on the client side and pass them to a generic esSearch endpoint. We should create dedicated API endpoints for these cases or migrate to use the data plugin. It will enable us to create API integration tests when fetching that data and should also reduce client side bundle size if we move the necessary logic to the server side.

plugins/ml

plugins/transform

https://github.com/elastic/kibana/pull/154898


After all code has been ported to dedicated API endpoint, remove the esSearch endpoint from these files:

elasticmachine commented 1 year ago

Pinging @elastic/ml-ui (:ml)