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

[Reporting] Inconsistent output between Export CSV from Discover, and Download CSV from Dashboard #68718

Closed
tsullivan opened this issue Jun 9, 2020 · 11 comments · Fixed by #88303
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Reporting:CSV Reporting issues pertaining to CSV file export impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. needs-team Issues missing a team label regression SharedUX/fix-it-week Bugs that have been groomed and queued up for the team's next fix it week

Comments

@tsullivan
Copy link
Member

tsullivan commented Jun 9, 2020

Kibana version: 7.x

Terms:

  • "Download CSV" - synchronous (keep the request open) way to download saved search data from a dashboard panel.
  • "Export CSV" - asynchronous (using the reporting framework) way to generate a CSV export and download it later from the Reporting API

Describe the bug:
Download CSV

Export CSV

Any additional context:

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-reporting-services (Team:Reporting Services)

@tsullivan
Copy link
Member Author

I plan to work on refactoring the CSV export types to resolve the inconsistent issues, and also prepare the code for removing "Download CSV" as an export type. The reason to do that is as we move to task manager, we don't want the complexity of sync and async exports, we just want them to all be async and use the reporting framework (create job / execute job)

@tsullivan
Copy link
Member Author

tsullivan commented Jun 9, 2020

Bug with showing/formatting the timefield column

Example: For Metricbeats data, Export CSV output looks like:

"@timestamp","event.dataset"
"June 9th 2020, 11:49:59 pm","DOCKER.DISKIO"
"June 9th 2020, 11:49:59 pm","DOCKER.DISKIO"
"June 9th 2020, 11:49:59 pm","DOCKER.DISKIO"
"June 9th 2020, 11:49:59 pm","DOCKER.DISKIO"
"June 9th 2020, 11:49:59 pm","DOCKER.DISKIO"

Download CSV output looks like this:

"@timestamp","event.dataset"
"[""2020-06-09T21:48:29.772Z"",""2020-06-09T21:48:29.772Z""]","docker.diskio"

@fbaligand
Copy link
Contributor

@tsullivan
I add that "Download CSV" generates "Raw data" export, and "Export CSV" generates "Formated Data".
That is particularly important for numbers, where a custom locale is chosen in advanced settings.

@tsullivan
Copy link
Member Author

Thank you @fbaligand we will work on consistency for the formatting so that both CSV methods show formatted data, and matches what is shown in the UI

@fbaligand
Copy link
Contributor

Great @tsullivan !

@fbaligand
Copy link
Contributor

fbaligand commented Jul 16, 2020

Hi @tsullivan
I found another difference between "Export CSV" and "Download CSV":
in "Download CSV", the advanced setting "doc_table:hideTimeColumn" is ignored, although it is processed in "Export CSV".

@tsullivan
Copy link
Member Author

Replaced this issue with: #34377

@tsullivan
Copy link
Member Author

Oops, meant to close this.

@maggieghamry
Copy link
Contributor

@tsullivan it appears this issue is still present in 7.9.2, and presumably other 7.9 issues as well. Setting the advanced Kibana settings to "Browser" does not appear to be respected by the CSV reports:

image

In this example, where the default time zone is EST:
image

The resulting report does not reflect the time stamp:
image

Setting the advanced time zone to EST and refreshing does appear to be a workaround for a forced timezone:
image
image

image

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@tsullivan tsullivan added the bug Fixes for quality problems that affect the customer experience label Feb 24, 2021
@tsullivan tsullivan added impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. regression triaged labels Feb 26, 2021
@Dosant Dosant added the SharedUX/fix-it-week Bugs that have been groomed and queued up for the team's next fix it week label Mar 1, 2021
@sophiec20 sophiec20 added Feature:Reporting:CSV Reporting issues pertaining to CSV file export and removed (Deprecated) Team:Reporting Services labels Aug 21, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Reporting:CSV Reporting issues pertaining to CSV file export impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. needs-team Issues missing a team label regression SharedUX/fix-it-week Bugs that have been groomed and queued up for the team's next fix it week
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants