FIX: proper handling of group memberships #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Test 8
Replicated from ai-code-review-evaluation/discourse-cursor#8
Note
Implements paginated group members with admin UI to add/remove users and corresponding backend endpoints, replacing username-passing on save/create.
admin-groupcontroller/model (limit/offset/user_count,currentPage/totalPages, next/previous actions).admin/templates/group.hbswith list, pagination controls, and add/remove actions; newgroup-memberview/template.Groupmodel:findMembers()consumes/members.jsonwithmeta; newaddMembers(usernames)andremoveMember(member);create/saveno longer take usernames.admin_group_route,group-membersroute). Templates adjusted to usemembers.GroupsController#membersnow returns JSON withmembersandmeta { total, limit, offset }and supports pagination.Admin::GroupsController: newcreate/updateparam shape, ILIKE search; newadd_membersandremove_memberactions; forbid modifying automatic groups; simplifieddestroy.PUT /admin/groups/members(add_members) andDELETE /admin/groups/members(remove_member).admin_base.scss.selector_placeholder, add/remove confirmations/labels).Written by Cursor Bugbot for commit 060cda7. Configure here.