Closed ryanlerch closed 3 years ago
Since you assigned the issue to yourself, there are a few thing to look at.
The current workflow to remove a group is to, first remove all related membership by hand but you probably noticed that, which leads me to say that you should not get this kind of error but a pop-up asking you to revoke all membership first.
This is the current behavior I have with current HEAD.
Since then, we introduced "cascade" mechanism into the data models which take care of the membership removal when a group is removed (The issue you're having looks more related to a cascade delete issue). However, we did not remove the group membership check which prevents group's removal unless you did it.
Even though if you revoke all membership, you will hit the behavior explained above as this actually raise another issue which is: membership don't get deleted but archived in a kind of way (by setting member's status to UNAPPROVED as fedoraproject doesn't remove anything but this should not be done at a code-base).
Looking at the current HEAD, the cascade option looks good and should remove all related membership if the membership check mechanism is removed unless your data models is not up-to-date into postgres.
By fixing this issue, we should update group removal workflow. What I would suggest is to pop-up a dialog to ask confirmation of the delete. If admin confirms, delete the group and send out delete's notification to all former members. Notification should already be handled by the removal notification's mechanism.
Closing this issue as the FAS project is now archived, not actively developed, and unmaintained.
FAS was replaced in March 2021 by Fedora Accounts (https://accounts.fedoraproject.org).
If this issue is a Feature Request that you forsee might be beneficial to Fedora Accounts, please refile it against Noggin
trying to delete a group on the admin panel doenst work, and the follow error is given to the console: