Class: Mutations::AlertManagement::Alerts::SetAssignees

Inherits:
Base
  • Object
show all
Defined in:
app/graphql/mutations/alert_management/alerts/set_assignees.rb

Constant Summary

Constants included from Gitlab::Utils::UsageData

Gitlab::Utils::UsageData::FALLBACK

Constants inherited from BaseMutation

BaseMutation::ERROR_MESSAGE

Instance Method Summary collapse

Methods included from ResolvesProject

#resolve_project

Methods included from Gitlab::Utils::UsageData

#alt_usage_data, #count, #distinct_count, #measure_duration, #redis_usage_data, #track_usage_event, #with_finished_at, #with_prometheus_client

Methods inherited from BaseMutation

#api_user?, #current_user, #errors_on_object, #ready?

Instance Method Details

#resolve(args) ⇒ Object


19
20
21
22
23
24
25
26
# File 'app/graphql/mutations/alert_management/alerts/set_assignees.rb', line 19

def resolve(args)
  alert = authorized_find!(project_path: args[:project_path], iid: args[:iid])
  result = set_assignees(alert, args[:assignee_usernames], args[:operation_mode])

  track_usage_event(:incident_management_alert_assigned, current_user)

  prepare_response(result)
end