From 90f0b45dd87a713b959dabfae8eb5131105f86cf Mon Sep 17 00:00:00 2001
From: jazairi <16103405+jazairi@users.noreply.github.com>
Date: Wed, 29 Jul 2026 10:40:03 -0700
Subject: [PATCH] Remove summary table from report dashboard
Why these changes are being introduced:
The report summary table is extremely inefficient.
Relevant ticket(s):
- [ETD-623](https://mitlibraries.atlassian.net/browse/ETD-623)
How this addresses that need:
This removes the summary table, so the report
index view just lists links to the individual
reports.
Stakeholders have noted that the summary tables
are useful, so this is an intermediary step
toward a functional version.
Side effects of this change:
- Link sidebar is now redundant, but we intend to
reintroduce the summary table in a more efficient
form, so it makes sense to leave it in for now.
- The report dashboard is now a visual design
abomination, but that feels better than a million
N+1 queries.
---
app/controllers/report_controller.rb | 6 +--
app/views/report/index.html.erb | 47 ++++++----------------
test/controllers/report_controller_test.rb | 22 ++++------
3 files changed, 21 insertions(+), 54 deletions(-)
diff --git a/app/controllers/report_controller.rb b/app/controllers/report_controller.rb
index d1f4074f..807861f2 100644
--- a/app/controllers/report_controller.rb
+++ b/app/controllers/report_controller.rb
@@ -88,11 +88,7 @@ def holds_by_source
@list = filter_holds_by_source term_filtered
end
- def index
- report = Report.new
- @terms = Thesis.pluck(:grad_date).uniq.sort
- @data = report.index_data
- end
+ def index; end
def term
term = params[:graduation] ? params[:graduation].to_s : 'all'
diff --git a/app/views/report/index.html.erb b/app/views/report/index.html.erb
index 347a19f9..8b23b369 100644
--- a/app/views/report/index.html.erb
+++ b/app/views/report/index.html.erb
@@ -2,41 +2,20 @@
-
Thesis dashboard
+
Report dashboard
-
-
The tables below summarize information about the thesis records which have been supplied to this application across academic terms.
-
Click on a column heading to see more detailed information about the theses from that term.