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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#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.rbindex 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::Admindef 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::Admindef 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.rbindex 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 < ApplicationControllerservice_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.resultdiff --git a/modules/storages/spec/features/admin_storages_spec.rb b/modules/storages/spec/features/admin_storages_spec.rbindex 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' dowithin_test_selector('storage-general-info-form') dofill_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.")