You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A team-mate opened a shift swap request which I accepted;
Turns out this swap was scheduled to end at the world's ending;
I tried to change the dates, but the UI greys them out;
It also greys out the «Delete» button;
Tried via API, got empty response when listing shift swaps, as well as a «Not Found» when trying to get the details for the particular shift swap;
Using the API used by the UI gets me {"detail":"You do not have permission to perform this action."} when I try to use DELETE on the shift swap ID.
What did you expect to happen:
As an admin, I expected to be able to change the swap or at least remove it.
How do we reproduce it?
Ask for a team mate to open a shift swap request;
Try to edit or delete it;
????
Realize you can't.
In fact, realize you can't even change the dates on your own shift swap requests, only delete them.
Grafana OnCall Version
1.17.1
Product Area
Schedules
Grafana OnCall Platform?
I use Grafana Cloud
User's Browser?
No response
Anything else to add?
My user comes from Okta, but has full administrative permissions over the entire deployment. I'm able to create and delete schedules and I can even change their on-call profiles. Shift swaps is literally the only thing I don't have permission to edit.
The text was updated successfully, but these errors were encountered:
For some unbeknownst reason, I had to include the starting_after parameter, otherwise I'd get the infamous Not Found from the API, of course. This token is the one generated at On Call settings, not a Grafana service account (love the fact that the OnCall API authenticates in a completely different way in relation to the Grafana API.)
I didn't want to delete it, initially, since I like to keep records on shift swaps, but I wasn't allowed to set and end_date that wasn't in the future. And even though I could've set it to end tomorrow, the API forced me — for, again, reasons — to set the start_date. Guess what? It also didn't accept dates in the future. Then I got fed up and deleted it.
It'd be very helpful we had a HTTP PATCH implementation to allow for partial updates, aiming to fix this kind of misshapen.
Also, what's with the UI? Why I can create an authorization token that allows me to delete a shift swap but can't use the bloody UI to do the same thing? This makes zero sense.
What went wrong?
What happened:
{"detail":"You do not have permission to perform this action."}
when I try to useDELETE
on the shift swap ID.What did you expect to happen:
How do we reproduce it?
Grafana OnCall Version
1.17.1
Product Area
Schedules
Grafana OnCall Platform?
I use Grafana Cloud
User's Browser?
No response
Anything else to add?
My user comes from Okta, but has full administrative permissions over the entire deployment. I'm able to create and delete schedules and I can even change their on-call profiles. Shift swaps is literally the only thing I don't have permission to edit.
The text was updated successfully, but these errors were encountered: