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

Selected timeframe resets on next data refresh #153

Closed
oleiade opened this issue Jan 22, 2024 · 2 comments · Fixed by #164
Closed

Selected timeframe resets on next data refresh #153

oleiade opened this issue Jan 22, 2024 · 2 comments · Fixed by #164
Assignees
Labels
bug Something isn't working

Comments

@oleiade
Copy link
Member

oleiade commented Jan 22, 2024

Brief summary

I have noticed that when I select a timeframe by selecting it from the panel's graph directly, my selection automatically resets on the following data refresh (currently every 10s).

Here's a gif illustrating what I mean:
CleanShot 2024-01-22 at 11 07 55

I select a 1-minute timeframe from the graph, it successfully updates the view to be bound in that duration, but as soon as the data displayed are refreshed, it's reset to the original timeframe (from the beginning of the test to now).

k6 version

v0.48.0

xk6-dashboard version

0.7.2

OS

MacOS

Docker version and image (if applicable)

No response

Steps to reproduce the problem

Select a timeframe from a panel, and wait at least 10 seconds.

Expected behaviour

The panels should keep displaying the selected timeframe?

Actual behaviour

It resets to the timeframe from the beginning of the test to now.

@oleiade oleiade added the bug Something isn't working label Jan 22, 2024
@2Steaks
Copy link
Collaborator

2Steaks commented Jan 30, 2024

Grafana has a whole ton of logic around controlling scales and other configs. This fix could take a while.

ref: https:/grafana/grafana/tree/main/packages/grafana-ui/src/components/uPlot/config

@szkiba
Copy link
Collaborator

szkiba commented Jan 30, 2024

As I see under the hoods Grafana uses same plotting library :) (uPlot)

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

Successfully merging a pull request may close this issue.

3 participants