Add ability for top-level group owners to ban members from the group
Implements frontend for https://gitlab.com/gitlab-org/modelops/anti-abuse/team-tasks/-/issues/155
What does this MR do and why?
As part of "Git abuse rate limit" feature, this MR adds the ability for top-level group owners to manually ban group members from the UI.
Previously, banning was only done automatically when group members exceeded the set limit for unique project downloads via UI or git clone.
Screenshots or screen recordings
Screen_Recording_2023-01-20_at_2.58.11_PM
How to set up and validate locally
- Ensure you are running GDK with an Ultimate license. The following command should log
true
when run in your terminal if this is set up correctlyecho "License.feature_available?(:unique_project_download_limit)" | rails c
- Turn on relevant feature flags:
echo "Feature.enable(:limit_unique_project_downloads_per_namespace_user)" | rails c
- Create a top-level group
- Add another user (non-owner) to the group
- Go to the group page then navigate to the members page (On the left sidebar, select Group information > Members)
- Ban the non-owner member that you added to the group
- Validate that the banned member is no longer displayed in the members table
- Validate that
Banned
members tab appears and the banned user is included in the table
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Eugie Limpin