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

[BUG] TSVB auto-refresh is ignoring changes to filters #4487

Open
wbeckler opened this issue Jul 3, 2023 · 4 comments
Open

[BUG] TSVB auto-refresh is ignoring changes to filters #4487

wbeckler opened this issue Jul 3, 2023 · 4 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@wbeckler
Copy link

wbeckler commented Jul 3, 2023

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 wbeckler added bug Something isn't working untriaged and removed untriaged labels Jul 3, 2023
@wbeckler wbeckler added good first issue Good for newcomers and removed untriaged labels Jul 7, 2023
@virajsanghvi
Copy link
Collaborator

@wbeckler When you say deselect a metric, what specific user action are you referring to? Just trying to see if I can repro

@wbeckler
Copy link
Author

wbeckler commented Apr 24, 2024

metrics.reappearing.mov

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.

@abbyhu2000
Copy link
Member

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.

@juliocabrerac
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants