Commit 1f87d001 authored by Marcel Amirault's avatar Marcel Amirault Committed by Enrique Alcántara

Settings UI text - Admin Area-Network/Notes Rate Limits

parent 1ec37548
...@@ -3,10 +3,13 @@ ...@@ -3,10 +3,13 @@
%fieldset %fieldset
.form-group .form-group
= f.label :notes_create_limit, _('Max requests per minute per user'), class: 'label-bold' = f.label :notes_create_limit, _('Maximum requests per minute'), class: 'label-bold'
= f.number_field :notes_create_limit, class: 'form-control gl-form-input' = f.number_field :notes_create_limit, class: 'form-control gl-form-input'
.form-group .form-group
= f.label :notes_create_limit_allowlist, _('List of users to be excluded from the limit'), class: 'label-bold' = f.label :notes_create_limit_allowlist, _('Users to exclude from the rate limit'), class: 'label-bold'
= f.text_area :notes_create_limit_allowlist_raw, placeholder: 'username1, username2', class: 'form-control gl-form-input', rows: 5 = f.text_area :notes_create_limit_allowlist_raw, placeholder: 'username1, username2', class: 'form-control gl-form-input', rows: 5
.form-text.text-muted
= _('Comma-separated list of users allowed to exceed the rate limit.')
= f.submit _('Save changes'), class: "gl-button btn btn-confirm", data: { qa_selector: 'save_changes_button' } = f.submit _('Save changes'), class: "gl-button btn btn-confirm", data: { qa_selector: 'save_changes_button' }
...@@ -99,11 +99,12 @@ ...@@ -99,11 +99,12 @@
%section.settings.as-note-limits.no-animate#js-note-limits-settings{ class: ('expanded' if expanded_by_default?) } %section.settings.as-note-limits.no-animate#js-note-limits-settings{ class: ('expanded' if expanded_by_default?) }
.settings-header .settings-header
%h4 %h4
= _('Notes Rate Limits') = _('Notes rate limit')
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } %button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
= expanded_by_default? ? _('Collapse') : _('Expand') = expanded_by_default? ? _('Collapse') : _('Expand')
%p %p
= _('Configure limit for notes created per minute by web and API requests.') = _('Set the per-user rate limit for notes created by web or API requests.')
= link_to _('Learn more.'), help_page_path('user/admin_area/settings/rate_limit_on_notes_creation.md'), target: '_blank', rel: 'noopener noreferrer'
.settings-content .settings-content
= render 'note_limits' = render 'note_limits'
......
...@@ -9,15 +9,15 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -9,15 +9,15 @@ info: To determine the technical writer assigned to the Stage/Group associated w
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53637) in GitLab 13.9. > [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53637) in GitLab 13.9.
This setting allows you to rate limit the requests to the note creation endpoint. You can configure the per-user rate limit for requests to the note creation endpoint.
To change the note creation rate limit: To change the note creation rate limit:
1. On the top bar, select **Menu > Admin**. 1. On the top bar, select **Menu > Admin**.
1. On the left sidebar, select **Settings > Network**. 1. On the left sidebar, select **Settings > Network**.
1. Expand **Notes Rate Limits**. 1. Expand **Notes rate limit**.
1. Under **Max requests per minute per user**, enter the new value. 1. In the **Maximum requests per minute** box, enter the new value.
1. Optional. Under **List of users to be excluded from the limit**, list users to be excluded from the limit. 1. Optional. In the **Users to exclude from the rate limit** box, list users allowed to exceed the limit.
1. Select **Save changes**. 1. Select **Save changes**.
This limit is: This limit is:
......
...@@ -8152,6 +8152,9 @@ msgstr "" ...@@ -8152,6 +8152,9 @@ msgstr ""
msgid "Comma-separated list of email addresses." msgid "Comma-separated list of email addresses."
msgstr "" msgstr ""
msgid "Comma-separated list of users allowed to exceed the rate limit."
msgstr ""
msgid "Comma-separated, e.g. '1.1.1.1, 2.2.2.0/24'" msgid "Comma-separated, e.g. '1.1.1.1, 2.2.2.0/24'"
msgstr "" msgstr ""
...@@ -8514,9 +8517,6 @@ msgstr "" ...@@ -8514,9 +8517,6 @@ msgstr ""
msgid "Configure existing installation" msgid "Configure existing installation"
msgstr "" msgstr ""
msgid "Configure limit for notes created per minute by web and API requests."
msgstr ""
msgid "Configure limits for web and API requests." msgid "Configure limits for web and API requests."
msgstr "" msgstr ""
...@@ -20249,9 +20249,6 @@ msgstr "" ...@@ -20249,9 +20249,6 @@ msgstr ""
msgid "List of all merge commits" msgid "List of all merge commits"
msgstr "" msgstr ""
msgid "List of users to be excluded from the limit"
msgstr ""
msgid "List options" msgid "List options"
msgstr "" msgstr ""
...@@ -20669,9 +20666,6 @@ msgstr "" ...@@ -20669,9 +20666,6 @@ msgstr ""
msgid "Max file size is 200 KB." msgid "Max file size is 200 KB."
msgstr "" msgstr ""
msgid "Max requests per minute per user"
msgstr ""
msgid "Max role" msgid "Max role"
msgstr "" msgstr ""
...@@ -20831,6 +20825,9 @@ msgstr "" ...@@ -20831,6 +20825,9 @@ msgstr ""
msgid "Maximum push size (MB)" msgid "Maximum push size (MB)"
msgstr "" msgstr ""
msgid "Maximum requests per minute"
msgstr ""
msgid "Maximum running slices" msgid "Maximum running slices"
msgstr "" msgstr ""
...@@ -22992,7 +22989,7 @@ msgstr "" ...@@ -22992,7 +22989,7 @@ msgstr ""
msgid "NoteForm|Note" msgid "NoteForm|Note"
msgstr "" msgstr ""
msgid "Notes Rate Limits" msgid "Notes rate limit"
msgstr "" msgstr ""
msgid "Notes|Are you sure you want to cancel creating this comment?" msgid "Notes|Are you sure you want to cancel creating this comment?"
...@@ -30700,6 +30697,9 @@ msgstr "" ...@@ -30700,6 +30697,9 @@ msgstr ""
msgid "Set the milestone to %{milestone_reference}." msgid "Set the milestone to %{milestone_reference}."
msgstr "" msgstr ""
msgid "Set the per-user rate limit for notes created by web or API requests."
msgstr ""
msgid "Set the timeout in seconds to send a secondary site status to the primary and IPs allowed for the secondary sites." msgid "Set the timeout in seconds to send a secondary site status to the primary and IPs allowed for the secondary sites."
msgstr "" msgstr ""
...@@ -36881,6 +36881,9 @@ msgstr "" ...@@ -36881,6 +36881,9 @@ msgstr ""
msgid "Users requesting access to" msgid "Users requesting access to"
msgstr "" msgstr ""
msgid "Users to exclude from the rate limit"
msgstr ""
msgid "Users were successfully added." msgid "Users were successfully added."
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment