oncall-engine/engine/apps
Innokentii Konstantinov c7f8ac3559
Add BaseFailed exceptions for phone_notificator (#2074)
# What this PR does
Introduces BaseFailed exception for phone_notificator.

# Why
We need to somehow distinguish errors we want to be notified - like
network errors or invalid twilio credentials (I will call them "real"
errors) and errors we want to share with user, but don't want to be
paged ( I will call them "fake" errors).
To do that I added "graceful_msg" to all Failed... exceptions. If
details field is present - it mean we can return 400 code with the
message, if not - 500 code. So, "real" errors will raise Failed...
exception, while "fake" will add "graceful_msg".

# TODO
handle exceptions handled here
https://github.com/grafana/oncall/pull/2065
## Checklist

- [ ] 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)

---------

Co-authored-by: Michael Derynck <michael.derynck@grafana.com>
2023-06-08 05:55:41 +00:00
..
alerts Fix warnings when running backend tests (#2079) 2023-06-06 18:38:00 +00:00
api Add BaseFailed exceptions for phone_notificator (#2074) 2023-06-08 05:55:41 +00:00
api_for_grafana_incident Include alert details in Grafana Incident alert-group endpoint (#1280) 2023-02-03 13:43:21 +00:00
auth_token Improve plugin authentication (#1995) 2023-05-23 16:13:25 +00:00
base Fix warnings when running backend tests (#2079) 2023-06-06 18:38:00 +00:00
email Fix warnings when running backend tests (#2079) 2023-06-06 18:38:00 +00:00
grafana_plugin Improve plugin authentication (#1995) 2023-05-23 16:13:25 +00:00
heartbeat Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
integrations Add ratelimit for AmazonSNS (#2032) 2023-05-26 09:57:26 +00:00
metrics_exporter OnCall prometheus metrics exporter (#1605) 2023-05-25 18:26:13 +00:00
mobile_app Fix warnings when running backend tests (#2079) 2023-06-06 18:38:00 +00:00
oss_installation Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
phone_notifications Add BaseFailed exceptions for phone_notificator (#2074) 2023-06-08 05:55:41 +00:00
public_api Make viewset actions more consistent (#2120) 2023-06-07 12:10:53 +00:00
schedules Fix warnings when running backend tests (#2079) 2023-06-06 18:38:00 +00:00
slack Fix warnings when running backend tests (#2079) 2023-06-06 18:38:00 +00:00
social_auth Social auth exception logging (#2041) 2023-06-02 11:20:54 +00:00
telegram Fix Telegram ratelimit on live setting change (#2100) 2023-06-06 15:18:12 +00:00
twilioapp Add BaseFailed exceptions for phone_notificator (#2074) 2023-06-08 05:55:41 +00:00
user_management TwilioPhoneProvider optimizations (#2034) 2023-06-08 05:13:54 +00:00
webhooks Fix warnings when running backend tests (#2079) 2023-06-06 18:38:00 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00