oncall-engine/engine/apps/integrations
Vadim Stepanov 8b2212c7dc
Improve Slack error handling (#3000)
# What this PR does

- Rename `SlackClientWithErrorHandling` to just `SlackClient`
- Add more error classes + improve the way errors are raised based on
the Slack error code
- Add API call retries on Slack server errors (e.g. when Slack returns
`5xx` errors)
- Refactor some methods working with Slack API + add tests

## Which issue(s) this PR fixes

- https://github.com/grafana/oncall-private/issues/1837
- https://github.com/grafana/oncall-private/issues/1840
- https://github.com/grafana/oncall-private/issues/1842

## 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)
2023-09-12 09:49:16 +00:00
..
metadata Add alertmanager integration for heartbeat support (#2807) 2023-08-17 13:22:37 +00:00
mixins add more integration tests for integrations api (#2845) 2023-08-21 15:40:29 +02:00
templates Polish amv2 (#2701) 2023-08-01 13:13:58 +08:00
tests Reject file uploads when posting to an integration endpoint (#2958) 2023-09-05 10:01:50 +02:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
legacy_prefix.py AlertManager v2 (#2643) 2023-08-01 12:18:52 +08:00
middlewares.py Add middleware to catch exception for missing integration, reduce spamminess of logs 2022-10-13 17:18:22 -06:00
tasks.py Improve Slack error handling (#3000) 2023-09-12 09:49:16 +00:00
urls.py AlertManager v2 (#2643) 2023-08-01 12:18:52 +08:00
views.py Reject file uploads when posting to an integration endpoint (#2958) 2023-09-05 10:01:50 +02:00