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

37 lines
801 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 = ""
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
}