Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
532181c1
Commit
532181c1
authored
Feb 10, 2020
by
Natalia Tepluhina
Committed by
Martin Wortschack
Feb 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "Abstract common fragments to GraphQL shared folder"
parent
898c5da4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
13 deletions
+7
-13
app/assets/javascripts/graphql_shared/fragments/author.fragment.graphql
...ascripts/graphql_shared/fragments/author.fragment.graphql
+1
-1
app/assets/javascripts/snippets/fragments/author.fragment.graphql
...ts/javascripts/snippets/fragments/author.fragment.graphql
+0
-8
app/assets/javascripts/snippets/queries/snippet.query.graphql
...assets/javascripts/snippets/queries/snippet.query.graphql
+4
-2
ee/app/assets/javascripts/design_management/graphql/fragments/designNote.fragment.graphql
..._management/graphql/fragments/designNote.fragment.graphql
+1
-1
ee/app/assets/javascripts/design_management/graphql/queries/getDesign.query.graphql
...design_management/graphql/queries/getDesign.query.graphql
+1
-1
No files found.
ee/app/assets/javascripts/design_management/graphql
/fragments/author.fragment.graphql
→
app/assets/javascripts/graphql_shared
/fragments/author.fragment.graphql
View file @
532181c1
...
@@ -3,4 +3,4 @@ fragment Author on User {
...
@@ -3,4 +3,4 @@ fragment Author on User {
name
name
username
username
webUrl
webUrl
}
}
\ No newline at end of file
app/assets/javascripts/snippets/fragments/author.fragment.graphql
deleted
100644 → 0
View file @
898c5da4
fragment
Author
on
Snippet
{
author
{
name
,
avatarUrl
,
username
,
webUrl
}
}
\ No newline at end of file
app/assets/javascripts/snippets/queries/snippet.query.graphql
View file @
532181c1
#import '../fragments/snippetBase.fragment.graphql'
#import '../fragments/snippetBase.fragment.graphql'
#import '../fragments/project.fragment.graphql'
#import '../fragments/project.fragment.graphql'
#import
'../fragments/author.fragment.graphql'
#import
"~/graphql_shared/fragments/author.fragment.graphql"
query
GetSnippetQuery
(
$ids
:
[
ID
!])
{
query
GetSnippetQuery
(
$ids
:
[
ID
!])
{
snippets
(
ids
:
$ids
)
{
snippets
(
ids
:
$ids
)
{
...
@@ -8,7 +8,9 @@ query GetSnippetQuery($ids: [ID!]) {
...
@@ -8,7 +8,9 @@ query GetSnippetQuery($ids: [ID!]) {
node
{
node
{
...
SnippetBase
...
SnippetBase
...
Project
...
Project
...
Author
author
{
...
Author
}
}
}
}
}
}
}
...
...
ee/app/assets/javascripts/design_management/graphql/fragments/designNote.fragment.graphql
View file @
532181c1
#import "./diffRefs.fragment.graphql"
#import "./diffRefs.fragment.graphql"
#import "
.
/author.fragment.graphql"
#import "
~/graphql_shared/fragments
/author.fragment.graphql"
fragment
DesignNote
on
Note
{
fragment
DesignNote
on
Note
{
id
id
...
...
ee/app/assets/javascripts/design_management/graphql/queries/getDesign.query.graphql
View file @
532181c1
#import "../fragments/design.fragment.graphql"
#import "../fragments/design.fragment.graphql"
#import "
..
/fragments/author.fragment.graphql"
#import "
~/graphql_shared
/fragments/author.fragment.graphql"
query
getDesign
(
$fullPath
:
ID
!,
$iid
:
String
!,
$atVersion
:
ID
,
$filenames
:
[
String
!])
{
query
getDesign
(
$fullPath
:
ID
!,
$iid
:
String
!,
$atVersion
:
ID
,
$filenames
:
[
String
!])
{
project
(
fullPath
:
$fullPath
)
{
project
(
fullPath
:
$fullPath
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment