Commit 4da9f27e authored by Nick Thomas's avatar Nick Thomas

Add deprecated API throttling settings to admin area

We need to be able to change these settings
parent 9d10ef96
......@@ -49,6 +49,18 @@
.settings-content
= render partial: 'network_rate_limits', locals: { anchor: 'js-files-limits-settings', setting_fragment: 'files_api' }
%section.settings.as-deprecated-limits.no-animate#js-deprecated-limits-settings{ class: ('expanded' if expanded_by_default?) }
.settings-header
%h4
= _('Deprecated API rate limits')
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
= expanded_by_default? ? _('Collapse') : _('Expand')
%p
= _('Configure specific limits for deprecated API requests that supersede the general user and IP rate limits.')
= link_to _('Which API requests are affected?'), help_page_path('user/admin_area/settings/deprecated_api_rate_limits.md'), target: '_blank', rel: 'noopener noreferrer'
.settings-content
= render partial: 'network_rate_limits', locals: { anchor: 'js-deprecated-limits-settings', setting_fragment: 'deprecated_api' }
%section.settings.as-git-lfs-limits.no-animate#js-git-lfs-limits-settings{ class: ('expanded' if expanded_by_default?), data: { qa_selector: 'git_lfs_limits_content' } }
.settings-header
%h4
......
......@@ -8602,6 +8602,9 @@ msgstr ""
msgid "Configure specific limits for Git LFS requests that supersede the general user and IP rate limits."
msgstr ""
msgid "Configure specific limits for deprecated API requests that supersede the general user and IP rate limits."
msgstr ""
msgid "Configure the %{link} integration."
msgstr ""
......@@ -11412,6 +11415,9 @@ msgstr ""
msgid "Deployment|success"
msgstr ""
msgid "Deprecated API rate limits"
msgstr ""
msgid "Deprioritize label"
msgstr ""
......@@ -38129,6 +38135,9 @@ msgstr ""
msgid "When:"
msgstr ""
msgid "Which API requests are affected?"
msgstr ""
msgid "While it's rare to have no vulnerabilities, it can happen. In any event, we ask that you please double check your settings to make sure you've set up your dashboard correctly."
msgstr ""
......
......@@ -644,6 +644,13 @@ RSpec.describe 'Admin updates settings' do
include_examples 'regular throttle rate limit settings'
end
context 'Deprecated API rate limits' do
let(:selector) { 'as-deprecated-limits' }
let(:fragment) { :deprecated_api }
include_examples 'regular throttle rate limit settings'
end
end
context 'Preferences page' do
......
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