oncall-engine/engine/apps/chatops_proxy
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
..
events Handle slack uninstall event from chatops-proxy (#4510) 2024-06-14 07:46:14 +00:00
tests Handle slack uninstall event from chatops-proxy (#4510) 2024-06-14 07:46:14 +00:00
__init__.py Prepare OnCall for Unified Slack App (#4232) 2024-06-03 09:07:10 +00:00
client.py Add stack_id to Tenant dataclass (#4864) 2024-08-20 11:24:53 +00:00
register_oncall_tenant.py update URLs constructed by the backend to support IRM plugin (#5137) 2024-10-09 08:55:10 -04:00
tasks.py Tweak chatops-proxy sync (#4627) 2024-07-08 15:33:58 +00:00
urls.py Prepare OnCall for Unified Slack App (#4232) 2024-06-03 09:07:10 +00:00
utils.py update URLs constructed by the backend to support IRM plugin (#5137) 2024-10-09 08:55:10 -04:00
views.py Prepare OnCall for Unified Slack App (#4232) 2024-06-03 09:07:10 +00:00