oncall-engine/engine/apps/oss_installation
Joey Orlando bfcc0b9f29
update URLs constructed by the backend to support IRM plugin (#5137)
# What this PR does

Introduces a new class,
`apps.grafana_plugin.ui_url_builder.UIURLBuilder`, which is responsible
for... building UI URLs (😄). The class mainly does two things:
- it will decide if the URL should point to `grafana-oncall-app` or
`grafana-irm-app` based on the value of
`organization.is_grafana_irm_enabled` (**NOTE**: this value isn't yet
being set + defaults to `False`; logic for setting this value will be
done in a subsequent PR)
- Adds `enum`s, `OnCallPage` and `IncidentPage` to DRYify hardcoded UI
URLs (in case we decide to change these slightly in the near future)

## 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] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-10-09 08:55:10 -04:00
..
migrations Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
models Minor formatting changes (#2641) 2023-07-26 14:45:44 +01:00
serializers update URLs constructed by the backend to support IRM plugin (#5137) 2024-10-09 08:55:10 -04:00
tests Allow viewers fetch cloud connection status (#1181) 2023-01-23 11:17:57 +00:00
views update URLs constructed by the backend to support IRM plugin (#5137) 2024-10-09 08:55:10 -04:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
cloud_heartbeat.py update URLs constructed by the backend to support IRM plugin (#5137) 2024-10-09 08:55:10 -04:00
constants.py Improve OpenAPI schema coverage (#3629) 2024-01-12 15:11:22 +00:00
tasks.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
urls.py Allow viewers fetch cloud connection status (#1181) 2023-01-23 11:17:57 +00:00
usage_stats.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
utils.py update URLs constructed by the backend to support IRM plugin (#5137) 2024-10-09 08:55:10 -04:00