Bulk "Assign to Group": keep existing groups and allow adding a group
Problem
The "Assign to Group" bulk action on the Hosts page ignores the groups the selected hosts already belong to:
- The modal always opens with every group unchecked, even when the selected hosts are already members of one or more groups.
- On submit, the checked groups replace each host's existing memberships: any group that wasn't re-checked is silently removed.
So there is no way to simply add a group to several hosts that already belong to other (possibly different) groups without losing their current memberships.
Example
1. Host A is in "Prod", host B is in "Web".
2. Select A and B, then click Assign to Group.
3. Neither "Prod" nor "Web" is pre-selected. Check "Linux" and submit.
4. A and B are now only in "Linux": "Prod" and "Web" are gone.
Expected
- The modal shows the selected hosts' current group memberships.
- It is possible to add a group to the selected hosts while keeping the groups they already belong to.
0 Comments
No comments yet. Be the first to share your thoughts.
