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
40e71cbf
Commit
40e71cbf
authored
Sep 30, 2020
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Ruby 2.7 kwarg warnings for Metric Dashboard
parent
2ae6c5f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/graphql/mutations/metrics/dashboard/annotations/create.rb
...graphql/mutations/metrics/dashboard/annotations/create.rb
+1
-1
lib/gitlab/metrics/dashboard/stages/url_validator.rb
lib/gitlab/metrics/dashboard/stages/url_validator.rb
+1
-1
No files found.
app/graphql/mutations/metrics/dashboard/annotations/create.rb
View file @
40e71cbf
...
...
@@ -80,7 +80,7 @@ module Mutations
raise
Gitlab
::
Graphql
::
Errors
::
ArgumentError
,
ANNOTATION_SOURCE_ARGUMENT_ERROR
end
super
(
args
)
super
(
**
args
)
end
def
find_object
(
id
:)
...
...
lib/gitlab/metrics/dashboard/stages/url_validator.rb
View file @
40e71cbf
...
...
@@ -46,7 +46,7 @@ module Gitlab
links
&
.
each
do
|
link
|
next
unless
link
.
is_a?
Hash
Gitlab
::
UrlBlocker
.
validate!
(
link
[
:url
],
blocker_args
)
Gitlab
::
UrlBlocker
.
validate!
(
link
[
:url
],
**
blocker_args
)
rescue
Gitlab
::
UrlBlocker
::
BlockedUrlError
link
[
:url
]
=
''
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