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

Shift selector constantly overrides the timerange of a dashboard #8

Closed
Sulomus opened this issue Jul 4, 2022 · 7 comments
Closed
Labels
bug Something isn't working

Comments

@Sulomus
Copy link

Sulomus commented Jul 4, 2022

Info:
Version of Grafana: v9.0.3
License: Grafana Cloud Pro
Version of Plugin: 0.0.3

Issue:
When I use the shiftselector inside a dashboard I am unable to change the timerange with any other means. I can't change it via time picker, via dragging the graph ... nothing.

This plugin is amazing and great job but unfortunately it is unusable if this issue will persist for me (and maybe some other users). I would be more then happy to help fix this unfortunately my skills in this topic are limited ... :c

Attaching a little video showcasing what I mean:

bandicam.2022-07-04.18-05-25-275.mp4

This is the plugin options:
image

This is the var_query_map value:
{ "static": { "shifts": [ { "group": "Směna", "group_uuid": "group_uuid_1", "uuid": "shift_uuid_1", "label": "Ranní směna", "startTime": "06:00:00", "endTime": "14:00:00", "order": 1 }, { "group": "Směna", "group_uuid": "group_uuid_1", "uuid": "shift_uuid_2", "label": "Odpolední směna", "startTime": "14:00:00", "endTime": "22:00:00", "order": 1 }, { "group": "Směna", "group_uuid": "group_uuid_1", "uuid": "shift_uuid_3", "label": "Večerní směna", "startTime": "22:00:00", "endTime": "06:00:00", "order": 2 } ] } }

Any help would be highly appreciated!

@isaozler
Copy link
Owner

Hi @Sulomus, thanks for your feedback 🙏 will check if I can create a fix on the short term

@isaozler isaozler added the bug Something isn't working label Jul 12, 2022
@Sulomus
Copy link
Author

Sulomus commented Jul 14, 2022

No problem!

This plugin is really awesome - it feels after so many years that Grafana should have implemented this themselves! :D

@vincent-gou
Copy link

Facing same issue and discovered that shift plugin won't update time range when not displayed on a dashbaord, manual time range update works.
For example if time shift selector is on top of dashboard, if you scroll down dashboard enough to make shift plugin disappear, you can manually select time range on a graph and it will keep that time range. Once you scroll up and time shift plugin reappears, time range is updated to time shift one.

@Ogoku
Copy link

Ogoku commented Jan 26, 2023

I tried to debug this issue.

All I have discovered is, that after you selected any of the shift buttons and you try to use some of the Time Picker stuff, an error is thrown:

image

Hope this helps you.

@isaozler
Copy link
Owner

With the new release v0.1.0 this should be fixed. The plugin is in review by at Grafana, but you can already try it out by downloading the latest release. Feel free to reopen this issue if it isn't fixed.

@Ogoku
Copy link

Ogoku commented Jun 7, 2023

@isaozler Updated the plugin today to V0.1.1 still have the problem. I'm currently using Grafana V9.2.2 do I have to update Grafana?

@KishoreKrishnasamy
Copy link

@isaozler Hi i have the updated version V0.1.5 and Grafana version v9.3.2. I still encounter the same problem, I define the shifts using static maping. could someone help me out here ?

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

No branches or pull requests

5 participants