DeepSeek V4 Pro · Balanced
fix-proper-handling-of-group-memberships-discourse-cursor
Discourse · Ruby · L · 300–799 lines · 6 files
The normal review, with one generalist agent. Judge: Claude Opus 5.5.
- Gold bugs found
- 1 of 13
- Comments published
- 3
- Comments matching a bug
- 1
- Comments not matching
- 2
- Cost of this PR
- $0.522
Published comments (3)
Member routes for add/remove members use :id but actions require :group_id — Every add/remove request raises `ActionController::ParameterMissing` and 500s because the group id arrives as `params[:id]`, while `add_members` and `remove_member` read `params.require(:group_id)`. Read `params.require(:id)` in both actions, or use the collection routes shown in the fix.
Group members template iterates undefined `members` instead of `model.members` — The public group members page renders an empty table because `members` is undefined on the generated plain controller. Iterate `model.members` instead.
totalPages is one page too high when user_count is an exact multiple of limit — The real last page never registers as last, and `next` can land the admin on an empty page. Use `Math.ceil(this.get("user_count") / this.get("limit"))`.