-
Notifications
You must be signed in to change notification settings - Fork 206
Description
Expected Behavior
When I delete a usergroup and afterwards undo all my changes via activity log, the former status should be fully restored, that is including the link between any users and the deleted usergroup.
Current Behavior
When I delete a usergroup and afterwards undo this action via activity log, the former status is not fully restored, since the link between user and usergroup is missing. On the surface of the UI this link is shown as part of the user object. When deleting a usergroup, the deletion itself shows up in the activity log, yet the change in the user objects that depend on that group (which is the removal of the deleted group) is not. This may be due to the fact that these links are stored in a separate database table.
Possible Solution
When deleting a usergroup, the resulting removal of links to user objects are logged as changes to those user objects to the activity log and can thus be restored.
Steps to Reproduce (for bugs)
- add a user template
- add a usergroup
- add a user connected to this group
- delete usergroup
- view user & activity log
Your Environment
- Director version: 1.11.1
- Icinga Web 2 version: 2.12.1
- PHP 8.2.13