oncall-engine/engine/apps/alerts/models
Joey Orlando 3977c6e9ef
chore: remove references to SlackMessage._channel_id (#5325)
# What this PR does

- As a follow-up to https://github.com/grafana/oncall/pull/5292, and now
that `SlackMessage.channel` has been migrated via
[`engine/apps/slack/migrations/0007_migrate_slackmessage_channel_id.py`](https://github.com/grafana/oncall/pull/5292/files#diff-8aebe133401715a4262baad9b2c5c9fc59367c18d6bd6ac2b3c462fcdabafd66),
this PR removes reads/writes from `SlackMessage._channel_id` to
`SlackMessage.channel`. In a separate PR I will focus on dropping that
column from the model/db.
- Drops `SlackMessage.active_update_task_id`. There're zero references
to this column in the codebase.
- Removes two Django `manage.py` commands that're no longer needed:
- `engine/engine/management/commands/alertmanager_v2_migrate.py` (and
it's associated tests)
-
`engine/engine/management/commands/batch_migrate_slack_message_channel.py`

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-12-06 09:28:26 -05:00
..
__init__.py Reworked declare incident escalation step (#5130) 2024-10-07 19:26:10 +00:00
alert.py remove deprecate_field usage (#5148) 2024-10-09 21:46:38 +00:00
alert_group.py chore: remove references to SlackMessage._channel_id (#5325) 2024-12-06 09:28:26 -05:00
alert_group_counter.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert_group_log_record.py Reworked declare incident escalation step (#5130) 2024-10-07 19:26:10 +00:00
alert_manager_models.py Enable flake8-bugbear, fix issues (#3454) 2023-11-29 15:04:48 +00:00
alert_receive_channel.py fix: improve Slack rate limiting logic when updating alert groups (#5287) 2024-12-02 14:40:30 -05:00
alert_receive_channel_connection.py SNOW external ID (#4076) 2024-03-20 10:54:27 +00:00
channel_filter.py fix: patch slack ID reference issue (#5314) 2024-12-02 10:51:13 -05:00
custom_button.py cleanup CustomButton backend code + add ngrok/express outgoing webhook e2e test (#2544) 2024-03-28 15:37:22 +00:00
escalation_chain.py re-enable mypy GitHub Actions CI job (#2390) 2023-06-29 14:01:52 +00:00
escalation_policy.py Add openAPI schema for some internal endpoints (#5037) 2024-10-24 09:24:36 +00:00
grafana_alerting_contact_point.py Improve getting/updating contact points for Grafana Alerting integration (#2742) 2023-08-18 12:12:29 +02:00
invitation.py chore: convert two slack channel ID char fields to foreign keys (#5224) 2024-11-04 13:34:06 -05:00
maintainable_object.py Improve OpenAPI schema coverage (#3629) 2024-01-12 15:11:22 +00:00
related_incident.py Reworked declare incident escalation step (#5130) 2024-10-07 19:26:10 +00:00
resolution_note.py chore: remove deprecated AlertGroupPostMortem model + recently refactored/deprecated slack channel related columns (#5240) 2024-11-19 19:23:48 +00:00
user_has_notification.py User notifications bundle (#4457) 2024-07-16 11:24:08 +00:00
user_notification_bundle.py Fix notification plan builder (#4726) 2024-07-24 15:49:03 +00:00