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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-11-03 18:09:05 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-11-03 18:09:05 +0300
commitff8eb438401fc82b883fc4ae69626f0035b69236 (patch)
tree044a7195c0338c2b31d55dd21a5638068a5722ea /app/graphql/queries
parent2ac811ce685f906d3e54e78b23f61495c19ad595 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/queries')
-rw-r--r--app/graphql/queries/design_management/design_permissions.query.graphql13
-rw-r--r--app/graphql/queries/design_management/get_design_list.query.graphql40
2 files changed, 53 insertions, 0 deletions
diff --git a/app/graphql/queries/design_management/design_permissions.query.graphql b/app/graphql/queries/design_management/design_permissions.query.graphql
new file mode 100644
index 00000000000..55dfa35129c
--- /dev/null
+++ b/app/graphql/queries/design_management/design_permissions.query.graphql
@@ -0,0 +1,13 @@
+query permissions($fullPath: ID!, $iid: String!) {
+ project(fullPath: $fullPath) {
+ __typename
+ id
+ issue(iid: $iid) {
+ __typename
+ userPermissions {
+ __typename
+ createDesign
+ }
+ }
+ }
+}
diff --git a/app/graphql/queries/design_management/get_design_list.query.graphql b/app/graphql/queries/design_management/get_design_list.query.graphql
new file mode 100644
index 00000000000..ade03d99797
--- /dev/null
+++ b/app/graphql/queries/design_management/get_design_list.query.graphql
@@ -0,0 +1,40 @@
+query getDesignList($fullPath: ID!, $iid: String!, $atVersion: ID) {
+ project(fullPath: $fullPath) {
+ __typename
+ id
+ issue(iid: $iid) {
+ __typename
+ designCollection {
+ __typename
+ copyState
+ designs(atVersion: $atVersion) {
+ __typename
+ nodes {
+ __typename
+ id
+ event
+ filename
+ notesCount
+ image
+ imageV432x230
+ currentUserTodos(state: pending) {
+ __typename
+ nodes {
+ __typename
+ id
+ }
+ }
+ }
+ }
+ versions {
+ __typename
+ nodes {
+ __typename
+ id
+ sha
+ }
+ }
+ }
+ }
+ }
+}