grafana / oncall

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

When creating a new schedule rotation layer the default date should be today #2011

Closed joeyorlando closed 6 months ago

joeyorlando commented 1 year ago

When adding a new schedule rotation layer, it appears that the modal defaults to Monday of the current week. I tried adding a rotation on Wednesday May 24, and the default rotation start date was Monday May 22. imo it should default to the current datetime

Screenshot 2023-05-24 at 19 59 10
matiasb commented 1 year ago

I think this was decided on the fact that it is useful to get the rotation started on (first day of the week) because you usually define a weekly pattern you want to repeat, and then you get a quick preview for that. I would keep that default behavior when adding a rotation layer through buttons.

Note you could start a rotation on a specific day by clicking on the correspondent day, although this only works for the first layer. Maybe we could make it possible to click on the day header to start a new rotation from that date too?