Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
26e0767a07
commit
8e656d0d45
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
- code_quality
|
||||
- code_review
|
||||
- code_testing
|
||||
- commerce_integrations
|
||||
- compliance_management
|
||||
- container_registry
|
||||
- container_scanning
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue