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
faec75e9
Commit
faec75e9
authored
Oct 06, 2020
by
Igor Drozdov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings for jira_projects_resolver
parent
104512a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/graphql/resolvers/projects/jira_projects_resolver.rb
app/graphql/resolvers/projects/jira_projects_resolver.rb
+1
-1
lib/gitlab/gon_helper.rb
lib/gitlab/gon_helper.rb
+2
-2
No files found.
app/graphql/resolvers/projects/jira_projects_resolver.rb
View file @
faec75e9
...
...
@@ -22,7 +22,7 @@ module Resolvers
projects_array
,
# override default max_page_size to whatever the size of the response is,
# see https://gitlab.com/gitlab-org/gitlab/-/issues/231394
args
.
merge
({
max_page_size:
projects_array
.
size
})
**
args
.
merge
({
max_page_size:
projects_array
.
size
})
)
else
raise
Gitlab
::
Graphql
::
Errors
::
BaseError
,
response
.
message
...
...
lib/gitlab/gon_helper.rb
View file @
faec75e9
...
...
@@ -60,9 +60,9 @@ module Gitlab
# name - The name of the feature flag, e.g. `my_feature`.
# args - Any additional arguments to pass to `Feature.enabled?`. This allows
# you to check if a flag is enabled for a particular user.
def
push_frontend_feature_flag
(
name
,
*
args
)
def
push_frontend_feature_flag
(
name
,
*
args
,
**
kwargs
)
var_name
=
name
.
to_s
.
camelize
(
:lower
)
enabled
=
Feature
.
enabled?
(
name
,
*
args
)
enabled
=
Feature
.
enabled?
(
name
,
*
args
,
**
kwargs
)
# Here the `true` argument signals gon that the value should be merged
# into any existing ones, instead of overwriting them. This allows you to
...
...
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