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

[Datatable] When I enable the partial rows, the inspector shows metrics for each bucket #121947

Closed
stratoula opened this issue Dec 23, 2021 · 3 comments · Fixed by #124677
Closed
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Data Table Data table visualization feature impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@stratoula
Copy link
Contributor

Kibana version:
7.11 ++

Describe the bug:
I can reproduce this bug on 7.11, so this exists for some versions. The problem is not on the visualization itself but on the inspector.
When I click on the Show partial rows switch and open the inspector, I see extra columns that represent the metrics per bucket.

If I select to export the csv from the inspector, the extra columns are exported which creates some confusion to the users. The inspector should behave as the visualization.

Steps to reproduce:

  1. Create a datatable with multiple buckets
  2. Enable the partial rows setting
  3. Check the inspector

image

Inspector
image

This behaves exactly the same with enabling the Show metrics for every bucket/level, so I think the bug must be there.

Expected behavior:
No extra columns should be depicted on the inspector when only the partial rows switch is on.

Any additional context:
Although the inspector csv exporter also exports the additional columns, the visualization exporter works fine.

@stratoula stratoula added bug Fixes for quality problems that affect the customer experience Feature:Data Table Data table visualization feature Team:Visualizations Visualization editors, elastic-charts and infrastructure impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. labels Dec 23, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

@dej611
Copy link
Contributor

dej611 commented Dec 23, 2021

This looks very similar to the #121063 bug which I'm fixing on the Lens side.
I suspect the root problem is the same: when passing the datatable over to the download plugin the columns are not filtered based on the visibility.
I can look into this after getting #121802 merged

@stratoula
Copy link
Contributor Author

stratoula commented Dec 23, 2021

Got it. This is not the exact same case. The inspector works fine in all cases except from the one with the partial rows. For example for the Show metrics for each bucket it works fine. If it is off, doesn't show the columns, if it is on it shows them correctly.

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:Data Table Data table visualization feature impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
3 participants