Commit a3e1d355 authored by Matthias Käppler's avatar Matthias Käppler

Merge branch 'lm-set-low-urgency-endpoints' into 'master'

Sets low urgency for PA endpoints

See merge request gitlab-org/gitlab!83511
parents 7baedac6 33f6b9b6
...@@ -146,7 +146,7 @@ module API ...@@ -146,7 +146,7 @@ module API
use :pagination use :pagination
end end
get ':id/pipelines/:pipeline_id/bridges', feature_category: :pipeline_authoring do get ':id/pipelines/:pipeline_id/bridges', urgency: :low, feature_category: :pipeline_authoring do
authorize!(:read_build, user_project) authorize!(:read_build, user_project)
pipeline = user_project.all_pipelines.find(params[:pipeline_id]) pipeline = user_project.all_pipelines.find(params[:pipeline_id])
......
...@@ -23,7 +23,7 @@ module API ...@@ -23,7 +23,7 @@ module API
params do params do
use :pagination use :pagination
end end
get ':id/variables' do get ':id/variables', urgency: :low do
variables = user_project.variables variables = user_project.variables
present paginate(variables), with: Entities::Ci::Variable present paginate(variables), with: Entities::Ci::Variable
end end
......
...@@ -21,7 +21,7 @@ module API ...@@ -21,7 +21,7 @@ module API
optional :include_merged_yaml, type: Boolean, desc: 'Whether or not to include merged CI config yaml in the response' optional :include_merged_yaml, type: Boolean, desc: 'Whether or not to include merged CI config yaml in the response'
optional :include_jobs, type: Boolean, desc: 'Whether or not to include CI jobs in the response' optional :include_jobs, type: Boolean, desc: 'Whether or not to include CI jobs in the response'
end end
post '/lint' do post '/lint', urgency: :low do
unauthorized! unless can_lint_ci? unauthorized! unless can_lint_ci?
result = Gitlab::Ci::Lint.new(project: nil, current_user: current_user) result = Gitlab::Ci::Lint.new(project: nil, current_user: current_user)
......
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