oncall-engine/engine/apps/alerts/tests
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
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
conftest.py modify check_escalation_finished_task task (#1266) 2023-03-17 10:14:08 +00:00
factories.py Pass all integration labels down to alert groups (#3302) 2023-11-08 14:04:58 +00:00
test_acknowledge_reminder.py Add transaction block and callbacks when triggering tasks (#3779) 2024-01-31 09:26:14 -05:00
test_alert.py remove manual alert group (/oncall) slack slash command + force_route_id (#3790) 2024-01-30 17:28:23 -05:00
test_alert_group.py Add transaction on_commit before signals for alert group actions (#3731) 2024-01-31 15:54:50 -07:00
test_alert_group_log_record.py Do not trigger alert group update log signal before setting alert (#3514) 2023-12-06 13:04:13 +00:00
test_alert_group_renderer.py remove references to AlertGroup.is_archived and AlertGroup.unarchived_objects (#2524) 2023-07-18 11:48:34 +00:00
test_alert_manager.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_alert_receiver_channel.py Alertmanager V2 migration prep (#3722) 2024-01-23 10:36:58 +00:00
test_channel_filter.py remove manual alert group (/oncall) slack slash command + force_route_id (#3790) 2024-01-30 17:28:23 -05:00
test_check_escalation_finished_task.py Update alert group personal notifications checker to check sent SMS (#3698) 2024-01-17 17:46:18 +00:00
test_custom_button.py add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
test_custom_webhook_result.py Add escalation chain support for new webhooks (#1654) 2023-04-05 12:03:55 +00:00
test_default_templates.py Support alert routing based on labels (#3778) 2024-01-30 13:07:19 -05:00
test_escalation_chain.py Allow changing team for escalation chains (#1658) 2023-03-30 10:43:00 +01:00
test_escalation_policy_snapshot.py Fix escalation step "Notify if num alerts in time window" (#2965) 2023-09-05 10:32:59 +00:00
test_escalation_snapshot.py Speed up escalation auditor (#3578) 2023-12-18 12:28:55 +00:00
test_escalation_snapshot_mixin.py Fix silence for paused escalations or alert groups with empty escalation chain (#2929) 2023-08-31 11:47:13 +00:00
test_grafana_alerting_sync.py Improve getting/updating contact points for Grafana Alerting integration (#2742) 2023-08-18 12:12:29 +02:00
test_incident_log_builder.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_maintenance.py Enable flake8-bugbear, fix issues (#3454) 2023-11-29 15:04:48 +00:00
test_notify_ical_schedule_shift.py Move cache clear to fixtures, fix some deprecation notices (#3269) 2023-11-06 16:52:50 +00:00
test_notify_user.py Retry perform_notification with Telegram ratelimit countdown on RetryAfter error (#3744) 2024-01-24 15:31:56 +00:00
test_paging.py Add transaction block and callbacks when triggering tasks (#3779) 2024-01-31 09:26:14 -05:00
test_representative.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_silence.py OnCall prometheus metrics exporter (#1605) 2023-05-25 18:26:13 +00:00
test_utils.py Fix outgoing webhook to resolve IP from parsed hostname 2022-09-22 14:35:37 -03:00