Skip to content

Commit

Permalink
[#57255] Remove "Enabled for projects" feature flag (#16482)
Browse files Browse the repository at this point in the history
  • Loading branch information
akabiru authored Aug 21, 2024
1 parent 90d25f9 commit 3347071
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,18 @@ See COPYRIGHT and LICENSE files for more details.
I18n.t("button_delete")
end

if OpenProject::FeatureDecisions.enable_storage_for_multiple_projects_active?
header.with_tab_nav(label: nil, test_selector: :storage_detail_header) do |tab_nav|
tab_nav.with_tab(
selected: tab_selected?(:edit),
href: edit_admin_settings_storage_path(@storage)
) do |tab|
tab.with_text { t(:label_details) }
end
tab_nav.with_tab(
selected: tab_selected?(:project_storages),
href: admin_settings_storage_project_storages_path(@storage)
) do |tab|
tab.with_text { t(:label_project_mappings) }
end
header.with_tab_nav(label: nil, test_selector: :storage_detail_header) do |tab_nav|
tab_nav.with_tab(
selected: tab_selected?(:edit),
href: edit_admin_settings_storage_path(@storage)
) do |tab|
tab.with_text { t(:label_details) }
end
tab_nav.with_tab(
selected: tab_selected?(:project_storages),
href: admin_settings_storage_project_storages_path(@storage)
) do |tab|
tab.with_text { t(:label_project_mappings) }
end
end
end
Expand Down
1 change: 0 additions & 1 deletion modules/storages/lib/open_project/storages/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def self.permissions

initializer "openproject_storages.feature_decisions" do
OpenProject::FeatureDecisions.add :storage_file_picking_select_all
OpenProject::FeatureDecisions.add :enable_storage_for_multiple_projects
end

initializer "openproject_storages.event_subscriptions" do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
# the Angular change detection. This is usually done by the notification polling, but we don't want to wait
RSpec.describe "Admin lists project mappings for a storage",
:js, :storage_server_helpers, :webmock, :with_cuprite,
with_flag: { enable_storage_for_multiple_projects: true },
with_settings: { notifications_polling_interval: 1_000 } do
shared_let(:admin) { create(:admin, preferences: { time_zone: "Etc/UTC" }) }
shared_let(:non_admin) { create(:user) }
Expand Down

0 comments on commit 3347071

Please sign in to comment.