Commit 378b30e8 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch '223691-duplicated-graphql-fragment-basicepic-and-project' into 'master'

Resolve "Duplicated GraphQL fragment: BasicEpic and Project"

Closes #223691

See merge request gitlab-org/gitlab!35003
parents 7695867f 1d5b1df2
fragment Project on Snippet { fragment SnippetProject on Snippet {
project { project {
fullPath fullPath
webUrl webUrl
......
...@@ -7,7 +7,7 @@ query GetSnippetQuery($ids: [ID!]) { ...@@ -7,7 +7,7 @@ query GetSnippetQuery($ids: [ID!]) {
edges { edges {
node { node {
...SnippetBase ...SnippetBase
...Project ...SnippetProject
author { author {
...Author ...Author
} }
......
#import "ee_else_ce/boards/queries/board_list.fragment.graphql" #import "ee_else_ce/boards/queries/board_list.fragment.graphql"
query GroupBoard($fullPath: ID!, $boardId: ID!) { query GroupBoardEE($fullPath: ID!, $boardId: ID!) {
group(fullPath: $fullPath) { group(fullPath: $fullPath) {
board(id: $boardId) { board(id: $boardId) {
lists { lists {
......
query groupEpics($fullPath: ID!) { query groupEpicsEE($fullPath: ID!) {
group(fullPath: $fullPath) { group(fullPath: $fullPath) {
epics(first: 10) { epics(first: 10) {
nodes { nodes {
......
fragment BaseEpic on Epic { fragment RelatedTreeBaseEpic on Epic {
id id
iid iid
title title
...@@ -22,7 +22,7 @@ fragment BaseEpic on Epic { ...@@ -22,7 +22,7 @@ fragment BaseEpic on Epic {
} }
fragment EpicNode on Epic { fragment EpicNode on Epic {
...BaseEpic ...RelatedTreeBaseEpic
state state
reference(full: true) reference(full: true)
relationPath relationPath
......
...@@ -14,7 +14,7 @@ query childItems( ...@@ -14,7 +14,7 @@ query childItems(
path path
fullPath fullPath
epic(iid: $iid) { epic(iid: $iid) {
...BaseEpic ...RelatedTreeBaseEpic
children(first: $pageSize, after: $epicEndCursor) { children(first: $pageSize, after: $epicEndCursor) {
edges { edges {
node { node {
......
query projectRequirements( query projectRequirementsEE(
$projectPath: ID! $projectPath: ID!
$state: RequirementState $state: RequirementState
$firstPageSize: Int $firstPageSize: Int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment