oncall-engine/engine/apps/webhooks
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
..
migrations Add webhook presets (#2996) 2023-09-27 07:22:52 -06:00
models fix(3564) Support PATCH Method In Outgoing webhook (#3580) 2023-12-20 08:49:50 -05:00
presets Allow OnCall API to use Grafana Service Accounts (#3189) 2023-11-23 16:42:27 +00:00
tasks manually retry for requests.exceptions.Timeout exceptions when sending outgoing webhooks (#3632) 2024-01-08 19:13:15 -05:00
tests Fix unicode character encoding in JSON for webhooks (#3670) 2024-01-11 19:35:23 +00:00
__init__.py shift swap requests model + CRUD endpoints (#2597) 2023-07-21 19:35:19 +00:00
apps.py Webhooks trigger tasks on alert group events (#1533) 2023-03-13 21:19:22 +00:00
listeners.py Add transaction on_commit before signals for alert group actions (#3731) 2024-01-31 15:54:50 -07:00
signals.py Add users_to_be_notified to new webhooks payload (#1798) 2023-04-20 16:13:48 +00:00
utils.py Fix unicode character encoding in JSON for webhooks (#3670) 2024-01-11 19:35:23 +00:00