summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-02-05 10:04:43 +0000
committerRémy Coutable <remy@rymai.me>2018-02-05 10:04:43 +0000
commit4d64524b0dc26dadc58a01a1696d2198a05e21ee (patch)
tree930429bd79aee23ea3199c9fd146b83551ebdec4 /lib/api/projects.rb
parent9f5537304bf30bbe7430cc0290df3acea035a428 (diff)
parentcca61980d5ad9c4db65b9498fe49d936657bc0e2 (diff)
downloadgitlab-ce-4d64524b0dc26dadc58a01a1696d2198a05e21ee.tar.gz
Merge branch 'query-counts' into 'master'
Track and act upon the number of executed SQL queries See merge request gitlab-org/gitlab-ce!16466
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 8b5e4f8edcc..5b481121a10 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -210,6 +210,8 @@ module API
optional :namespace, type: String, desc: 'The ID or name of the namespace that the project will be forked into'
end
post ':id/fork' do
+ Gitlab::QueryLimiting.whitelist('https://gitlab.com/gitlab-org/gitlab-ce/issues/42284')
+
fork_params = declared_params(include_missing: false)
namespace_id = fork_params[:namespace]