debian-mirror-gitlab/app/assets/javascripts/graphql_shared/queries/get_alerts.query.graphql

39 lines
875 B
GraphQL
Raw Normal View History

2021-03-08 18:12:59 +05:30
#import "~/graphql_shared/fragments/alert.fragment.graphql"
2020-06-23 00:09:42 +05:30
query getAlerts(
2020-07-28 23:09:34 +05:30
$projectPath: ID!
$statuses: [AlertManagementStatus!]
$sort: AlertManagementAlertSort
$firstPageSize: Int
$lastPageSize: Int
$prevPageCursor: String = ""
$nextPageCursor: String = ""
2021-01-03 14:25:43 +05:30
$searchTerm: String = ""
$assigneeUsername: String = ""
2021-03-11 19:13:27 +05:30
$domain: AlertManagementDomainFilter = operations
2020-06-23 00:09:42 +05:30
) {
2020-07-28 23:09:34 +05:30
project(fullPath: $projectPath) {
alertManagementAlerts(
search: $searchTerm
2021-01-03 14:25:43 +05:30
assigneeUsername: $assigneeUsername
2020-07-28 23:09:34 +05:30
statuses: $statuses
sort: $sort
first: $firstPageSize
last: $lastPageSize
after: $nextPageCursor
before: $prevPageCursor
2021-03-11 19:13:27 +05:30
domain: $domain
2020-07-28 23:09:34 +05:30
) {
nodes {
...AlertListItem
}
pageInfo {
hasNextPage
endCursor
hasPreviousPage
startCursor
}
2020-06-23 00:09:42 +05:30
}
2020-07-28 23:09:34 +05:30
}
2020-06-23 00:09:42 +05:30
}