Commit 1446203f authored by David O'Regan's avatar David O'Regan

Update Editor team endpoint thresholds

Set a low urgency for a selection
of the editor team endpoints as
per our new custom threshold guidelines.
parent 1ba710a9
......@@ -3,6 +3,8 @@
class Projects::WikisController < Projects::ApplicationController
include WikiActions
urgency :low
alias_method :container, :project
before_action do
......
......@@ -3,6 +3,8 @@
class Groups::WikisController < Groups::ApplicationController
include WikiActions
urgency :low
alias_method :container, :group
feature_category :wiki
......
......@@ -43,7 +43,7 @@ module API
params do
use :pagination
end
get 'public' do
get 'public', urgency: :low do
authenticate!
present paginate(public_snippets), with: Entities::PersonalSnippet, current_user: current_user
......
......@@ -32,7 +32,7 @@ module API
params do
optional :with_content, type: Boolean, default: false, desc: "Include pages' content"
end
get ':id/wikis' do
get ':id/wikis', urgency: :low do
authorize! :read_wiki, container
entity = params[:with_content] ? Entities::WikiPage : Entities::WikiPageBasic
......
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