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
618510e2
Commit
618510e2
authored
Dec 04, 2021
by
Kev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GraphQL/OrderedArguments offense (Part 4/6)
Changelog: other
parent
26180cf7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
21 deletions
+18
-21
.rubocop_todo/graphql/ordered_arguments.yml
.rubocop_todo/graphql/ordered_arguments.yml
+0
-4
app/graphql/resolvers/merge_requests_resolver.rb
app/graphql/resolvers/merge_requests_resolver.rb
+7
-6
app/graphql/resolvers/paginated_tree_resolver.rb
app/graphql/resolvers/paginated_tree_resolver.rb
+4
-4
app/graphql/resolvers/tree_resolver.rb
app/graphql/resolvers/tree_resolver.rb
+4
-4
app/graphql/resolvers/users/groups_resolver.rb
app/graphql/resolvers/users/groups_resolver.rb
+3
-3
No files found.
.rubocop_todo/graphql/ordered_arguments.yml
View file @
618510e2
...
...
@@ -4,10 +4,6 @@ GraphQL/OrderedArguments:
-
app/graphql/resolvers/base_issues_resolver.rb
-
app/graphql/resolvers/design_management/designs_resolver.rb
-
app/graphql/resolvers/design_management/version/design_at_version_resolver.rb
-
app/graphql/resolvers/merge_requests_resolver.rb
-
app/graphql/resolvers/paginated_tree_resolver.rb
-
app/graphql/resolvers/tree_resolver.rb
-
app/graphql/resolvers/users/groups_resolver.rb
-
app/graphql/types/commit_action_type.rb
-
app/graphql/types/diff_paths_input_type.rb
-
app/graphql/types/issues/negated_issue_filter_input_type.rb
...
...
app/graphql/resolvers/merge_requests_resolver.rb
View file @
618510e2
...
...
@@ -55,6 +55,13 @@ module Resolvers
required:
false
,
description:
'Limit result to draft merge requests.'
argument
:created_after
,
Types
::
TimeType
,
required:
false
,
description:
'Merge requests created after this timestamp.'
argument
:created_before
,
Types
::
TimeType
,
required:
false
,
description:
'Merge requests created before this timestamp.'
argument
:labels
,
[
GraphQL
::
Types
::
String
],
required:
false
,
as: :label_name
,
...
...
@@ -72,12 +79,6 @@ module Resolvers
description:
'Sort merge requests by this criteria.'
,
required:
false
,
default_value: :created_desc
argument
:created_after
,
Types
::
TimeType
,
required:
false
,
description:
'Merge requests created after this timestamp.'
argument
:created_before
,
Types
::
TimeType
,
required:
false
,
description:
'Merge requests created before this timestamp.'
negated
do
argument
:labels
,
[
GraphQL
::
Types
::
String
],
...
...
app/graphql/resolvers/paginated_tree_resolver.rb
View file @
618510e2
...
...
@@ -11,14 +11,14 @@ module Resolvers
required:
false
,
default_value:
''
,
# root of the repository
description:
'Path to get the tree for. Default value is the root of the repository.'
argument
:ref
,
GraphQL
::
Types
::
String
,
required:
false
,
default_value: :head
,
description:
'Commit ref to get the tree for. Default value is HEAD.'
argument
:recursive
,
GraphQL
::
Types
::
Boolean
,
required:
false
,
default_value:
false
,
description:
'Used to get a recursive tree. Default is false.'
argument
:ref
,
GraphQL
::
Types
::
String
,
required:
false
,
default_value: :head
,
description:
'Commit ref to get the tree for. Default value is HEAD.'
alias_method
:repository
,
:object
...
...
app/graphql/resolvers/tree_resolver.rb
View file @
618510e2
...
...
@@ -10,14 +10,14 @@ module Resolvers
required:
false
,
default_value:
''
,
description:
'Path to get the tree for. Default value is the root of the repository.'
argument
:ref
,
GraphQL
::
Types
::
String
,
required:
false
,
default_value: :head
,
description:
'Commit ref to get the tree for. Default value is HEAD.'
argument
:recursive
,
GraphQL
::
Types
::
Boolean
,
required:
false
,
default_value:
false
,
description:
'Used to get a recursive tree. Default is false.'
argument
:ref
,
GraphQL
::
Types
::
String
,
required:
false
,
default_value: :head
,
description:
'Commit ref to get the tree for. Default value is HEAD.'
alias_method
:repository
,
:object
...
...
app/graphql/resolvers/users/groups_resolver.rb
View file @
618510e2
...
...
@@ -11,13 +11,13 @@ module Resolvers
authorize
:read_user_groups
authorizes_object!
argument
:search
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
'Search by group name or path.'
argument
:permission_scope
,
::
Types
::
PermissionTypes
::
GroupEnum
,
required:
false
,
description:
'Filter by permissions the user has on groups.'
argument
:search
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
'Search by group name or path.'
before_connection_authorization
do
|
nodes
,
current_user
|
Preloaders
::
GroupPolicyPreloader
.
new
(
nodes
,
current_user
).
execute
...
...
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