diff options
Diffstat (limited to 'app/graphql/types/alert_management/alert_type.rb')
-rw-r--r-- | app/graphql/types/alert_management/alert_type.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/graphql/types/alert_management/alert_type.rb b/app/graphql/types/alert_management/alert_type.rb index a766fb3236d..8215ccb152c 100644 --- a/app/graphql/types/alert_management/alert_type.rb +++ b/app/graphql/types/alert_management/alert_type.rb @@ -6,6 +6,8 @@ module Types graphql_name 'AlertManagementAlert' description "Describes an alert from the project's Alert Management" + implements(Types::Notes::NoteableType) + authorize :read_alert_management_alert field :iid, @@ -83,6 +85,15 @@ module Types Types::TimeType, null: true, description: 'Timestamp the alert was last updated' + + field :assignees, + Types::UserType.connection_type, + null: true, + description: 'Assignees of the alert' + + def notes + object.ordered_notes + end end end end |