oncall-engine/engine/apps
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
..
alerts Fix the cause of retry of notify_all and notify_group tasks (#1376) 2023-02-23 09:28:13 +00:00
api Refactor maintenance (#1340) 2023-02-23 07:13:03 +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 Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
base Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
email Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
grafana_plugin patch minor sync issue when HTTP 302 is received from Grafana API instance (#1393) 2023-02-23 13:23:57 +00:00
heartbeat Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
integrations Cleanup ScenarioStep (#1213) 2023-02-21 20:22:11 +01:00
mobile_app Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
oss_installation Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
public_api PD migrator: migrate on-call shifts using public API (#1317) 2023-02-23 11:34:03 +00:00
schedules Revert "Revert "Rework schedules cached ical file values"" (#1382) 2023-02-22 07:30:19 +01:00
slack Refactor maintenance (#1340) 2023-02-23 07:13:03 +00:00
social_auth Rework slack login to check backend before redirecting (#1306) 2023-02-08 09:08:18 -03:00
telegram Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
twilioapp Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
user_management 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