Add admin settings for Pages domain rate limits

What does this MR do and why?

Add admin settings for Pages domain rate limits

Admins need to tune the Pages domain create and verify limits for their instance before the pages_domain_rate_limits flag is removed.

Refer to MR 3: Admin settings in the issue for further details.

https://gitlab.com/gitlab-org/gitlab/-/work_items/635642

Review note:

May have conflicts if !269478 (merged) merges first. This should only take a rebase to resolve.

Frontend review notes

This MR adds two admin rate limit fields (Pages domain create and verify) to Admin > Settings > Network. There is no JavaScript or Vue. The frontend-relevant changes are HAML only:

  • app/views/admin/application_settings/_pages_domain_limits.html.haml (new): form with two number fields and a Save changes button.
  • app/views/admin/application_settings/network.html.haml: renders a Pages domain rate limits SettingsBlockComponent, behind the pages_domain_rate_limits flag.
  • locale/gitlab.pot: new AdminSettings| strings.

Please check the form markup, field labels, and settings block usage.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #635642

Edited by Richard Chan

Merge request reports

Loading
Loading