Repository navigation
Fix Ranks group pages crashing when the group has members - #109
Conversation
The group detail endpoint returned its member list straight from
search_users, without the per-player groups and rank that the players
listing adds. The shared PlayerResults list maps over row.groups, so any
group with members crashed the page on the client ("This page couldn't
load"). Both endpoints now fill the rows in the same way.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe backend now adds group and rank data to group-detail members and uses the same helper for user rows. Tests check staff group details and the display of a member in the ranks overview. ChangesRank group members
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to Group-detail members now include the groups and rank fields needed by the Ranks panel, and the endpoint test checks that response. No actionable merge risk was identified. Architecture SummaryArchitecture risk: 🟡 Medium · up to The change affects 2 systems. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
Reliability and maintainability
Comment |
Opening a group in the staff panel's Ranks tab (for example
/admin/ranks/groups/staff) showed "This page couldn't load".GET /admin/luckperms/groups/{name}returned its member list straight frommirror.search_users, so the rows had nogroupsorrank. The member list on the page reusesPlayerResults, which callsrow.groups.map(...), so any group with members threw on the client. The existing frontend test used an empty member list, so it never hit this.GET /admin/luckperms/players, through one shared helper.KeyError: 'rank').Reproduced against the dev site's real
staffpayload before the fix.🤖 Generated with Claude Code