diff options
Diffstat (limited to 'app/assets/javascripts/alert_management/graphql')
6 files changed, 3 insertions, 90 deletions
diff --git a/app/assets/javascripts/alert_management/graphql/fragments/alert_note.fragment.graphql b/app/assets/javascripts/alert_management/graphql/fragments/alert_note.fragment.graphql deleted file mode 100644 index 74b425717a0..00000000000 --- a/app/assets/javascripts/alert_management/graphql/fragments/alert_note.fragment.graphql +++ /dev/null @@ -1,17 +0,0 @@ -#import "~/graphql_shared/fragments/author.fragment.graphql" - -fragment AlertNote on Note { - id - author { - id - state - ...Author - } - body - bodyHtml - createdAt - discussion { - id - } - systemNoteIconName -} diff --git a/app/assets/javascripts/alert_management/graphql/fragments/detail_item.fragment.graphql b/app/assets/javascripts/alert_management/graphql/fragments/detail_item.fragment.graphql index 406dfe97ce0..9a9ae369519 100644 --- a/app/assets/javascripts/alert_management/graphql/fragments/detail_item.fragment.graphql +++ b/app/assets/javascripts/alert_management/graphql/fragments/detail_item.fragment.graphql @@ -1,5 +1,5 @@ -#import "./list_item.fragment.graphql" -#import "./alert_note.fragment.graphql" +#import "~/graphql_shared/fragments/alert.fragment.graphql" +#import "~/graphql_shared/fragments/alert_note.fragment.graphql" fragment AlertDetailItem on AlertManagementAlert { ...AlertListItem diff --git a/app/assets/javascripts/alert_management/graphql/fragments/list_item.fragment.graphql b/app/assets/javascripts/alert_management/graphql/fragments/list_item.fragment.graphql deleted file mode 100644 index 62119177887..00000000000 --- a/app/assets/javascripts/alert_management/graphql/fragments/list_item.fragment.graphql +++ /dev/null @@ -1,17 +0,0 @@ -fragment AlertListItem on AlertManagementAlert { - iid - title - severity - status - startedAt - eventCount - issueIid - assignees { - nodes { - name - username - avatarUrl - webUrl - } - } -} diff --git a/app/assets/javascripts/alert_management/graphql/mutations/alert_set_assignees.mutation.graphql b/app/assets/javascripts/alert_management/graphql/mutations/alert_set_assignees.mutation.graphql index 5008bfa5e1b..63d952a4857 100644 --- a/app/assets/javascripts/alert_management/graphql/mutations/alert_set_assignees.mutation.graphql +++ b/app/assets/javascripts/alert_management/graphql/mutations/alert_set_assignees.mutation.graphql @@ -1,4 +1,4 @@ -#import "../fragments/alert_note.fragment.graphql" +#import "~/graphql_shared/fragments/alert_note.fragment.graphql" mutation alertSetAssignees($projectPath: ID!, $assigneeUsernames: [String!]!, $iid: String!) { alertSetAssignees( diff --git a/app/assets/javascripts/alert_management/graphql/mutations/update_alert_status.mutation.graphql b/app/assets/javascripts/alert_management/graphql/mutations/update_alert_status.mutation.graphql deleted file mode 100644 index ba1e607bc10..00000000000 --- a/app/assets/javascripts/alert_management/graphql/mutations/update_alert_status.mutation.graphql +++ /dev/null @@ -1,17 +0,0 @@ -#import "../fragments/alert_note.fragment.graphql" - -mutation updateAlertStatus($projectPath: ID!, $status: AlertManagementStatus!, $iid: String!) { - updateAlertStatus(input: { iid: $iid, status: $status, projectPath: $projectPath }) { - errors - alert { - iid - status - endedAt - notes { - nodes { - ...AlertNote - } - } - } - } -} diff --git a/app/assets/javascripts/alert_management/graphql/queries/get_alerts.query.graphql b/app/assets/javascripts/alert_management/graphql/queries/get_alerts.query.graphql deleted file mode 100644 index bc7e51a2e90..00000000000 --- a/app/assets/javascripts/alert_management/graphql/queries/get_alerts.query.graphql +++ /dev/null @@ -1,36 +0,0 @@ -#import "../fragments/list_item.fragment.graphql" - -query getAlerts( - $projectPath: ID! - $statuses: [AlertManagementStatus!] - $sort: AlertManagementAlertSort - $firstPageSize: Int - $lastPageSize: Int - $prevPageCursor: String = "" - $nextPageCursor: String = "" - $searchTerm: String = "" - $assigneeUsername: String = "" -) { - project(fullPath: $projectPath) { - alertManagementAlerts( - search: $searchTerm - assigneeUsername: $assigneeUsername - statuses: $statuses - sort: $sort - first: $firstPageSize - last: $lastPageSize - after: $nextPageCursor - before: $prevPageCursor - ) { - nodes { - ...AlertListItem - } - pageInfo { - hasNextPage - endCursor - hasPreviousPage - startCursor - } - } - } -} |