elastic / kibana

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

[Discover/CSV Reporting] Use the new CSV export endpoint in Discover UI #151190

Open tsullivan opened 1 year ago

tsullivan commented 1 year ago

In https://github.com/elastic/kibana/pull/149172, a new CSV export type was added, which is powered by DiscoverAppLocatorParams and offers a much friendlier interface for custom reporting automation. The ease-of-use comes from the fact that DiscoverAppLocatorParams can simply have a savedSearchId injected, which abstracts all of the details of the search configuration. That offers an advantage of powering CSV export using SearchSourceFields.

This issue is to promote the new export type in the Discover UI. When users export CSV in Discover, the request will go to the new Reporting endpoint (naming TBD). Requests to the current /api/reporting/generate/csv_searchsource will still work for BWC.

📄 Deprecation Plan

elasticmachine commented 1 year ago

Pinging @elastic/appex-sharedux (Team:SharedUX)

tsullivan commented 1 year ago

This requires enhancing the utilities in discover/server to handle "unsaved searches," or DiscoverAppLocatorParams that contain a dataViewId but not a savedSearchId. See

elasticmachine commented 1 month ago

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)