Project

General

Profile

Actions

Patch #43640

closed

Improve Group Controller – Enable Adding/Removing Multiple Users from Users View

Added by Florian Walchshofer 5 months ago. Updated 16 days ago.

Status:
Closed
Priority:
Normal
Category:
Groups
Target version:

Description

To improve efficiency in group management,
extend the functionality to allow bulk operations for adding and removing multiple users directly from the Users view (Administration)

This enhancement should include updates to the controller logic, and users view

Patch changes:
  • Group Controller - rename method remove_user to remove_users
    • add new route - PATCH - group_remove_users_path - /groups/:id/remove_users
    • keep the existing DELETE route, but point it to the renamed method that handles multiple user removal.
      delete 'groups/:id/users/:user_id', :to => 'groups#remove_users', :id => /\d+/, :as => 'group_user'
      post   'groups/:id/remove_users',   :to => 'groups#remove_users', :id => /\d+/, :as => 'group_remove_users'
      
  • Users View - Administration
    • add multiple users to a group (the controller already existed)
    • remove multiple users to a group
  • Tests & Localization

Files

01-group-controller-remove_users.patch (5.35 KB) 01-group-controller-remove_users.patch Florian Walchshofer, 2026-01-02 00:07
02-tests-group-controller-remove_users.patch (3.43 KB) 02-tests-group-controller-remove_users.patch Florian Walchshofer, 2026-01-02 00:07
03-localization-group-controller-remove_users.patch (22.6 KB) 03-localization-group-controller-remove_users.patch Florian Walchshofer, 2026-01-02 00:07
AddUsersToGroup.png (45.9 KB) AddUsersToGroup.png Florian Walchshofer, 2026-01-02 00:07
v2-03-localization-group-controller-remove_users.patch (33 KB) v2-03-localization-group-controller-remove_users.patch Florian Walchshofer, 2026-01-03 22:33
v2-01-group-controller-remove_users.patch (7.26 KB) v2-01-group-controller-remove_users.patch Florian Walchshofer, 2026-01-03 22:33
v2-02-tests-group-controller-remove_users.patch (13 KB) v2-02-tests-group-controller-remove_users.patch Florian Walchshofer, 2026-01-03 22:33
ConfirmDialog.png (90.5 KB) ConfirmDialog.png Florian Walchshofer, 2026-01-03 22:34
0001-localization-group-controller-remove_users.patch (32.6 KB) 0001-localization-group-controller-remove_users.patch Florian Walchshofer, 2026-03-09 21:35
0001-group-controller-remove_users.patch (7.85 KB) 0001-group-controller-remove_users.patch Florian Walchshofer, 2026-03-09 21:35
0001-tests-group-controller-remove_users.patch (11.4 KB) 0001-tests-group-controller-remove_users.patch Florian Walchshofer, 2026-03-09 21:35
0002-Add-or-remove-users-from-group-using-the-context-men.patch (7.18 KB) 0002-Add-or-remove-users-from-group-using-the-context-men.patch Marius BĂLTEANU, 2026-05-12 22:45
0001-Refactor-GroupsController-remove_user-to-remove_user.patch (6.74 KB) 0001-Refactor-GroupsController-remove_user-to-remove_user.patch Marius BĂLTEANU, 2026-05-12 22:45
0003-Implement-explicit-confirmation-when-removing-user-s.patch (7.06 KB) 0003-Implement-explicit-confirmation-when-removing-user-s.patch Marius BĂLTEANU, 2026-05-12 22:45
0004-Ensure-correct-redirect-after-user-removal-conf.patch (2.25 KB) 0004-Ensure-correct-redirect-after-user-removal-conf.patch Florian Walchshofer, 2026-05-13 23:08
0004b-Validate-back-url-in-user-removal-confirmation-.patch (1.83 KB) 0004b-Validate-back-url-in-user-removal-confirmation-.patch Florian Walchshofer, 2026-05-14 23:34

Related issues

Related to Redmine - Patch #44115: GroupsController#remove_users tests fail randomlyClosedGo MAEDAActions
Actions

Also available in: Atom PDF