diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2019-05-27 09:35:36 +0000 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2019-05-27 09:35:36 +0000 |
commit | f9a2c4034f690e4ab9803522110c063d78da8f4d (patch) | |
tree | ee54960bc5a600de474a11ac73bac2354327b56b /lib | |
parent | 15837ed92721f700d2a34b949e1147dff9b78dca (diff) | |
parent | 1b1a960bf3e86d946f24ecb5de5b2f011c0d3846 (diff) | |
download | gitlab-ce-f9a2c4034f690e4ab9803522110c063d78da8f4d.tar.gz |
Merge branch 'chore/remove-circuit-breaker-api' into 'master'
Remove the circuit breaker API
Closes #52467
See merge request gitlab-org/gitlab-ce!28669
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/api.rb | 1 | ||||
-rw-r--r-- | lib/api/circuit_breakers.rb | 39 |
2 files changed, 0 insertions, 40 deletions
diff --git a/lib/api/api.rb b/lib/api/api.rb index f4a96b9711b..20f8c637274 100644 --- a/lib/api/api.rb +++ b/lib/api/api.rb @@ -98,7 +98,6 @@ module API mount ::API::Boards mount ::API::Branches mount ::API::BroadcastMessages - mount ::API::CircuitBreakers mount ::API::Commits mount ::API::CommitStatuses mount ::API::ContainerRegistry diff --git a/lib/api/circuit_breakers.rb b/lib/api/circuit_breakers.rb deleted file mode 100644 index da756daadcc..00000000000 --- a/lib/api/circuit_breakers.rb +++ /dev/null @@ -1,39 +0,0 @@ -# frozen_string_literal: true - -module API - class CircuitBreakers < Grape::API - before { authenticated_as_admin! } - - resource :circuit_breakers do - params do - requires :type, - type: String, - desc: "The type of circuitbreaker", - values: ['repository_storage'] - end - resource ':type' do - namespace '', requirements: { type: 'repository_storage' } do - desc 'Get all git storages' do - detail 'This feature was introduced in GitLab 9.5' - end - get do - present [] - end - - desc 'Get all failing git storages' do - detail 'This feature was introduced in GitLab 9.5' - end - get 'failing' do - present [] - end - - desc 'Reset all storage failures and open circuitbreaker' do - detail 'This feature was introduced in GitLab 9.5' - end - delete do - end - end - end - end - end -end |