Skip to content

Make Git Abuse Settings form Vue component reusable

Eugie Limpin requested to merge reusable_git_abuse_settings_form_component into master

What does this MR do and why?

Related to https://gitlab.com/gitlab-org/modelops/anti-abuse/team-tasks/-/issues/38+

Update GitAbuseRateLimitSettingsForm Vue component to make it reusable. This is done by extracting the API call to update the settings and moving it to a container component. This allows us to reuse the form component to update the same settings for groups in SaaS.

How to set up and validate locally

  1. Make sure you have an instance-level GitLab Ultimate license
  2. Enable Feature.enable(:git_abuse_rate_limit_feature_flag) in the rails console.
  3. Visit Admin Area -> Settings -> Reporting (e.g. http://gdk.test:3000/admin/application_settings/reporting)
  4. Submit the form "Git abuse rate limit" and confirm the data is saved correctly

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 Miguel Rincon

Merge request reports

Loading