feat(schedule): add attendees count column to workshop admin list#4642
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Shows registered attendees as "N / capacity" (or just "N" when no capacity is set) using an annotated queryset to avoid N+1 queries.
106d17f to
9ee3c07
Compare
|
Adds an TestingNo tests added for the new functionality:
Error Handling
Architecture
Minor
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4642 +/- ##
=======================================
Coverage 92.52% 92.52%
=======================================
Files 359 359
Lines 10791 10791
Branches 821 821
=======================================
Hits 9984 9984
Misses 696 696
Partials 111 111 🚀 New features to boost your workflow:
|
Summary
ScheduleItemadmin list view, visible when filtering bytype=training(workshops)N / capacitywhen a capacity is set, or justNwhen there is noneCount("attendees", distinct=True)to avoid N+1 queries — a single SQLCOUNTper row rather than a separate query per rowTest plan
/admin/schedule/scheduleitem/?type__exact=trainingand verify the new Attendees column appearsattendees_total_capacityset showN / capacityformat