oncall-engine/engine/apps/alerts
Michael Derynck 2a466a0c4f
Add transaction on_commit before signals for alert group actions (#3731)
# What this PR does
Add transactions around log record creation and check transaction
on_commit before sending signals passing DB id of alert group log
records. In cases for delete we can then assume any missing IDs on tasks
are from intentionally deleted alert groups and we can stop tasks from
retrying endlessly.

## Which issue(s) this PR fixes

## 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] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2024-01-31 15:54:50 -07:00
..
escalation_snapshot Speed up escalation auditor (#3578) 2023-12-18 12:28:55 +00:00
grafana_alerting_sync_manager Revert "upgrade to Python 3.12 (#3456)" and "bump uwsgi version to latest #3466" (#3483) 2023-12-01 09:56:26 -05:00
incident_appearance remove manual alert group (/oncall) slack slash command + force_route_id (#3790) 2024-01-30 17:28:23 -05:00
incident_log_builder WIP: Direct paging improvements (#3064) 2023-09-28 03:57:49 +00:00
migrations Alertmanager V2 migration prep (#3722) 2024-01-23 10:36:58 +00:00
models Add transaction on_commit before signals for alert group actions (#3731) 2024-01-31 15:54:50 -07:00
tasks Add transaction on_commit before signals for alert group actions (#3731) 2024-01-31 15:54:50 -07:00
tests Add transaction on_commit before signals for alert group actions (#3731) 2024-01-31 15:54:50 -07:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
constants.py Public API: Acknowledge & Resolve actions (#3108) 2023-10-05 09:46:48 +01:00
integration_options_mixin.py AlertManager v2 (#2643) 2023-08-01 12:18:52 +08:00
paging.py Add transaction block and callbacks when triggering tasks (#3779) 2024-01-31 09:26:14 -05:00
representative.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
signals.py Fix warnings when running backend tests (#2079) 2023-06-06 18:38:00 +00:00
utils.py Enable flake8-bugbear, fix issues (#3454) 2023-11-29 15:04:48 +00:00