Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1f87d001
Commit
1f87d001
authored
Sep 13, 2021
by
Marcel Amirault
Committed by
Enrique Alcántara
Sep 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Settings UI text - Admin Area-Network/Notes Rate Limits
parent
1ec37548
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
18 deletions
+25
-18
app/views/admin/application_settings/_note_limits.html.haml
app/views/admin/application_settings/_note_limits.html.haml
+5
-2
app/views/admin/application_settings/network.html.haml
app/views/admin/application_settings/network.html.haml
+3
-2
doc/user/admin_area/settings/rate_limit_on_notes_creation.md
doc/user/admin_area/settings/rate_limit_on_notes_creation.md
+4
-4
locale/gitlab.pot
locale/gitlab.pot
+13
-10
No files found.
app/views/admin/application_settings/_note_limits.html.haml
View file @
1f87d001
...
...
@@ -3,10 +3,13 @@
%fieldset
.form-group
=
f
.
label
:notes_create_limit
,
_
(
'Max
requests per minute per user
'
),
class:
'label-bold'
=
f
.
label
:notes_create_limit
,
_
(
'Max
imum requests per minute
'
),
class:
'label-bold'
=
f
.
number_field
:notes_create_limit
,
class:
'form-control gl-form-input'
.form-group
=
f
.
label
:notes_create_limit_allowlist
,
_
(
'
List of users to be excluded from th
e limit'
),
class:
'label-bold'
=
f
.
label
:notes_create_limit_allowlist
,
_
(
'
Users to exclude from the rat
e limit'
),
class:
'label-bold'
=
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'
}
app/views/admin/application_settings/network.html.haml
View file @
1f87d001
...
...
@@ -99,11 +99,12 @@
%section
.settings.as-note-limits.no-animate
#js-note-limits-settings
{
class:
(
'expanded'
if
expanded_by_default?
)
}
.settings-header
%h4
=
_
(
'Notes
Rate Limits
'
)
=
_
(
'Notes
rate limit
'
)
%button
.btn.gl-button.btn-default.js-settings-toggle
{
type:
'button'
}
=
expanded_by_default?
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
%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
=
render
'note_limits'
...
...
doc/user/admin_area/settings/rate_limit_on_notes_creation.md
View file @
1f87d001
...
...
@@ -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.
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:
1.
On the top bar, select
**Menu > Admin**
.
1.
On the left sidebar, select
**Settings > Network**
.
1.
Expand
**Notes
Rate Limits
**
.
1.
Under
**Max requests per minute per user**
, 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.
Expand
**Notes
rate limit
**
.
1.
In the
**Maximum requests per minute**
box
, enter the new value.
1.
Optional.
In the
**Users to exclude from the rate limit**
box, list users allowed to exceed
the limit.
1.
Select
**Save changes**
.
This limit is:
...
...
locale/gitlab.pot
View file @
1f87d001
...
...
@@ -8152,6 +8152,9 @@ msgstr ""
msgid "Comma-separated list of email addresses."
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'"
msgstr ""
...
...
@@ -8514,9 +8517,6 @@ msgstr ""
msgid "Configure existing installation"
msgstr ""
msgid "Configure limit for notes created per minute by web and API requests."
msgstr ""
msgid "Configure limits for web and API requests."
msgstr ""
...
...
@@ -20249,9 +20249,6 @@ msgstr ""
msgid "List of all merge commits"
msgstr ""
msgid "List of users to be excluded from the limit"
msgstr ""
msgid "List options"
msgstr ""
...
...
@@ -20669,9 +20666,6 @@ msgstr ""
msgid "Max file size is 200 KB."
msgstr ""
msgid "Max requests per minute per user"
msgstr ""
msgid "Max role"
msgstr ""
...
...
@@ -20831,6 +20825,9 @@ msgstr ""
msgid "Maximum push size (MB)"
msgstr ""
msgid "Maximum requests per minute"
msgstr ""
msgid "Maximum running slices"
msgstr ""
...
...
@@ -22992,7 +22989,7 @@ msgstr ""
msgid "NoteForm|Note"
msgstr ""
msgid "Notes
Rate Limits
"
msgid "Notes
rate limit
"
msgstr ""
msgid "Notes|Are you sure you want to cancel creating this comment?"
...
...
@@ -30700,6 +30697,9 @@ msgstr ""
msgid "Set the milestone to %{milestone_reference}."
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."
msgstr ""
...
...
@@ -36881,6 +36881,9 @@ msgstr ""
msgid "Users requesting access to"
msgstr ""
msgid "Users to exclude from the rate limit"
msgstr ""
msgid "Users were successfully added."
msgstr ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment