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
Review feedback
Judith Rothd22ecf66a630
diff --git a/modules/storages/app/controllers/storages/admin/storages/project_storages_controller.rb b/modules/storages/app/controllers/storages/admin/storages/project_storages_controller.rbindex ffe01034793..2bc95d57712 100644--- a/modules/storages/app/controllers/storages/admin/storages/project_storages_controller.rb+++ b/modules/storages/app/controllers/storages/admin/storages/project_storages_controller.rb@@ -119,7 +119,7 @@ class Storages::Admin::Storages::ProjectStoragesController < ApplicationControllendresult.on_failure do |failure|- error = failure.errors.map(&:message).join("; ")+ error = failure.errors.map(&:message).to_sentenceflash[:primer_banner] = { message: t("project_storages.remove_project.deletion_failure_flash", error:), scheme: :danger }end# rubocop:enable Rails/ActionControllerFlashBeforeRenderdiff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.ymlindex 47a035c4f63..6436c13f943 100644--- a/modules/storages/config/locales/en.yml+++ b/modules/storages/config/locales/en.yml@@ -67,7 +67,7 @@ en:inactive: No specific foldermanual: Existing folder manually managedremove_project:- deletion_failure_flash: 'Failed to remove the project from the storage: '+ deletion_failure_flash: Failed to remove the project from the storage. %{error}dialog:automatically_managed_appendix: Also, in this case this storage has an automatically managed project folder, this and its files will be deleted forever.confirmation_text: Please, confirm you understand and want to remove this file storage from this projectdiff --git a/modules/storages/spec/features/storages/admin/project_storages_spec.rb b/modules/storages/spec/features/storages/admin/project_storages_spec.rbindex a0a54aae83b..938d93cd71f 100644--- a/modules/storages/spec/features/storages/admin/project_storages_spec.rb+++ b/modules/storages/spec/features/storages/admin/project_storages_spec.rb@@ -55,10 +55,6 @@ RSpec.describe "Admin lists project mappings for a storage",current_user { admin }- before do- Storages::Peripherals::Registry- .stub("#{storage.short_provider_type}.commands.delete_folder", ->(_) { ServiceResult.success })- endcontext "with insufficient permissions" doit "is not accessible" do@@ -367,7 +363,7 @@ RSpec.describe "Admin lists project mappings for a storage",click_on "Remove"end- expect(page).to have_text(I18n.t(:notice_successful_delete))+ expect(page).to have_text("Successful deletion.")expect(page).to have_no_text(project.name)endend