Skip to content

Date field formatted via docvalue_fields; none else formatted#34584

Merged
tsullivan merged 9 commits intoelastic:feature/reporting/csv-export-panel-actionfrom
tsullivan:feature/reporting/csv-export-panel-action-nofmt
Apr 10, 2019
Merged

Date field formatted via docvalue_fields; none else formatted#34584
tsullivan merged 9 commits intoelastic:feature/reporting/csv-export-panel-actionfrom
tsullivan:feature/reporting/csv-export-panel-action-nofmt

Conversation

@tsullivan
Copy link
Member

Summary

A late change to the feature branch made the field values go through formatting, same as our current CSV export.

This revises the behavior to not format any values, and display as they are in the _source data. The exception is the index pattern's date field, which is the left most column in the export (but is also optional for index patterns). Formatting of the date field uses Elasticsearch doc_values and passes strict_date_time as the formatting parameter.

Screenshots:

Steps to make these:

  1. Export CSV from embedded saved search in a dashboard
  2. Open a new Google Sheet
  3. File > Open the saved CSV file

Before:
image

After:
Screen Shot 2019-04-04 at 2 20 01 PM

@tsullivan tsullivan added the zDeprecated Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead label Apr 4, 2019
@tsullivan tsullivan requested a review from joelgriffith April 4, 2019 21:29
@elasticmachine

This comment has been minimized.

@tsullivan tsullivan requested a review from a team April 5, 2019 21:36
@tsullivan tsullivan requested review from a team as code owners April 5, 2019 21:36
@tsullivan tsullivan force-pushed the feature/reporting/csv-export-panel-action-nofmt branch from 3d2a122 to 5355b70 Compare April 5, 2019 21:39
@tsullivan tsullivan removed request for a team April 5, 2019 21:39
@tsullivan
Copy link
Member Author

image

Please ignore ^^ I accidentally merged master into this. This is targeted to a feature branch

…anel-action' into feature/reporting/csv-export-panel-action-nofmt
callEndpoint: EndpointCaller;
fields: string[];
formatsMap: FormatsMap;
formatsMap: FormatsMap,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think we'll want a semicolon here (unless the new linter doesn't think so)

Copy link
Contributor

@joelgriffith joelgriffith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small fix on the GenerateCsvParams interface, otherwise looks good

@elasticmachine
Copy link
Contributor

💔 Build Failed

…anel-action' into feature/reporting/csv-export-panel-action-nofmt
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@tsullivan tsullivan merged commit 0c810c8 into elastic:feature/reporting/csv-export-panel-action Apr 10, 2019
@tsullivan tsullivan deleted the feature/reporting/csv-export-panel-action-nofmt branch April 10, 2019 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review zDeprecated Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants