oncall-engine/engine/apps/telegram
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 database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
models Add missing notification log records (#3664) 2024-01-12 14:02:44 +00:00
renderers add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
tests Add missing notification log records (#3664) 2024-01-12 14:02:44 +00:00
updates Address Telegram HTTP 500s when receiving message from Telegram in discussion group (#3622) 2024-01-09 08:31:56 -05:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert_group_representative.py Add transaction on_commit before signals for alert group actions (#3731) 2024-01-31 15:54:50 -07:00
apps.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
client.py Slack and telegram routes to test chatops-proxy v3 (#3723) 2024-01-22 13:48:19 +08:00
decorators.py Validate Slack and Telegram host env variables (#307) 2022-08-02 12:57:12 +03:00
signals.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
tasks.py Add transaction on_commit before signals for alert group actions (#3731) 2024-01-31 15:54:50 -07:00
urls.py Slack and telegram routes to test chatops-proxy v3 (#3723) 2024-01-22 13:48:19 +08:00
utils.py Introduce org uuid (#947) 2022-12-06 22:42:58 +08:00
views.py Fix SQLite permission issue (#1984) 2023-05-22 19:16:31 +00:00