Merge pull request #4417 from grafana/dev

v1.5.3
This commit is contained in:
Matias Bordese 2024-05-28 16:50:31 -03:00 committed by GitHub
commit e4fd392322
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,9 @@ def clean_up_duplicated_teams(apps, schema_editor):
for team in duplicated_teams:
# if there is anything to migrate, do it here
team.escalation_chains.update(team=first_team)
team.alert_receive_channels.exclude(integration="direct_paging").update(team=first_team)
# remove direct paging integrations before removing teams
team.alert_receive_channels.filter(integration="direct_paging").delete()
team.alert_receive_channels.update(team=first_team)
team.custom_on_call_shifts.update(team=first_team)
team.oncall_schedules.update(team=first_team)
team.webhooks.update(team=first_team)