summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/queries
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/boards/queries')
-rw-r--r--app/assets/javascripts/boards/queries/board.fragment.graphql4
-rw-r--r--app/assets/javascripts/boards/queries/board.mutation.graphql11
-rw-r--r--app/assets/javascripts/boards/queries/board_labels.query.graphql23
-rw-r--r--app/assets/javascripts/boards/queries/board_list.fragment.graphql5
-rw-r--r--app/assets/javascripts/boards/queries/board_list_create.mutation.graphql24
-rw-r--r--app/assets/javascripts/boards/queries/board_list_destroy.mutation.graphql5
-rw-r--r--app/assets/javascripts/boards/queries/board_list_shared.fragment.graphql16
-rw-r--r--app/assets/javascripts/boards/queries/board_list_update.mutation.graphql10
-rw-r--r--app/assets/javascripts/boards/queries/board_lists.query.graphql28
-rw-r--r--app/assets/javascripts/boards/queries/group_boards.query.graphql13
-rw-r--r--app/assets/javascripts/boards/queries/issue.fragment.graphql27
-rw-r--r--app/assets/javascripts/boards/queries/issue_create.mutation.graphql10
-rw-r--r--app/assets/javascripts/boards/queries/issue_move_list.mutation.graphql28
-rw-r--r--app/assets/javascripts/boards/queries/issue_set_due_date.mutation.graphql8
-rw-r--r--app/assets/javascripts/boards/queries/issue_set_labels.mutation.graphql15
-rw-r--r--app/assets/javascripts/boards/queries/lists_issues.query.graphql55
-rw-r--r--app/assets/javascripts/boards/queries/project_boards.query.graphql13
-rw-r--r--app/assets/javascripts/boards/queries/users_search.query.graphql11
18 files changed, 0 insertions, 306 deletions
diff --git a/app/assets/javascripts/boards/queries/board.fragment.graphql b/app/assets/javascripts/boards/queries/board.fragment.graphql
deleted file mode 100644
index 872a4c4afbc..00000000000
--- a/app/assets/javascripts/boards/queries/board.fragment.graphql
+++ /dev/null
@@ -1,4 +0,0 @@
-fragment BoardFragment on Board {
- id
- name
-}
diff --git a/app/assets/javascripts/boards/queries/board.mutation.graphql b/app/assets/javascripts/boards/queries/board.mutation.graphql
deleted file mode 100644
index ef2b81a7939..00000000000
--- a/app/assets/javascripts/boards/queries/board.mutation.graphql
+++ /dev/null
@@ -1,11 +0,0 @@
-mutation UpdateBoard($id: ID!, $hideClosedList: Boolean, $hideBacklogList: Boolean) {
- updateBoard(
- input: { id: $id, hideClosedList: $hideClosedList, hideBacklogList: $hideBacklogList }
- ) {
- board {
- id
- hideClosedList
- hideBacklogList
- }
- }
-}
diff --git a/app/assets/javascripts/boards/queries/board_labels.query.graphql b/app/assets/javascripts/boards/queries/board_labels.query.graphql
deleted file mode 100644
index 42a94419a97..00000000000
--- a/app/assets/javascripts/boards/queries/board_labels.query.graphql
+++ /dev/null
@@ -1,23 +0,0 @@
-#import "~/graphql_shared/fragments/label.fragment.graphql"
-
-query BoardLabels(
- $fullPath: ID!
- $searchTerm: String
- $isGroup: Boolean = false
- $isProject: Boolean = false
-) {
- group(fullPath: $fullPath) @include(if: $isGroup) {
- labels(searchTerm: $searchTerm) {
- nodes {
- ...Label
- }
- }
- }
- project(fullPath: $fullPath) @include(if: $isProject) {
- labels(searchTerm: $searchTerm) {
- nodes {
- ...Label
- }
- }
- }
-}
diff --git a/app/assets/javascripts/boards/queries/board_list.fragment.graphql b/app/assets/javascripts/boards/queries/board_list.fragment.graphql
deleted file mode 100644
index bbf3314377e..00000000000
--- a/app/assets/javascripts/boards/queries/board_list.fragment.graphql
+++ /dev/null
@@ -1,5 +0,0 @@
-#import "./board_list_shared.fragment.graphql"
-
-fragment BoardListFragment on BoardList {
- ...BoardListShared
-}
diff --git a/app/assets/javascripts/boards/queries/board_list_create.mutation.graphql b/app/assets/javascripts/boards/queries/board_list_create.mutation.graphql
deleted file mode 100644
index 48420b349ae..00000000000
--- a/app/assets/javascripts/boards/queries/board_list_create.mutation.graphql
+++ /dev/null
@@ -1,24 +0,0 @@
-#import "ee_else_ce/boards/queries/board_list.fragment.graphql"
-
-mutation CreateBoardList(
- $boardId: BoardID!
- $backlog: Boolean
- $labelId: LabelID
- $milestoneId: MilestoneID
- $assigneeId: UserID
-) {
- boardListCreate(
- input: {
- boardId: $boardId
- backlog: $backlog
- labelId: $labelId
- milestoneId: $milestoneId
- assigneeId: $assigneeId
- }
- ) {
- list {
- ...BoardListFragment
- }
- errors
- }
-}
diff --git a/app/assets/javascripts/boards/queries/board_list_destroy.mutation.graphql b/app/assets/javascripts/boards/queries/board_list_destroy.mutation.graphql
deleted file mode 100644
index ef3fd36e980..00000000000
--- a/app/assets/javascripts/boards/queries/board_list_destroy.mutation.graphql
+++ /dev/null
@@ -1,5 +0,0 @@
-mutation DestroyBoardList($listId: ID!) {
- destroyBoardList(input: { listId: $listId }) {
- errors
- }
-}
diff --git a/app/assets/javascripts/boards/queries/board_list_shared.fragment.graphql b/app/assets/javascripts/boards/queries/board_list_shared.fragment.graphql
deleted file mode 100644
index d85b736720b..00000000000
--- a/app/assets/javascripts/boards/queries/board_list_shared.fragment.graphql
+++ /dev/null
@@ -1,16 +0,0 @@
-fragment BoardListShared on BoardList {
- id
- title
- position
- listType
- collapsed
- issuesCount
- label {
- id
- title
- color
- textColor
- description
- descriptionHtml
- }
-}
diff --git a/app/assets/javascripts/boards/queries/board_list_update.mutation.graphql b/app/assets/javascripts/boards/queries/board_list_update.mutation.graphql
deleted file mode 100644
index b474c9acb93..00000000000
--- a/app/assets/javascripts/boards/queries/board_list_update.mutation.graphql
+++ /dev/null
@@ -1,10 +0,0 @@
-#import "./board_list.fragment.graphql"
-
-mutation UpdateBoardList($listId: ID!, $position: Int, $collapsed: Boolean) {
- updateBoardList(input: { listId: $listId, position: $position, collapsed: $collapsed }) {
- list {
- ...BoardListFragment
- }
- errors
- }
-}
diff --git a/app/assets/javascripts/boards/queries/board_lists.query.graphql b/app/assets/javascripts/boards/queries/board_lists.query.graphql
deleted file mode 100644
index 88425e9a9c1..00000000000
--- a/app/assets/javascripts/boards/queries/board_lists.query.graphql
+++ /dev/null
@@ -1,28 +0,0 @@
-#import "ee_else_ce/boards/queries/board_list.fragment.graphql"
-
-query ListIssues(
- $fullPath: ID!
- $boardId: ID!
- $filters: BoardIssueInput
- $isGroup: Boolean = false
- $isProject: Boolean = false
-) {
- group(fullPath: $fullPath) @include(if: $isGroup) {
- board(id: $boardId) {
- lists(issueFilters: $filters) {
- nodes {
- ...BoardListFragment
- }
- }
- }
- }
- project(fullPath: $fullPath) @include(if: $isProject) {
- board(id: $boardId) {
- lists(issueFilters: $filters) {
- nodes {
- ...BoardListFragment
- }
- }
- }
- }
-}
diff --git a/app/assets/javascripts/boards/queries/group_boards.query.graphql b/app/assets/javascripts/boards/queries/group_boards.query.graphql
deleted file mode 100644
index 74c224add7d..00000000000
--- a/app/assets/javascripts/boards/queries/group_boards.query.graphql
+++ /dev/null
@@ -1,13 +0,0 @@
-#import "ee_else_ce/boards/queries/board.fragment.graphql"
-
-query group_boards($fullPath: ID!) {
- group(fullPath: $fullPath) {
- boards {
- edges {
- node {
- ...BoardFragment
- }
- }
- }
- }
-}
diff --git a/app/assets/javascripts/boards/queries/issue.fragment.graphql b/app/assets/javascripts/boards/queries/issue.fragment.graphql
deleted file mode 100644
index 4b429f875a6..00000000000
--- a/app/assets/javascripts/boards/queries/issue.fragment.graphql
+++ /dev/null
@@ -1,27 +0,0 @@
-#import "~/graphql_shared/fragments/user.fragment.graphql"
-
-fragment IssueNode on Issue {
- id
- iid
- title
- referencePath: reference(full: true)
- dueDate
- timeEstimate
- confidential
- webUrl
- subscribed
- relativePosition
- assignees {
- nodes {
- ...User
- }
- }
- labels {
- nodes {
- id
- title
- color
- description
- }
- }
-}
diff --git a/app/assets/javascripts/boards/queries/issue_create.mutation.graphql b/app/assets/javascripts/boards/queries/issue_create.mutation.graphql
deleted file mode 100644
index 65be147be07..00000000000
--- a/app/assets/javascripts/boards/queries/issue_create.mutation.graphql
+++ /dev/null
@@ -1,10 +0,0 @@
-#import "ee_else_ce/boards/queries/issue.fragment.graphql"
-
-mutation CreateIssue($input: CreateIssueInput!) {
- createIssue(input: $input) {
- issue {
- ...IssueNode
- }
- errors
- }
-}
diff --git a/app/assets/javascripts/boards/queries/issue_move_list.mutation.graphql b/app/assets/javascripts/boards/queries/issue_move_list.mutation.graphql
deleted file mode 100644
index ff6aa597f48..00000000000
--- a/app/assets/javascripts/boards/queries/issue_move_list.mutation.graphql
+++ /dev/null
@@ -1,28 +0,0 @@
-#import "ee_else_ce/boards/queries/issue.fragment.graphql"
-
-mutation IssueMoveList(
- $projectPath: ID!
- $iid: String!
- $boardId: ID!
- $fromListId: ID
- $toListId: ID
- $moveBeforeId: ID
- $moveAfterId: ID
-) {
- issueMoveList(
- input: {
- projectPath: $projectPath
- iid: $iid
- boardId: $boardId
- fromListId: $fromListId
- toListId: $toListId
- moveBeforeId: $moveBeforeId
- moveAfterId: $moveAfterId
- }
- ) {
- issue {
- ...IssueNode
- }
- errors
- }
-}
diff --git a/app/assets/javascripts/boards/queries/issue_set_due_date.mutation.graphql b/app/assets/javascripts/boards/queries/issue_set_due_date.mutation.graphql
deleted file mode 100644
index bbea248cf85..00000000000
--- a/app/assets/javascripts/boards/queries/issue_set_due_date.mutation.graphql
+++ /dev/null
@@ -1,8 +0,0 @@
-mutation issueSetDueDate($input: UpdateIssueInput!) {
- updateIssue(input: $input) {
- issue {
- dueDate
- }
- errors
- }
-}
diff --git a/app/assets/javascripts/boards/queries/issue_set_labels.mutation.graphql b/app/assets/javascripts/boards/queries/issue_set_labels.mutation.graphql
deleted file mode 100644
index 3c5f4b3e3bd..00000000000
--- a/app/assets/javascripts/boards/queries/issue_set_labels.mutation.graphql
+++ /dev/null
@@ -1,15 +0,0 @@
-mutation issueSetLabels($input: UpdateIssueInput!) {
- updateIssue(input: $input) {
- issue {
- labels {
- nodes {
- id
- title
- color
- description
- }
- }
- }
- errors
- }
-}
diff --git a/app/assets/javascripts/boards/queries/lists_issues.query.graphql b/app/assets/javascripts/boards/queries/lists_issues.query.graphql
deleted file mode 100644
index 5dbfe4675c6..00000000000
--- a/app/assets/javascripts/boards/queries/lists_issues.query.graphql
+++ /dev/null
@@ -1,55 +0,0 @@
-#import "ee_else_ce/boards/queries/issue.fragment.graphql"
-
-query ListIssues(
- $fullPath: ID!
- $boardId: ID!
- $id: ID
- $filters: BoardIssueInput
- $isGroup: Boolean = false
- $isProject: Boolean = false
- $after: String
- $first: Int
-) {
- group(fullPath: $fullPath) @include(if: $isGroup) {
- board(id: $boardId) {
- lists(id: $id) {
- nodes {
- id
- issues(first: $first, filters: $filters, after: $after) {
- count
- edges {
- node {
- ...IssueNode
- }
- }
- pageInfo {
- endCursor
- hasNextPage
- }
- }
- }
- }
- }
- }
- project(fullPath: $fullPath) @include(if: $isProject) {
- board(id: $boardId) {
- lists(id: $id) {
- nodes {
- id
- issues(first: $first, filters: $filters, after: $after) {
- count
- edges {
- node {
- ...IssueNode
- }
- }
- pageInfo {
- endCursor
- hasNextPage
- }
- }
- }
- }
- }
- }
-}
diff --git a/app/assets/javascripts/boards/queries/project_boards.query.graphql b/app/assets/javascripts/boards/queries/project_boards.query.graphql
deleted file mode 100644
index a1326bd5eff..00000000000
--- a/app/assets/javascripts/boards/queries/project_boards.query.graphql
+++ /dev/null
@@ -1,13 +0,0 @@
-#import "ee_else_ce/boards/queries/board.fragment.graphql"
-
-query project_boards($fullPath: ID!) {
- project(fullPath: $fullPath) {
- boards {
- edges {
- node {
- ...BoardFragment
- }
- }
- }
- }
-}
diff --git a/app/assets/javascripts/boards/queries/users_search.query.graphql b/app/assets/javascripts/boards/queries/users_search.query.graphql
deleted file mode 100644
index ca016495d79..00000000000
--- a/app/assets/javascripts/boards/queries/users_search.query.graphql
+++ /dev/null
@@ -1,11 +0,0 @@
-query usersSearch($search: String!) {
- users(search: $search) {
- nodes {
- username
- name
- webUrl
- avatarUrl
- id
- }
- }
-}