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

[#51384] fixed issues from PR

Eric Schubertec8af767b4b5
diff --git a/modules/storages/app/components/storages/admin/storage_view_information.rb b/modules/storages/app/components/storages/admin/storage_view_information.rb
index 714ce8a7ad8..6ac746b2f60 100644
--- a/modules/storages/app/components/storages/admin/storage_view_information.rb
+++ b/modules/storages/app/components/storages/admin/storage_view_information.rb
@@ -24,7 +24,7 @@ module Storages::Admin
def configuration_check_label_for(*configs)
# do not show the status label, if storage is completely empty (initial state)
- return nil if storage.configuration_checks.values.none?
+ return if storage.configuration_checks.values.none?
if storage.configuration_checks.slice(*configs.map(&:to_sym)).values.all?
status_label(I18n.t('storages.label_completed'), scheme: :success, test_selector: "label-#{configs.join('-')}-status")
@@ -39,7 +39,7 @@ module Storages::Admin
def automatically_managed_project_folders_status_label
# do not show the status label, if storage is completely empty (initial state)
- return nil if storage.configuration_checks.values.none?
+ return if storage.configuration_checks.values.none?
test_selector = 'label-managed-project-folders-status'
diff --git a/modules/storages/app/controllers/storages/admin/storages_controller.rb b/modules/storages/app/controllers/storages/admin/storages_controller.rb
index 81cc1698fe6..20e8e9af2ba 100644
--- a/modules/storages/app/controllers/storages/admin/storages_controller.rb
+++ b/modules/storages/app/controllers/storages/admin/storages_controller.rb
@@ -88,8 +88,7 @@ class Storages::Admin::StoragesController < ApplicationController
service_result = ::Storages::Storages::SetAttributesService
.new(user: current_user,
model: @object,
- contract_class: EmptyContract,
- contract_options: { skip_provider_type_strategy: true })
+ contract_class: EmptyContract)
.call
@storage = service_result.result
diff --git a/modules/storages/spec/features/admin_storages_spec.rb b/modules/storages/spec/features/admin_storages_spec.rb
index e980071559d..f88c3ca5f6b 100644
--- a/modules/storages/spec/features/admin_storages_spec.rb
+++ b/modules/storages/spec/features/admin_storages_spec.rb
@@ -308,9 +308,7 @@ RSpec.describe 'Admin storages',
aggregate_failures 'General information' do
within_test_selector('storage-general-info-form') do
fill_in 'storages_one_drive_storage_name', with: 'My OneDrive', fill_options: { clear: :backspace }
- fill_in 'storages_one_drive_storage_tenant_id',
- with: '029d4741-a4be-44c6-a8e4-e4eff7b19f65',
- fill_options: { clear: :backspace }
+ fill_in 'storages_one_drive_storage_tenant_id', with: '029d4741-a4be-44c6-a8e4-e4eff7b19f65'
click_button 'Save and continue'
expect(page).to have_text("Drive can't be blank.")