Add users allow-list to git abuse rate limit settings (UI)
What does this MR do and why?
Resolves https://gitlab.com/gitlab-org/modelops/anti-abuse/team-tasks/-/issues/17
-
Create Vue form to let admins configure git abuse rate limits -> Number of Repositories, Reporting Time Period & Excluded Users (i.e. users allow-list)
-
Since, the users allow-list is a dynamic component, this MR also refactors the existing form from HAML to Vue. Subsequently, feature specs + view specs are updated.
Screenshots or screen recordings
How to set up and validate locally
- Enable the feature flag
git_abuse_rate_limit_feature_flag
& ensure you are on theUltimate
license
bundle exec rails c
> Feature.enable(:git_abuse_rate_limit_feature_flag)
- Sign in as admin
- Navigate to
http://localhost:3000/admin/application_settings/reporting
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 Hinam Mehra