Skip to content

Frontend for Git abuse rate limiting alerted users

What does this MR do and why?

This MR adds the frontend part for the alerted users feature for Git abuse rate limiting.

MR's for this feature (in order of dependency):

Issue: https://gitlab.com/gitlab-org/modelops/anti-abuse/team-tasks/-/issues/186+

Screenshots or screen recordings

Admin settings Group settings
Before Screenshot_2023-02-02_at_17.52.22 Screenshot_2023-02-02_at_17.52.57
After Screenshot_2023-02-02_at_17.53.54 Screenshot_2023-02-02_at_17.54.25

How to set up and validate locally

  1. Cherry pick all commits from the MR's mentioned in the description (alternatively, checkout the add-alerted-users-to-git-abuse-rate-limiting branch, which has them all)
  2. Enable the feature flag
    Feature.enable(:git_abuse_rate_limit_feature_flag)
  3. Visit the Git abuse rate limit admin settings: http://localhost:3000/admin/application_settings/reporting
  4. Add and/or remove users from Send notifications to field
  5. Click Save changes
  6. Create a top-level group
  7. Ensure you have an Ultimate plan in your GDK instance
  8. With the group you created, ensure that the licensed feature is available. You can do this in Rails console:
    > Group.find(<id_of_your_group>).feature_available?(:unique_project_download_limit)
    => true
  9. Visit the Git abuse rate limit group settings: http://localhost:3000/groups/${group_name}/-/settings/reporting
  10. Add and/or remove users from Send notifications to field
  11. Click Save changes

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Alex Buijs

Merge request reports

Loading