oncall-engine/engine/apps/alerts/migrations
Joey Orlando f905ac5246
Updates to POST /direct_paging internal API endpoint to support Grafana Incident use-cases (#3232)
# What this PR does

- Add a new column, `grafana_incident_id`, to the `AlertGroup` model.
For now this is really just needed to determine if the Alert Group was
created, via a Direct Page, that originated from Grafana Incident.
- I understand that these IDs may be cluster specific. For now we will
not need to make OnCall backend -> Incident API calls. Should we need to
start doing this we will likely need to start syncing the Incident
plugin's provisioned API url into the `organization` in OnCall, such
that we make the API call to the right Incident backend.
- Add two new optional request body parameters to `POST /direct_paging`,
`source_url` and `grafana_incident_id`
- `source_url` - will easily allow Grafana Incident to specify the URL
to the Incident and have this populate the "Source" button
- `grafana_incident_id` - Grafana Incident can specify this such that we
have a link back to Incident (+ we know that the Alert Group was
generated from Incident)
- Hide the "Declare Incident" button in the UI if the Alert Group was
generated from Grafana Incident

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2023-11-01 17:19:44 -04:00
..
0001_squashed_initial.py Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
0002_squashed_initial.py Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
0003_grafanaalertingcontactpoint_datasource_uid.py Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
0004_auto_20220711_1106.py Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
0005_alertgroup_cached_render_for_web.py Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
0006_alertgroup_alerts_aler_channel_ee84a7_idx.py Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
0007_populate_web_title_cache.py Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
0008_alter_alertgrouplogrecord_type.py Add database migrations linter (#1020) 2023-02-06 16:01:37 +08:00
0009_alertreceivechannel_web_templates_modified_at.py Cache render_for_web field for alertgroups list serializer (#1236) 2023-01-28 12:50:41 +08:00
0010_channelfilter_filtering_term_type.py Jinja2 based routes (#1319) 2023-03-08 16:42:18 +08:00
0011_auto_20230329_1617.py Add escalation chain support for new webhooks (#1654) 2023-04-05 12:03:55 +00:00
0012_alertreceivechannel_description_short.py Add new field description_short to private and public api (#1698) 2023-04-18 04:55:55 +00:00
0012_auto_20230406_1010.py move alert_group.is_restricted to alert_receive_channel.restricted_at (#1770) 2023-04-18 12:02:56 +02:00
0013_merge_20230418_0336.py Add new field description_short to private and public api (#1698) 2023-04-18 04:55:55 +00:00
0014_alertreceivechannel_restricted_at.py move alert_group.is_restricted to alert_receive_channel.restricted_at (#1770) 2023-04-18 12:02:56 +02:00
0015_auto_20230508_1641.py add missing alertgroup db migration (#1894) 2023-05-08 12:51:27 -04:00
0016_auto_20230523_1355.py OnCall prometheus metrics exporter (#1605) 2023-05-25 18:26:13 +00:00
0017_alertgroup_is_restricted.py add is_restricted column to alert_group table (#2289) 2023-06-20 06:20:32 -04:00
0018_remove_alertreceivechannel_integration_slack_channel_id.py Remove outdated Slack functionality to create alerts (#2383) 2023-06-29 10:09:02 +00:00
0019_auto_20230705_1619.py add missing database migrations 2023-07-05 18:27:56 +02:00
0020_auto_20230711_1532.py remove deprecated backend code (#2502) 2023-07-12 02:07:45 -04:00
0021_alter_alertgroup_started_at.py add index on started_at column in alert groups (#2516) 2023-07-13 05:22:59 -04:00
0022_alter_alertgroup_manual_severity.py fix migrations that were causing issues (#2581) 2023-07-19 06:20:39 -04:00
0023_auto_20230718_0952.py fix migrations that were causing issues (#2581) 2023-07-19 06:20:39 -04:00
0024_auto_20230718_0953.py Fix duplicate orders on routes and escalation policies (#2568) 2023-07-18 17:17:53 +00:00
0025_auto_20230718_1042.py Fix duplicate orders on routes and escalation policies (#2568) 2023-07-18 17:17:53 +00:00
0026_auto_20230719_1010.py fix migrations that were causing issues (#2581) 2023-07-19 06:20:39 -04:00
0027_remove_alertreceivechannel_restricted_at_from_state.py tweak restricted_at database migration 2023-07-25 14:35:47 +02:00
0028_drop_alertreceivechannel_restricted_at.py drop alert_receive_channel.restricted_at column (#2646) 2023-07-26 12:48:06 +00:00
0029_auto_20230728_0802.py Shift Swap Requests in Slack + improve typing for Slack django app (#2653) 2023-07-28 15:11:38 +00:00
0030_auto_20230731_0341.py AlertManager v2 (#2643) 2023-08-01 12:18:52 +08:00
0031_auto_20230831_1445.py fix IntegrityErrors occuring when creating ResolutionNoteSlackMessage objects (#2933) 2023-09-01 08:14:59 +00:00
0032_remove_alertgroup_slack_message_state.py Refactor AlertGroup.slack_message (#2957) 2023-09-04 18:03:18 +00:00
0033_alertgrouplogrecord_action_source.py Public API: Acknowledge & Resolve actions (#3108) 2023-10-05 09:46:48 +01:00
0034_alter_resolutionnote_source.py Resolution note source mobile app (#3174) 2023-10-20 15:22:45 +01:00
0035_alter_alertreceivechannel_maintenance_author.py add missing db migrations + add additional backend db migration check to CI (#3234) 2023-10-31 16:00:55 -04:00
0036_alertgroup_grafana_incident_id.py Updates to POST /direct_paging internal API endpoint to support Grafana Incident use-cases (#3232) 2023-11-01 17:19:44 -04:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00