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
[#56899] Show storage sidebar for Nextcloud storages even when AMPF is deactivated
Judith Roth670c8d2dea5c
diff --git a/modules/storages/app/views/storages/admin/storages/edit.html.erb b/modules/storages/app/views/storages/admin/storages/edit.html.erbindex 20814d8e371..f8186320c52 100644--- a/modules/storages/app/views/storages/admin/storages/edit.html.erb+++ b/modules/storages/app/views/storages/admin/storages/edit.html.erb@@ -42,16 +42,11 @@ See COPYRIGHT and LICENSE files for more details.%><% end %>-<% display_sidebar = @storage.provider_type_one_drive? || @storage.automatic_management_enabled? %>-<% if display_sidebar %>- <%= render(Primer::Alpha::Layout.new(stacking_breakpoint: :lg)) do |component| %>- <% component.with_main() do %>- <%= render(::Storages::Admin::StorageViewComponent.new(@storage)) %>- <% end %>- <% component.with_sidebar(col_placement: :end, row_placement: :end) do %>- <%= render(::Storages::Admin::SidePanelComponent.new(storage: @storage)) %>- <% end %>+<%= render(Primer::Alpha::Layout.new(stacking_breakpoint: :lg)) do |component| %>+ <% component.with_main() do %>+ <%= render(::Storages::Admin::StorageViewComponent.new(@storage)) %>+ <% end %>+ <% component.with_sidebar(col_placement: :end, row_placement: :end) do %>+ <%= render(::Storages::Admin::SidePanelComponent.new(storage: @storage)) %><% end %>-<% else %>- <%= render(::Storages::Admin::StorageViewComponent.new(@storage)) %><% end %>diff --git a/modules/storages/spec/features/storages/admin/edit_storage_spec.rb b/modules/storages/spec/features/storages/admin/edit_storage_spec.rbindex fe21f7e634e..7e2294c2a6a 100644--- a/modules/storages/spec/features/storages/admin/edit_storage_spec.rb+++ b/modules/storages/spec/features/storages/admin/edit_storage_spec.rb@@ -222,6 +222,7 @@ RSpec.describe "Admin Edit File storage",visit edit_admin_settings_storage_path(storage)aggregate_failures "Health status" do+ expect(page).to have_test_selector("validation-result--subtitle", text: "Connection validation")expect(page).to have_test_selector("storage-health-status", text: "Pending")end@@ -242,9 +243,10 @@ RSpec.describe "Admin Edit File storage",context "with Nextcloud Storage and not automatically managed" dolet(:storage) { create(:nextcloud_storage, :as_not_automatically_managed, name: "Cloud Storage") }- it "does not render health status information" do+ it "renders health status information but without health notifications for automatically managed folders" dovisit edit_admin_settings_storage_path(storage)+ expect(page).to have_test_selector("validation-result--subtitle", text: "Connection validation")expect(page).not_to have_test_selector("storage-health-status")expect(page).not_to have_test_selector("storage-health-notifications-button")end@@ -344,6 +346,7 @@ RSpec.describe "Admin Edit File storage",visit edit_admin_settings_storage_path(storage)aggregate_failures "Health status" do+ expect(page).to have_test_selector("validation-result--subtitle", text: "Connection validation")expect(page).to have_test_selector("storage-health-status", text: "Pending")end@@ -364,9 +367,10 @@ RSpec.describe "Admin Edit File storage",context "with OneDrive/SharePoint Storage and not automatically managed" dolet(:storage) { create(:one_drive_storage, :as_not_automatically_managed, name: "Cloud Storage") }- it "does not render health status information" do+ it "renders health status information but without health notifications for automatically managed folders" dovisit edit_admin_settings_storage_path(storage)+ expect(page).to have_test_selector("validation-result--subtitle", text: "Connection validation")expect(page).not_to have_test_selector("storage-health-status")expect(page).not_to have_test_selector("storage-health-notifications-button")end