oncall-engine/engine/apps/grafana_plugin
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
..
helpers patch minor sync issue when HTTP 302 is received from Grafana API instance (#1393) 2023-02-23 13:23:57 +00:00
tasks Sync users and teams on tf requests (#1180) 2023-01-24 13:44:07 +08:00
tests patch minor sync issue when HTTP 302 is received from Grafana API instance (#1393) 2023-02-23 13:23:57 +00:00
views Refactor plugin sync (#1200) 2023-01-25 09:12:08 +08:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
apps.py Get rid of installation token + add a bunch of tests (#624) 2022-11-21 16:26:00 +01:00
permissions.py Get rid of installation token + add a bunch of tests (#624) 2022-11-21 16:26:00 +01:00
urls.py Get rid of installation token + add a bunch of tests (#624) 2022-11-21 16:26:00 +01:00