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

[API] Oncall daily shifts on timezones != UTC don't work #4197

Open
afreyermuth98 opened this issue Apr 10, 2024 · 0 comments
Open

[API] Oncall daily shifts on timezones != UTC don't work #4197

afreyermuth98 opened this issue Apr 10, 2024 · 0 comments
Labels

Comments

@afreyermuth98
Copy link
Contributor

What went wrong?

What happened:
I tried to configure oncall daily shifts using the API (terraform) on Europe timezone and the 2 users have a shift every day : USER1 & USER2 on monday, USER1 & USER2 on tuesday etc ...

What did you expect to happen:
Each of the user have a shift rotation, USER1 on monday, USER2 on tuesday, USER1 on wednesday etc ...

How do we reproduce it?

On my side I did it with Terraform :

resource "grafana_oncall_schedule" "schedule" {
  provider         = grafana.oncall
  name             = "my schedule"
  type             = "calendar"
  time_zone        = "Europe/Paris"
  team_id          = data.grafana_oncall_team.team.id # To refer
  shifts = [
    grafana_oncall_on_call_shift.shift.id
  ]
  slack {
    channel_id    = data.grafana_oncall_slack_channel.grafana_oncall_slack_channel.id
    user_group_id = data.grafana_oncall_user_group.slack_user_group.i
  }
}

resource "grafana_oncall_on_call_shift" "shift" {
  provider      = grafana.oncall
  name          = "test shift"
  type          = "rolling_users"
  start         = "2024-01-01T08:00:00"
  duration      = 60 * 60 * 10 # 10 hours
  frequency     = "daily"
  interval      = 1
  by_day        = ["MO", "TU", "WE", "TH", "FR"]
  week_start    = "MO"
  rolling_users = [
    [
      "USER_1"
    ],
    [
      "USER_2"
    ]
  ],
  time_zone     = "Europe/Paris"
}

You can reproduce the same with the API

Grafana OnCall Version

1.3.102

Product Area

Schedules

Grafana OnCall Platform?

Kubernetes

User's Browser?

No response

Anything else to add?

No response

@afreyermuth98 afreyermuth98 added the bug Something isn't working label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants