Skip to content

A platform for community discussion. Free, open, simple.

FIX: remove storage_stats from the list of reports, too specific (#6817)

Joffrey JAFFEUX1d62d3df6f98
diff --git a/app/controllers/admin/reports_controller.rb b/app/controllers/admin/reports_controller.rb
index 6907bb8bbb4..1ec347f25c0 100644
--- a/app/controllers/admin/reports_controller.rb
+++ b/app/controllers/admin/reports_controller.rb
@@ -6,7 +6,7 @@ class Admin::ReportsController < Admin::AdminController
ApplicationRequest.req_types.keys
.select { |r| r =~ /^page_view_/ && r !~ /mobile/ }
.map { |r| r + "_reqs" } +
- Report.singleton_methods.grep(/^report_(?!about)/)
+ Report.singleton_methods.grep(/^report_(?!about|storage_stats)/)
reports = reports_methods.map do |name|
type = name.to_s.gsub('report_', '')