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

Remove unused route and it's partial

Henriette Darge7034c5513952
diff --git a/modules/reporting/app/controllers/cost_reports_controller.rb b/modules/reporting/app/controllers/cost_reports_controller.rb
index c247354414b..1cf4d64aaea 100644
--- a/modules/reporting/app/controllers/cost_reports_controller.rb
+++ b/modules/reporting/app/controllers/cost_reports_controller.rb
@@ -387,11 +387,6 @@ class CostReportsController < ApplicationController
Array(permissions).any? { |permission| user.allowed_to?(permission, @project, global:) }
end
- def display_report_list
- report_type = params[:report_type] || :public
- render partial: 'report_list', locals: { report_type: }, layout: !request.xhr?
- end
-
private
def find_optional_user
diff --git a/modules/reporting/app/views/cost_reports/_report_list.html.erb b/modules/reporting/app/views/cost_reports/_report_list.html.erb
deleted file mode 100644
index 48f75c472ec..00000000000
--- a/modules/reporting/app/views/cost_reports/_report_list.html.erb
+++ /dev/null
@@ -1,45 +0,0 @@
-<%#-- copyright
-OpenProject is an open source project management software.
-Copyright (C) 2012-2023 the OpenProject GmbH
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License version 3.
-
-OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
-Copyright (C) 2006-2013 Jean-Philippe Lang
-Copyright (C) 2010-2013 the ChiliProject Team
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-See COPYRIGHT and LICENSE files for more details.
-
-++#%>
-
-<% queries = report_type == :public ? CostQuery.public(@project) : CostQuery.private(@project, current_user) %>
-<% if queries.any? %>
- <% queries.each do |query| -%>
- <ul class="pages-hierarchy -with-hierarchy">
- <li class="tree-menu--item" slug="<%= query.name %>">
- <%= link_to(h(query.name),
- {:controller => '/cost_reports', :action => 'show', :id => query.id},
- :class => 'tree-menu--title ellipsis') %>
- </li>
- </ul>
- <% end -%>
-<% else %>
- <ul class="pages-hierarchy -with-hierarchy">
- <li class="tree-menu--title"><%= t(:"label_no_reports") %></li>
- </ul>
-<% end -%>
diff --git a/modules/reporting/config/routes.rb b/modules/reporting/config/routes.rb
index ebc32d526c5..6bbfe9c7e11 100644
--- a/modules/reporting/config/routes.rb
+++ b/modules/reporting/config/routes.rb
@@ -46,7 +46,6 @@ OpenProject::Application.routes.draw do
post :save_as, action: :create
get :drill_down
match :available_values, via: %i[get post]
- get :display_report_list
end
member do
diff --git a/modules/reporting/lib/open_project/reporting/engine.rb b/modules/reporting/lib/open_project/reporting/engine.rb
index c3d3c7094fc..e7ba7c9f131 100644
--- a/modules/reporting/lib/open_project/reporting/engine.rb
+++ b/modules/reporting/lib/open_project/reporting/engine.rb
@@ -37,7 +37,7 @@ module OpenProject::Reporting
register 'openproject-reporting',
author_url: 'https://www.openproject.org',
bundled: true do
- view_actions = %i[index show drill_down available_values display_report_list]
+ view_actions = %i[index show drill_down available_values]
edit_actions = %i[create update rename destroy]
# register reporting_module including permissions