oncall-engine/engine/apps/alerts
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
..
escalation_snapshot Reworked declare incident escalation step (#5130) 2024-10-07 19:26:10 +00:00
grafana_alerting_sync_manager New OnCall plugin initialization process (#4657) 2024-08-16 16:43:52 +00:00
incident_appearance Revert "Fix <a> link escaping in web template" (#5024) 2024-09-13 20:27:15 +00:00
incident_log_builder Fix notification plan builder (#4726) 2024-07-24 15:49:03 +00:00
migrations Reworked declare incident escalation step (#5130) 2024-10-07 19:26:10 +00:00
models update URLs constructed by the backend to support IRM plugin (#5137) 2024-10-09 08:55:10 -04:00
tasks Reworked declare incident escalation step (#5130) 2024-10-07 19:26:10 +00:00
tests Reworked declare incident escalation step (#5130) 2024-10-07 19:26:10 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
constants.py User notifications bundle (#4457) 2024-07-16 11:24:08 +00:00
integration_options_mixin.py Add support for integration additional settings via custom serializer (#4027) 2024-03-07 18:35:11 +00:00
paging.py fix: sanitize email HTML templates (#5108) 2024-10-02 15:55:24 +00:00
representative.py apps.get_model -> import (#2619) 2023-07-25 09:43:23 +00:00
signals.py Move slack log report from message thread to button (#4686) 2024-08-19 20:17:06 +00:00
utils.py Reworked declare incident escalation step (#5130) 2024-10-07 19:26:10 +00:00