Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/graphql_shared/queries/get_alerts.query.graphql')
-rw-r--r--app/assets/javascripts/graphql_shared/queries/get_alerts.query.graphql36
1 files changed, 36 insertions, 0 deletions
diff --git a/app/assets/javascripts/graphql_shared/queries/get_alerts.query.graphql b/app/assets/javascripts/graphql_shared/queries/get_alerts.query.graphql
new file mode 100644
index 00000000000..e94758ef60e
--- /dev/null
+++ b/app/assets/javascripts/graphql_shared/queries/get_alerts.query.graphql
@@ -0,0 +1,36 @@
+#import "~/graphql_shared/fragments/alert.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
+ }
+ }
+ }
+}