grafana / oncall

Developer-friendly incident response with brilliant Slack integration
GNU Affero General Public License v3.0
3.49k stars 288 forks source link

Schedules doesn't show entire user list #1734

Closed prajith-nair closed 1 year ago

prajith-nair commented 1 year ago

Hi Team,

In Schedules tab, newly signed up users are shown under GMT timezone while their local browser time is IST. While creating Rotation Layer, only users in +5.5 GMT timezone users are listed. Please let me know if there is any workaround this problem

Screenshot 2023-04-12 at 6 43 12 PM Screenshot 2023-04-12 at 6 43 53 PM Screenshot 2023-04-12 at 6 44 03 PM
prajith-nair commented 1 year ago

we have set default_timezone: browser and ensured even the system(grafana server) reflect local time.

prajith-nair commented 1 year ago

I have noticed a behaviour with "Scheduler" in Grafana On call plugin, if your default timezone is non-UTC timezone (example: IST timezone). The newly signed up users are created in UTC timezone (assuming grafana on call API creates it).

At Org Level, server admin has to change the users to "Editor" role to be able to see the list of users in "Rotations" (grafana oncall dashboard)

Screenshot 2023-04-17 at 4 10 22 PM

All this while when users were "Viewers" (Adding Rotation Layer) were not listed in dropdown, as soon as you change Viewer role to Editor role, you will see the list of users populated in Rotation.

Matvey-Kuk commented 1 year ago

Grafana does not allow viewers to see other users so Grafana OnCall can't show other users in a dropdown. It's an expected behavior