Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ca594d2d
Commit
ca594d2d
authored
Dec 17, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract EE code from Admin::HealthCheckController
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
1aab689d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
3 deletions
+30
-3
app/controllers/admin/health_check_controller.rb
app/controllers/admin/health_check_controller.rb
+8
-3
ee/app/controllers/ee/admin/health_check_controller.rb
ee/app/controllers/ee/admin/health_check_controller.rb
+22
-0
No files found.
app/controllers/admin/health_check_controller.rb
View file @
ca594d2d
...
...
@@ -2,9 +2,14 @@
class
Admin::HealthCheckController
<
Admin
::
ApplicationController
def
show
checks
=
[
'standard'
]
checks
<<
'geo'
if
Gitlab
::
Geo
.
secondary?
@errors
=
HealthCheck
::
Utils
.
process_checks
(
checks
)
end
private
def
checks
[
'standard'
]
end
end
Admin
::
HealthCheckController
.
prepend
(
EE
::
Admin
::
HealthCheckController
)
ee/app/controllers/ee/admin/health_check_controller.rb
0 → 100644
View file @
ca594d2d
# frozen_string_literal: true
module
EE
module
Admin
module
HealthCheckController
extend
::
Gitlab
::
Utils
::
Override
include
::
Gitlab
::
Utils
::
StrongMemoize
private
override
:checks
def
checks
strong_memoize
(
:checks
)
do
base_checks
=
super
base_checks
<<
'geo'
if
::
Gitlab
::
Geo
.
secondary?
base_checks
end
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment