From 0ce52e15eb02457eb87b228f5a8dff8d93e36dda Mon Sep 17 00:00:00 2001 From: Morgan Roderick Date: Thu, 2 Jul 2026 10:11:29 +0200 Subject: [PATCH] fix: remove broken organisers eager load on Workshop queries The organisers association has a scope condition on the join table that Rails' preloader applies without joining the permissions table, causing PG::UndefinedTable on production data. This was already fixed for Event and Meeting in PR #2679, but PR #2682 reintroduced it on Workshop in the new load_events method. --- app/controllers/events_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/events_controller.rb b/app/controllers/events_controller.rb index 2eb9b2f9e..aeecab00a 100644 --- a/app/controllers/events_controller.rb +++ b/app/controllers/events_controller.rb @@ -155,7 +155,7 @@ def load_events(rows) (hash[row["event_type"]] ||= []) << row["id"].to_i end - workshops = Workshop.includes(:chapter, :sponsors, :host, :permissions, :organisers) + workshops = Workshop.includes(:chapter, :sponsors, :host, :permissions) .where(id: grouped["Workshop"]) .to_a.index_by(&:id) meetings = Meeting.includes(:venue).where(id: grouped["Meeting"])