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

Fix team uniqueness db migration #4416

Merged
merged 1 commit into from
May 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading