oncall-engine/engine/apps/grafana_plugin
Joey Orlando 182f18de2c
fix parsing of grafana feature flags that're enabled via the feature_toggles.enabled syntax (#2477)
# What this PR does

Grafana provides two methods for enabling feature flags:
- `feature_toggles.enabled`
- `feature_toggles.<name_of_feature_flag>`

For example, to enable `accessControlOnCall` you could either do:
```json
{
  "feature_toggles": {
    "enabled": "accessControlOnCall,someOtherCoolFeatureFlag"
  }
}
```

or:
```json
{
  "feature_toggles": {
    "accessControlOnCall": true,
    "someOtherCoolFeatureFlag": true
  }
}
```

In method 1, if they're multiple feature flags present, they are _comma
separated, not space separated_. This PR fixes this parsing issue.

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required) (N/A)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2023-07-10 04:59:15 -04:00
..
helpers fix parsing of grafana feature flags that're enabled via the feature_toggles.enabled syntax (#2477) 2023-07-10 04:59:15 -04:00
tasks Do not retry start_sync_organization (#1856) 2023-05-02 02:33:26 +00:00
tests fix parsing of grafana feature flags that're enabled via the feature_toggles.enabled syntax (#2477) 2023-07-10 04:59:15 -04:00
views continue addressing mypy violations (#2170) 2023-06-27 10:23:08 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
apps.py allow the POST incoming alert endpoints to queue create_alert tasks independent of the database status (#1896) 2023-05-10 12:36:23 +00:00
permissions.py add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
urls.py Get rid of installation token + add a bunch of tests (#624) 2022-11-21 16:26:00 +01:00