Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

refactor: remove unused param

Christophe Bliard948c7b94168a
diff --git a/app/services/bulk_services/project_mappings/base_create_service.rb b/app/services/bulk_services/project_mappings/base_create_service.rb
index c946d2c8998..8a857f0dfaf 100644
--- a/app/services/bulk_services/project_mappings/base_create_service.rb
+++ b/app/services/bulk_services/project_mappings/base_create_service.rb
@@ -41,7 +41,7 @@ module BulkServices
def perform(params = {})
service_call = validate_permissions
- service_call = validate_contract(service_call, nil, params) if service_call.success?
+ service_call = validate_contract(service_call, params) if service_call.success?
service_call = perform_bulk_create(service_call) if service_call.success?
service_call = after_perform(service_call, params) if service_call.success?
@@ -60,7 +60,7 @@ module BulkServices
end
end
- def validate_contract(service_call, _project_ids, params)
+ def validate_contract(service_call, params)
extra_attributes = attributes_from_params(params)
mapping_attributes_for_all_projects = projects_mapper.mapping_attributes_for_all_projects(extra_attributes)
set_attributes_results = mapping_attributes_for_all_projects.map do |mapping_attributes|
diff --git a/modules/storages/app/services/storages/project_storages/bulk_create_service.rb b/modules/storages/app/services/storages/project_storages/bulk_create_service.rb
index 62ac56fb3ff..79a79c9bbae 100644
--- a/modules/storages/app/services/storages/project_storages/bulk_create_service.rb
+++ b/modules/storages/app/services/storages/project_storages/bulk_create_service.rb
@@ -55,7 +55,7 @@ module Storages::ProjectStorages
def mapping_model_class = ::Storages::ProjectStorage
def default_contract_class = ::Storages::ProjectStorages::CreateContract
- def validate_contract(service_call, project_ids, params)
+ def validate_contract(service_call, params)
super_service_call = super
super_service_call.on_failure do