Commit 0a8ccb54 authored by Igor Drozdov's avatar Igor Drozdov

Merge branch 'fix-kwargs-for-secure' into 'master'

Fix kwargs deprecation warnings

See merge request gitlab-org/gitlab!43543
parents d51c4bb3 c8aa89f1
......@@ -38,7 +38,7 @@ class Projects::Ci::DailyBuildGroupReportResultsController < Projects::Applicati
end
def report_results
Ci::DailyBuildGroupReportResultsFinder.new(finder_params).execute
Ci::DailyBuildGroupReportResultsFinder.new(**finder_params).execute
end
def finder_params
......
......@@ -28,7 +28,7 @@ module Analytics
private
def navbar_sub_item(args)
NavbarSubItem.new(args)
NavbarSubItem.new(**args)
end
def cycle_analytics_navbar_link(project, current_user)
......
......@@ -60,7 +60,7 @@ module AvatarsHelper
avatar_size = options[:size] || 16
user_name = options[:user].try(:name) || options[:user_name]
avatar_url = user_avatar_url_for(options.merge(size: avatar_size))
avatar_url = user_avatar_url_for(**options.merge(size: avatar_size))
has_tooltip = options[:has_tooltip].nil? ? true : options[:has_tooltip]
data_attributes = options[:data] || {}
......
......@@ -21,7 +21,7 @@ module Mutations
project = authorized_find_project!(full_path: full_path)
service = ::DastScannerProfiles::DestroyService.new(project, current_user)
result = service.execute({ id: id.model_id })
result = service.execute(id: id.model_id)
if result.success?
{ errors: [] }
......
......@@ -39,7 +39,7 @@ FactoryBot.define do
end
initialize_with do
::Gitlab::Ci::Reports::Security::Finding.new(attributes)
::Gitlab::Ci::Reports::Security::Finding.new(**attributes)
end
end
end
......@@ -9,7 +9,7 @@ FactoryBot.define do
skip_create
initialize_with do
::Gitlab::Ci::Reports::Security::Identifier.new(attributes)
::Gitlab::Ci::Reports::Security::Identifier.new(**attributes)
end
end
end
......@@ -11,7 +11,7 @@ FactoryBot.define do
skip_create
initialize_with do
::Gitlab::Ci::Reports::Security::Locations::Sast.new(attributes)
::Gitlab::Ci::Reports::Security::Locations::Sast.new(**attributes)
end
trait :dynamic do
......
......@@ -9,7 +9,7 @@ FactoryBot.define do
skip_create
initialize_with do
::Gitlab::Ci::Reports::Security::Scanner.new(attributes)
::Gitlab::Ci::Reports::Security::Scanner.new(**attributes)
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment