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

Cleanup/Remove unused menus

Aaron Contrerasd0f4c1eab450
diff --git a/config/initializers/menus.rb b/config/initializers/menus.rb
index d535e226a12..e9914dd2744 100644
--- a/config/initializers/menus.rb
+++ b/config/initializers/menus.rb
@@ -177,18 +177,6 @@ Redmine::MenuManager.map :global_menu do |menu|
}
end
-Redmine::MenuManager.map :global_work_packages_menu do |menu|
- menu.push :work_packages_query_select,
- { controller: '/work_packages', action: 'index' },
- partial: 'work_packages/menu_query_select'
-end
-
-Redmine::MenuManager.map :global_activities_menu do |menu|
- menu.push :activity_filters,
- { controller: '/activities', action: 'index' },
- partial: 'activities/filters_menu'
-end
-
Redmine::MenuManager.map :notifications_menu do |menu|
menu.push :notification_grouping_select,
{ controller: '/my', action: 'notifications' },
diff --git a/spec/lib/redmine/menu_manager_spec.rb b/spec/lib/redmine/menu_manager_spec.rb
index d31722af54e..4fa354b9701 100644
--- a/spec/lib/redmine/menu_manager_spec.rb
+++ b/spec/lib/redmine/menu_manager_spec.rb
@@ -65,20 +65,6 @@ RSpec.describe Redmine::MenuManager do
end
end
- context 'for the global_work_packages_menu' do
- it 'includes the expected items' do
- expect(described_class.items(:global_work_packages_menu).map(&:name))
- .to include(:work_packages_query_select)
- end
- end
-
- context 'for the global_activities_menu' do
- it 'includes the expected items' do
- expect(described_class.items(:global_activities_menu).map(&:name))
- .to include(:activity_filters)
- end
- end
-
context 'for the notifications_menu' do
it 'includes the expected items' do
expect(described_class.items(:notifications_menu).map(&:name))