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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1,021 B
GraphQL
Raw Normal View History

2021-03-08 18:12:59 +05:30
#import "~/graphql_shared/fragments/alert.fragment.graphql"
2021-09-04 01:27:46 +05:30
#import "~/graphql_shared/fragments/user.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) {
2022-01-26 12:08:38 +05:30
id
2020-07-28 23:09:34 +05:30
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
2021-09-04 01:27:46 +05:30
assignees {
nodes {
...User
}
}
2020-07-28 23:09:34 +05:30
}
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
}