Commit d7a8e142 authored by Francisco Javier López's avatar Francisco Javier López

Merge branch '369-editor-team-thresholds' into 'master'

Update Editor team endpoint custom thresholds

See merge request gitlab-org/gitlab!72681
parents 0a170ec0 1446203f
...@@ -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