oncall-engine/engine/apps/twilioapp
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
..
migrations TwilioPhoneProvider optimizations (#2034) 2023-06-08 05:13:54 +00:00
models TwilioPhoneProvider optimizations (#2034) 2023-06-08 05:13:54 +00:00
tests Add BaseFailed exceptions for phone_notificator (#2074) 2023-06-08 05:55:41 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
gather.py TwilioPhoneProvider optimizations (#2034) 2023-06-08 05:13:54 +00:00
phone_provider.py Add BaseFailed exceptions for phone_notificator (#2074) 2023-06-08 05:55:41 +00:00
status_callback.py TwilioPhoneProvider optimizations (#2034) 2023-06-08 05:13:54 +00:00
urls.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
views.py Use same account for status callback when using TwilioSender (#2083) 2023-06-02 17:19:36 +00:00