Repository navigation
fix dashboard query by using .preload - #3066
Conversation
…host-with-sponsors-in-one-join
What this changes
The dashboard card reads the venue through The fix keeps ReviewVerified against the diff, the post-image files, The new spec would still pass if the preload were removed. expect(result.values.flatten.select { |event| event.is_a?(Workshop) }.map(&:host))
.to all(eq(host))
Two follow-ups, both pre-existing and outside this diff:
|
The host assertions added in #3066 only checked the resolved sponsor, so dropping the preload in DashboardQuery would restore a per-card query and leave the suite green. Count SQL statements while reading the attributes a dashboard card renders for one and four cards, require a non-zero baseline, and pin the two host-less cases: only non-host sponsors resolves to nil, and no sponsor rows renders without breakage. Closes #3071
No description provided.