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
53dbc6bd
Commit
53dbc6bd
authored
Nov 12, 2020
by
fjsanpedro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add type annotation for snippet resolvers
parent
c18146f4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
4 deletions
+9
-4
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-3
app/graphql/resolvers/concerns/resolves_snippets.rb
app/graphql/resolvers/concerns/resolves_snippets.rb
+1
-1
app/graphql/resolvers/projects/snippets_resolver.rb
app/graphql/resolvers/projects/snippets_resolver.rb
+1
-0
app/graphql/resolvers/snippets_resolver.rb
app/graphql/resolvers/snippets_resolver.rb
+1
-0
app/graphql/resolvers/users/snippets_resolver.rb
app/graphql/resolvers/users/snippets_resolver.rb
+1
-0
changelogs/unreleased/281697-fj-fix-snippet-resolvers.yml
changelogs/unreleased/281697-fj-fix-snippet-resolvers.yml
+5
-0
No files found.
.rubocop_manual_todo.yml
View file @
53dbc6bd
...
...
@@ -57,10 +57,7 @@ Graphql/ResolverType:
-
'
app/graphql/resolvers/project_merge_requests_resolver.rb'
-
'
app/graphql/resolvers/project_milestones_resolver.rb'
-
'
app/graphql/resolvers/project_pipelines_resolver.rb'
-
'
app/graphql/resolvers/projects/snippets_resolver.rb'
-
'
app/graphql/resolvers/snippets_resolver.rb'
-
'
app/graphql/resolvers/users/group_count_resolver.rb'
-
'
app/graphql/resolvers/users/snippets_resolver.rb'
-
'
ee/app/graphql/resolvers/ci/jobs_resolver.rb'
-
'
ee/app/graphql/resolvers/geo/merge_request_diff_registries_resolver.rb'
-
'
ee/app/graphql/resolvers/geo/package_file_registries_resolver.rb'
...
...
app/graphql/resolvers/concerns/resolves_snippets.rb
View file @
53dbc6bd
...
...
@@ -4,7 +4,7 @@ module ResolvesSnippets
extend
ActiveSupport
::
Concern
included
do
type
Types
::
SnippetType
,
null:
false
type
Types
::
SnippetType
.
connection_type
,
null:
false
argument
:ids
,
[
::
Types
::
GlobalIDType
[
::
Snippet
]],
required:
false
,
...
...
app/graphql/resolvers/projects/snippets_resolver.rb
View file @
53dbc6bd
# frozen_string_literal: true
# rubocop:disable Graphql/ResolverType
module
Resolvers
module
Projects
...
...
app/graphql/resolvers/snippets_resolver.rb
View file @
53dbc6bd
# frozen_string_literal: true
# rubocop:disable Graphql/ResolverType
module
Resolvers
class
SnippetsResolver
<
BaseResolver
...
...
app/graphql/resolvers/users/snippets_resolver.rb
View file @
53dbc6bd
# frozen_string_literal: true
# rubocop:disable Graphql/ResolverType
module
Resolvers
module
Users
...
...
changelogs/unreleased/281697-fj-fix-snippet-resolvers.yml
0 → 100644
View file @
53dbc6bd
---
title
:
Add type annotation for snippet resolvers
merge_request
:
47548
author
:
type
:
changed
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