clickhouse-grafana icon indicating copy to clipboard operation
clickhouse-grafana copied to clipboard

Run query button or changing attention doesn't updates time ranges

Open antip00 opened this issue 1 year ago • 1 comments

I am clicking on run query button on video, and time range does not changes, but if I click refresh it changes.

https://github.com/user-attachments/assets/fdb5f0ef-310e-4547-9334-487fdf1a2791

Expected: time range in reformatted query changes on clicking run query button or changing atterntion.

antip00 avatar Apr 03 '25 14:04 antip00

@Slach @antip00 It's not a bug, it's normal Grafana behavior, even when we work with a relative time range it still doesn't trigger range change implicitly ( for example when we change anything in our editor or change ad-hoc variables ), I may wrong here but most likely it was implemented this way to make work with building dashboards simpler, otherwise with short interval we would constantly have changing data

And we just use time range timestamp values for from and to inside the plugin

lunaticusgreen avatar Apr 03 '25 23:04 lunaticusgreen