OpenSearch-Dashboards
OpenSearch-Dashboards copied to clipboard
[BUG] TSVB auto-refresh is ignoring changes to filters
Describe the bug
When setting the refresh interval in TSVB to 5 seconds, and then when de-selecting the different count aggregations or data metrics that are shown on the graph, the refresh interval automatically re-selects them upon refresh. The refresher is wiping out changes to the selected metrics
To Reproduce Steps to reproduce the behavior: Create a TSVB visualization with multiple metrics. Activate 5-second refresh interval. Deselect a metric. When refresh happens, metric gets re-selected.
OpenSearch Version 2.5
Dashboards Version 2.5
Host/Environment (please complete the following information): Managed service
@wbeckler When you say deselect a metric, what specific user action are you referring to? Just trying to see if I can repro
https://github.com/opensearch-project/OpenSearch-Dashboards/assets/3864750/07c2ea22-8e97-49b2-9db7-e3744ef8f7e9
Go to Ecommerce dashboard, set refresh to a short interval (recording is 5 seconds), click on series names in the legend of the multiline chart to disable a series.
Was able to reproduce this issue.
The problem is when we select a field by clicking from the legend, the auto refresh request is supposed to send with param 'hidden:true' so the data field can be hidden, but it is still sent with 'hidden: false'. That's why those de-selected data fields will appear again.
A workaround: instead of clicking on the legend to select and hide the fields, cx can use the 'temporarily disabled button' to hide data fields. This still works with auto-refresh turned on and the requests are sending with the correct param 'hidden:true'.
The bug only persists in 2.x versions, it works fine in 1.x versions.
Hi, I'm a very active OpenSearch user and this problem has been a headache for my organization. @abbyhu2000 While you guys are working on the final solution, could you give me more details about the workaround? I don't quite understand the explanation you gave. Thank you very much.