oncall-engine/engine/apps
Michael Derynck 4c1639c944
Fix retrying email notification task (#4772)
# What this PR does
Email tasks are failing and retrying when they use the fallback default
notification policy as it does not get saved in the DB. This PR uses the
same way as UserNotificationPolicyLogRecord to set that field to null to
avoid `ValueError("save() prohibited to prevent data loss due to unsaved
related object 'notification_policy'.").` when that is the case.

## Which issue(s) this PR closes

Related to [issue link here]

<!--
*Note*: If you want the issue to be auto-closed once the PR is merged,
change "Related to" to "Closes" in the line above.
If you have more than one GitHub issue that this PR closes, be sure to
preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## 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] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-08-01 14:48:39 +00:00
..
alerts Fix N+1 issue on alert group list page (#4738) 2024-07-25 17:26:05 +00:00
api Fix N+1 issue on alert group list page (#4738) 2024-07-25 17:26:05 +00:00
api_for_grafana_incident add labels in grafana-incident alertgroup endpoint (#4448) 2024-06-25 14:50:55 +00:00
auth_token Fix refactored permissions sync (#4771) 2024-07-31 20:27:42 +00:00
base patch default user notification policy changes + fix failing e2e test (#4635) 2024-07-09 11:23:53 -04:00
chatops_proxy Fix app redirect (#4725) 2024-07-24 09:59:56 +00:00
email Fix retrying email notification task (#4772) 2024-08-01 14:48:39 +00:00
exotel Add method to send notification bundle by SMS (#4624) 2024-07-16 14:20:16 +00:00
google Update out of office task to not retry on HttpError (#4328) 2024-05-09 16:16:46 +00:00
grafana_plugin Rework organization sync and grafana plugin engine backend (#4756) 2024-07-31 16:12:56 +00:00
heartbeat Improve OpenAPI schema coverage (#3629) 2024-01-12 15:11:22 +00:00
integrations Add tilt button to run pytest, fix local dev config for pytest, minor improvements to til (#3927) 2024-07-09 01:24:18 +00:00
labels Support prescribed labels (#3848) 2024-02-20 14:42:51 +08:00
metrics_exporter Drop stale metrics cache (#4695) 2024-07-17 17:01:04 +00:00
mobile_app rename settings/ci-test.py to settings/ci_test.py (#4391) 2024-05-24 13:55:08 +00:00
oss_installation bump uwsgi to 2.0.26 + Python to 3.12.3 (#4495) 2024-06-10 15:33:37 -04:00
phone_notifications Add method to send notification bundle by SMS (#4624) 2024-07-16 14:20:16 +00:00
public_api don't force create default user notification policies (#4608) 2024-07-05 15:08:17 -04:00
schedules Fix deleted schedule on getting on-call users from cache (#4763) 2024-07-31 15:17:08 +00:00
slack chore: grafana-irm command (#4762) 2024-07-31 11:50:07 +00:00
social_auth Prepare OnCall for Unified Slack App (#4232) 2024-06-03 09:07:10 +00:00
telegram Prepare OnCall for Unified Slack App (#4232) 2024-06-03 09:07:10 +00:00
twilioapp Add method to send notification bundle by SMS (#4624) 2024-07-16 14:20:16 +00:00
user_management Fix refactored permissions sync (#4771) 2024-07-31 20:27:42 +00:00
webhooks Add tilt button to run pytest, fix local dev config for pytest, minor improvements to til (#3927) 2024-07-09 01:24:18 +00:00
zvonok Add method to send notification bundle by SMS (#4624) 2024-07-16 14:20:16 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00