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
002a104d
Commit
002a104d
authored
Nov 04, 2020
by
Laura Montemayor
Committed by
lauraMon
Nov 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactors to make rubocop happy
* Applies suggestion to documentation
parent
46bdb62b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lib/gitlab/graphql/docs/helper.rb
lib/gitlab/graphql/docs/helper.rb
+4
-2
No files found.
lib/gitlab/graphql/docs/helper.rb
View file @
002a104d
...
...
@@ -81,11 +81,13 @@ module Gitlab
# We are ignoring connections and built in types for now,
# they should be added when queries are generated.
def
objects
graphql_object_types
.
select
do
|
object_type
|
object_types
=
graphql_object_types
.
select
do
|
object_type
|
!
object_type
[
:name
][
"Connection"
]
&&
!
object_type
[
:name
][
"Edge"
]
&&
!
object_type
[
:name
][
"__"
]
end
.
each
do
|
type
|
end
object_types
.
each
do
|
type
|
type
[
:fields
]
+=
type
[
:connections
]
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