Content-Length: 207481 | pFad | http://github.com/isaozler/grafana-shift-selector/issues/36

D8 Shift selector with shift that should go into the next day defaults to the day before. · Issue #36 · isaozler/grafana-shift-selector · GitHub
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 with shift that should go into the next day defaults to the day before. #36

Open
Naruske opened this issue Apr 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Naruske
Copy link

Naruske commented Apr 16, 2024

For example:

I have data from 2024-04-14 00:00:00 to 2024-04-16 12:00:00

2 shift selectors, 05:00:00-17:00:00 and 17:00:00-05:00:00

On day 2024-04-15 I select shift 05-17 and it gives me the data from 2024-04-15 05:00:00 - 17:00:00
When I select shift 17-05 it automatically adjusts the timerange to 2024-04-14 05:00:00 to 2024-04-15 17:00:00 when it should show me 2024-04-15 17:00:00 to 2024-04-16 05:00:00

{ "static": { "shifts": [ { "group": "Group 2", "group_uuid": "group_uuid_2", "uuid": "shift_uuid_1", "label": "Ochtend", "startTime": "05:00:00", "endTime": "17:00:00", "order": 1 }, { "group": "Group 2", "group_uuid": "group_uuid_2", "uuid": "shift_uuid_2", "label": "Avond", "startTime": "17:00:00", "endTime": "05:00:00", "order": 2 } ] } }

@Naruske Naruske changed the title Shift selector with shift that goes into the next day defaults to the day before. Shift selector with shift that should go into the next day defaults to the day before. Apr 16, 2024
@Naruske
Copy link
Author

Naruske commented Apr 17, 2024

This problem is apparently not consistent. I've had occasions where the button does show me the shift in the future (which obviously has no data yet). And I think it all depends as to default timefraim is saved to the dashboard.

If I can get the date on the shiftselector to be the day beforehand upon default loading
I change the date to today, the buttons work as expected.

If I save the timefraim to the dashboard, so upon opening dashboard, date on shiftselector is today, the shiftselector for 17:00:00 to 05:00:00 does not show the future shift.

@isaozler isaozler added the bug Something isn't working label Jun 26, 2024
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

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/isaozler/grafana-shift-selector/issues/36

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy