oncall-engine/engine/apps/user_management
Joey Orlando b61f2ce41f
patch minor sync issue when HTTP 302 is received from Grafana API instance (#1393)
# What this PR does

this PR refactors the `sync_organization` and
`GrafanaAPIClient.is_rbac_enabled_for_organization` methods to check the
connected response bool rather than explicit check on HTTP 200. This
handles the legitimate case where the Grafana instance may return an
HTTP 302 (redirect) rather than an HTTP 200.

## Which issue(s) this PR fixes

See
[this](https://grafana.slack.com/archives/C02LSUUSE2G/p1677136582890269)
Slack thread in the community channel for more context

## Checklist

- [x] Tests updated
- [ ] Documentation added (N/A)
- [x] `CHANGELOG.md` updated
2023-02-23 13:23:57 +00:00
..
migrations Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
models Refactor maintenance (#1340) 2023-02-23 07:13:03 +00:00
subscription_strategy Restore email notifications (#621) 2022-10-19 12:32:56 +01:00
tests patch minor sync issue when HTTP 302 is received from Grafana API instance (#1393) 2023-02-23 13:23:57 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
admin.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
apps.py Update ical event/user email matching to be case-insensitive 2022-10-20 16:12:41 -03:00
exceptions.py Org soft-delete (#1073) 2023-01-05 12:42:55 +08:00
middlewares.py Org soft-delete (#1073) 2023-01-05 12:42:55 +08:00
sync.py patch minor sync issue when HTTP 302 is received from Grafana API instance (#1393) 2023-02-23 13:23:57 +00:00
user_representative.py World, meet OnCall! 2022-06-03 08:09:47 -06:00