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 ...@@ -38,7 +38,7 @@ class Projects::Ci::DailyBuildGroupReportResultsController < Projects::Applicati
end end
def report_results def report_results
Ci::DailyBuildGroupReportResultsFinder.new(finder_params).execute Ci::DailyBuildGroupReportResultsFinder.new(**finder_params).execute
end end
def finder_params def finder_params
......
...@@ -28,7 +28,7 @@ module Analytics ...@@ -28,7 +28,7 @@ module Analytics
private private
def navbar_sub_item(args) def navbar_sub_item(args)
NavbarSubItem.new(args) NavbarSubItem.new(**args)
end end
def cycle_analytics_navbar_link(project, current_user) def cycle_analytics_navbar_link(project, current_user)
......
...@@ -60,7 +60,7 @@ module AvatarsHelper ...@@ -60,7 +60,7 @@ module AvatarsHelper
avatar_size = options[:size] || 16 avatar_size = options[:size] || 16
user_name = options[:user].try(:name) || options[:user_name] 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] has_tooltip = options[:has_tooltip].nil? ? true : options[:has_tooltip]
data_attributes = options[:data] || {} data_attributes = options[:data] || {}
......
...@@ -21,7 +21,7 @@ module Mutations ...@@ -21,7 +21,7 @@ module Mutations
project = authorized_find_project!(full_path: full_path) project = authorized_find_project!(full_path: full_path)
service = ::DastScannerProfiles::DestroyService.new(project, current_user) service = ::DastScannerProfiles::DestroyService.new(project, current_user)
result = service.execute({ id: id.model_id }) result = service.execute(id: id.model_id)
if result.success? if result.success?
{ errors: [] } { errors: [] }
......
...@@ -39,7 +39,7 @@ FactoryBot.define do ...@@ -39,7 +39,7 @@ FactoryBot.define do
end end
initialize_with do initialize_with do
::Gitlab::Ci::Reports::Security::Finding.new(attributes) ::Gitlab::Ci::Reports::Security::Finding.new(**attributes)
end end
end end
end end
...@@ -9,7 +9,7 @@ FactoryBot.define do ...@@ -9,7 +9,7 @@ FactoryBot.define do
skip_create skip_create
initialize_with do initialize_with do
::Gitlab::Ci::Reports::Security::Identifier.new(attributes) ::Gitlab::Ci::Reports::Security::Identifier.new(**attributes)
end end
end end
end end
...@@ -11,7 +11,7 @@ FactoryBot.define do ...@@ -11,7 +11,7 @@ FactoryBot.define do
skip_create skip_create
initialize_with do initialize_with do
::Gitlab::Ci::Reports::Security::Locations::Sast.new(attributes) ::Gitlab::Ci::Reports::Security::Locations::Sast.new(**attributes)
end end
trait :dynamic do trait :dynamic do
......
...@@ -9,7 +9,7 @@ FactoryBot.define do ...@@ -9,7 +9,7 @@ FactoryBot.define do
skip_create skip_create
initialize_with do initialize_with do
::Gitlab::Ci::Reports::Security::Scanner.new(attributes) ::Gitlab::Ci::Reports::Security::Scanner.new(**attributes)
end end
end 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