oncall-engine/engine/apps/user_management
Innokentii Konstantinov 26a2bd9c91
Refactor maintenance (#1340)
# What this PR does
This PR simplifies code of maintenance mode.
1. Perform distribution/escalation maintenance checks in send_signal...
tasks.
2. Use usual alert distribution flow for the maintenance incident.
3. Decouple maintenance mode from slack (all, except
**notify_about_maintenance_action** methods, I don't want to make this
PR too big)

As a bonus from these changes, maintenance mode now mute alert group
delivery in all chatops integrations, not only in slack. (Before,
incidents happened while maintenance were posted to telegram and msteams
anyway)

## Checklist

- [ ] Tests updated
- [ ] Documentation added
- [ ] `CHANGELOG.md` updated
2023-02-23 07:13:03 +00:00
..
migrations Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
models Refactor maintenance (#1340) 2023-02-23 07:13:03 +00:00
subscription_strategy Restore email notifications (#621) 2022-10-19 12:32:56 +01:00
tests Sync users and teams on tf requests (#1180) 2023-01-24 13:44:07 +08:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
admin.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
apps.py Update ical event/user email matching to be case-insensitive 2022-10-20 16:12:41 -03:00
exceptions.py Org soft-delete (#1073) 2023-01-05 12:42:55 +08:00
middlewares.py Org soft-delete (#1073) 2023-01-05 12:42:55 +08:00
sync.py Sync users and teams on tf requests (#1180) 2023-01-24 13:44:07 +08:00
user_representative.py World, meet OnCall! 2022-06-03 08:09:47 -06:00