-
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
CSV export doesn't export all fields #50648
Comments
Pinging @elastic/kibana-stack-services (Team:Stack Services) |
Hi, @ppisljar Reporting team needs to treat this as an integration issue of Discover app. There needs to be a common API for fetching and formatting the data which is owned by and used by Discover, and shared by Discover to create a maintainable Reporting solution. In the past, Reporting has been responsible for gathering and formatting the field data and getting it in parity with the Discover UI, but that arrangement is not maintainable for the future. The Reporting team is going ask that the App Arch team find a way to make Discover more interoperable and provide a function to abstract the querying, scripting, and formatting of the user's saved search. Reporting team will work with App Arch to integrate this logic into an API that can be called from automation. Is there someone in the App Arch team that can help here? |
Pinging @elastic/kibana-app-arch (Team:AppArch) |
i would love to help, but i will need some more background. |
Hi, my first thought is that there is a gap of functionality with Discover for querying/formatting, and the functionality that CSV Download has. The logic itself is different because CSV Download is trying to emulate logic that Discover has only on the browser side (hopefully will change). I took a look at what we are getting back from Going from there, it looks like this issue is a bug in Reporting's
The flatten hit code hasn't been touched in a long time, and there may be a bug where it's trying to put together the multi-value object. Specifically, here's a multi-value object getting lost, in an example of the source JSON:
AppArch team, sorry for the unnecessary ping. It looks like this is a bug definitely on the Reporting side. It would be great to consolidate the flatten hit / field mapping work that Reporting does for CSV export, but that's long term for sure. I was concerned the issue was stemming from how we use |
Kibana version:
tested from 7.4 to master
Describe the bug:
When exporting saved search as CSV some fields are empty (it seems non primary date fields)
Steps to reproduce:
order_date
andproducts.created_on
fields and save a searchproducts.created_on
field will be missing values.The text was updated successfully, but these errors were encountered: