Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot 2022-10-07 06:09:36 +00:00
parent 26e0767a07
commit 8e656d0d45
4 changed files with 5 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class Projects::SnippetsController < Projects::Snippets::ApplicationController
before_action :authorize_read_snippet!, except: [:new, :index]
before_action :authorize_update_snippet!, only: :edit
urgency :low, [:index]
urgency :low, [:index, :show]
def index
@snippet_counts = ::Snippets::CountService

View File

@ -10,6 +10,8 @@ class Projects::WebIdeTerminalsController < Projects::ApplicationController
feature_category :web_ide
urgency :low, [:check_config]
def check_config
return respond_422 unless branch_sha

View File

@ -26,6 +26,7 @@
- code_quality
- code_review
- code_testing
- commerce_integrations
- compliance_management
- container_registry
- container_scanning

View File

@ -124,7 +124,7 @@ module API
use :update_file_params
use :minimum_update_params
end
put ':id' do
put ':id', urgency: :low do
authenticate!
snippet = snippets_for_current_user.find_by_id(params.delete(:id))