Project

General

Profile

Actions

Patch #43640

open

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

Added by Florian Walchshofer 1 day ago. Updated about 19 hours ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Groups
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

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

Actions

Also available in: Atom PDF