OpenSearch-Dashboards icon indicating copy to clipboard operation
OpenSearch-Dashboards copied to clipboard

[BUG] Sorting is not working as expected in TSVB visualization

Open CCongWang opened this issue 3 years ago • 9 comments

Describe the bug

Sorting is not working correctly in TSVB visualization after changing global filter

To Reproduce Steps to reproduce the behavior:

  1. Add eCommerce sample data

  2. Create TSVB visualization with the following config, I need to choose ignore global filter as yes Screen Shot 2022-10-26 at 10 41 02 AM Screen Shot 2022-10-26 at 10 42 46 AM

  3. Add the TSVB visualization to eCommerce dashboards, change the sorting to sort by count ascendingly

Screen Shot 2022-10-26 at 10 51 51 AM 4. Use the [eCommerce] Controls to add a category as filter, now the sorting arrow goes to Category Type, but the table is still sorted by count Screen Shot 2022-10-26 at 4 15 37 PM

Expected behavior

The sorting in TSVB visualization should keep the same, and the sorting arrow should reflect the sorting

OpenSearch Version 1.3.2

Dashboards Version 1.3.2

Plugins

Query Workbench, Reporting, Alerting, Anomaly Detection, Observability, Index Management, Security

Screenshots

see reproducing steps

Host/Environment (please complete the following information):

  • OS: macos
  • Browser and version: firefox: 102.2.0esr (64-bit)

Additional context

Add any other context about the problem here.

CCongWang avatar Oct 26 '22 18:10 CCongWang

Hi team, any updates?

CCongWang avatar Oct 31 '22 16:10 CCongWang

Let me reproduce it. Thanks @CCongWang for opening this issue.

ananzh avatar Nov 01 '22 00:11 ananzh

I could not reproduce it. I used both 1.3.2 and current main. I could sort by category and count. Below images are from 1.3.2

Screen Shot 2022-11-01 at 10 24 03 Screen Shot 2022-11-01 at 10 25 07

ananzh avatar Nov 01 '22 17:11 ananzh

What i observed is that the sorting remains as it was chosen (which is good) but the arrow jumped over which is the problem.

AMoo-Miki avatar Nov 01 '22 21:11 AMoo-Miki

We reproduced the issue. Ideal fix should be to allow customer keep the sort state before refresh.

ananzh avatar Nov 01 '22 21:11 ananzh

Hi team, any updates?

CCongWang avatar Nov 08 '22 17:11 CCongWang

@AMoo-Miki @ananzh Can we check is this is still an issue in the current version? I've seeing the correct behavior in the playground but I might be missing something.

If it is still an issue, @dagneyb is this something we can prioritize?

ahopp avatar Mar 01 '23 18:03 ahopp

@ahopp @dagneyb Yes it is still an issue.

ananzh avatar Mar 02 '23 16:03 ananzh

hello, any update on this issue?

alan89202 avatar Jun 18 '24 18:06 alan89202