Skip to content

Add has_many alerts association to issues

What does this MR do and why?

Contributes to #356057 (closed)

  • Adds one-to-many association between incidents (Issue with issue_type incident) and alerts.
  • Exposes alertManagementAlerts in the Issue's GraphQL query. (There is no way to assign more than one alert to an incident at the moment. So it's going to be a list of one)
  • Deprecates alertManagementAlert in favour of alertManagementAlerts in the Issue's GraphQL query

At the moment we have one-to-one relation between incidents and alerts. That we want to change is the ability to assign several alerts to an incident.

This MR is one of the first steps towards it.

Edited by Vitali Tatarintev

Merge request reports