Skip to content

[Lens] CSV columns order is different from the one shown on the Datatable #236550

@dej611

Description

@dej611

Describe the bug:

When downloading a Lens datatable as CSV the order of the columns in the final file can differ from the original datatable, in particular when there's at least one formula column defined.

I've marked the issue as low priority as the data is correct and there's no formal contract that the columns in the CSV should match the one on the dashboard, but I see how that would be nice to have.

Steps to reproduce:

  1. Go the Sample data logs dashboard
  2. Download the CSV version from the Errors by host datatable

Expected behavior:

The order of the columns should be the same.

Any additional context:

A first attempt for this fix has bene introduce in 8.13 with #174994 , but then during the refactor in #193780 to support split by metric CSV download a regression was introduced.

Metadata

Metadata

Assignees

Labels

Feature:LensTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//bugFixes for quality problems that affect the customer experienceimpact:lowAddressing this issue will have a low level of impact on the quality/strength of our product.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions