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

37 lines
791 B
GraphQL
Raw Normal View History

2020-06-23 00:09:42 +05:30
#import "../fragments/list_item.fragment.graphql"
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 = ""
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
) {
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
}