diff options
author | Simon Knox <psimyn@gmail.com> | 2018-01-16 23:29:13 +1100 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2018-01-16 23:29:13 +1100 |
commit | 5816a42ed20829968cf64b08fc2bd9c2c4768079 (patch) | |
tree | 825fd95ad2dad2ea304ab7154564cd0b919f85be /lib/api | |
parent | 81660bc35010307d472ea4283d6046661e22a1ca (diff) | |
parent | be353219d1eec05a7b04e9c2e94f61573889549d (diff) | |
download | gitlab-ce-41874-closed-todo.tar.gz |
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into 41874-closed-todo41874-closed-todo
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/circuit_breakers.rb | 4 | ||||
-rw-r--r-- | lib/api/helpers/common_helpers.rb | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/api/circuit_breakers.rb b/lib/api/circuit_breakers.rb index 598c76f6168..c13154dc0ec 100644 --- a/lib/api/circuit_breakers.rb +++ b/lib/api/circuit_breakers.rb @@ -17,11 +17,11 @@ module API end def storage_health - @failing_storage_health ||= Gitlab::Git::Storage::Health.for_all_storages + @storage_health ||= Gitlab::Git::Storage::Health.for_all_storages end end - desc 'Get all failing git storages' do + desc 'Get all git storages' do detail 'This feature was introduced in GitLab 9.5' success Entities::RepositoryStorageHealth end diff --git a/lib/api/helpers/common_helpers.rb b/lib/api/helpers/common_helpers.rb index 322624c6092..9993caa5249 100644 --- a/lib/api/helpers/common_helpers.rb +++ b/lib/api/helpers/common_helpers.rb @@ -3,8 +3,10 @@ module API module CommonHelpers def convert_parameters_from_legacy_format(params) params.tap do |params| - if params[:assignee_id].present? - params[:assignee_ids] = [params.delete(:assignee_id)] + assignee_id = params.delete(:assignee_id) + + if assignee_id.present? + params[:assignee_ids] = [assignee_id] end end end |