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