debian-mirror-gitlab/app/controllers/admin/health_check_controller.rb

13 lines
430 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
class Admin::HealthCheckController < Admin::ApplicationController
def show
2017-08-17 22:00:37 +05:30
@errors = HealthCheck::Utils.process_checks(['standard'])
2017-09-10 17:25:29 +05:30
@failing_storage_statuses = Gitlab::Git::Storage::Health.for_failing_storages
end
def reset_storage_health
2018-03-17 18:26:18 +05:30
Gitlab::Git::Storage::FailureInfo.reset_all!
2017-09-10 17:25:29 +05:30
redirect_to admin_health_check_path,
notice: _('Git storage health information has been reset')
2016-06-02 11:05:42 +05:30
end
end