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
a8d91819
Commit
a8d91819
authored
Jul 02, 2019
by
Luke Duncalfe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose diff_refs and full_path for DesignType
https://gitlab.com/gitlab-org/gitlab-ee/issues/9489
parent
d8ef80d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
ee/app/graphql/types/design_management/design_type.rb
ee/app/graphql/types/design_management/design_type.rb
+2
-0
ee/spec/graphql/types/design_management/design_type_spec.rb
ee/spec/graphql/types/design_management/design_type_spec.rb
+1
-1
No files found.
ee/app/graphql/types/design_management/design_type.rb
View file @
a8d91819
...
@@ -15,7 +15,9 @@ module Types
...
@@ -15,7 +15,9 @@ module Types
field
:project
,
Types
::
ProjectType
,
null:
false
field
:project
,
Types
::
ProjectType
,
null:
false
field
:issue
,
Types
::
IssueType
,
null:
false
field
:issue
,
Types
::
IssueType
,
null:
false
field
:filename
,
GraphQL
::
STRING_TYPE
,
null:
false
field
:filename
,
GraphQL
::
STRING_TYPE
,
null:
false
field
:full_path
,
GraphQL
::
STRING_TYPE
,
null:
false
field
:image
,
GraphQL
::
STRING_TYPE
,
null:
false
,
extras:
[
:parent
]
field
:image
,
GraphQL
::
STRING_TYPE
,
null:
false
,
extras:
[
:parent
]
field
:diff_refs
,
Types
::
DiffRefsType
,
null:
false
,
calls_gitaly:
true
field
:versions
,
field
:versions
,
Types
::
DesignManagement
::
VersionType
.
connection_type
,
Types
::
DesignManagement
::
VersionType
.
connection_type
,
resolver:
Resolvers
::
DesignManagement
::
VersionResolver
,
resolver:
Resolvers
::
DesignManagement
::
VersionResolver
,
...
...
ee/spec/graphql/types/design_management/design_type_spec.rb
View file @
a8d91819
...
@@ -8,7 +8,7 @@ describe GitlabSchema.types['Design'] do
...
@@ -8,7 +8,7 @@ describe GitlabSchema.types['Design'] do
it
{
expect
(
described_class
.
interfaces
).
to
include
(
Types
::
Notes
::
NoteableType
.
to_graphql
)
}
it
{
expect
(
described_class
.
interfaces
).
to
include
(
Types
::
Notes
::
NoteableType
.
to_graphql
)
}
it
'exposes the expected fields'
do
it
'exposes the expected fields'
do
expected_fields
=
[
:id
,
:project
,
:issue
,
:filename
,
:image
,
:versions
,
:discussions
,
:notes
]
expected_fields
=
[
:id
,
:project
,
:issue
,
:filename
,
:image
,
:versions
,
:discussions
,
:notes
,
:diff_refs
,
:full_path
]
is_expected
.
to
have_graphql_fields
(
*
expected_fields
)
is_expected
.
to
have_graphql_fields
(
*
expected_fields
)
end
end
...
...
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