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
357a0d50
Commit
357a0d50
authored
Nov 08, 2019
by
Olena Horal-Koretska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address code review issue
parent
dbf33333
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
ee/app/helpers/ee/clusters_helper.rb
ee/app/helpers/ee/clusters_helper.rb
+11
-11
ee/spec/helpers/ee/clusters_helper_spec.rb
ee/spec/helpers/ee/clusters_helper_spec.rb
+12
-12
No files found.
ee/app/helpers/ee/clusters_helper.rb
View file @
357a0d50
...
...
@@ -15,17 +15,17 @@ module EE
def
cluster_health_data
(
cluster
)
{
'clusters-path'
=>
clusterable
.
index_path
,
'metrics-endpoint'
=>
clusterable
.
metrics_cluster_path
(
cluster
,
format: :json
),
'dashboard-endpoint'
=>
clusterable
.
metrics_dashboard_path
(
cluster
),
'documentation-path'
=>
help_page_path
(
'user/project/clusters/index'
,
anchor:
'monitoring-your-kubernetes-cluster-ultimate'
),
'empty-getting-started-svg-path'
=>
image_path
(
'illustrations/monitoring/getting_started.svg'
),
'empty-loading-svg-path'
=>
image_path
(
'illustrations/monitoring/loading.svg'
),
'empty-no-data-svg-path'
=>
image_path
(
'illustrations/monitoring/no_data.svg'
),
'empty-unable-to-connect-svg-path'
=>
image_path
(
'illustrations/monitoring/unable_to_connect.svg'
),
'settings-path'
=>
''
,
'project-path'
=>
''
,
'tags-path'
=>
''
'clusters-path'
:
clusterable
.
index_path
,
'metrics-endpoint'
:
clusterable
.
metrics_cluster_path
(
cluster
,
format: :json
),
'dashboard-endpoint'
:
clusterable
.
metrics_dashboard_path
(
cluster
),
'documentation-path'
:
help_page_path
(
'user/project/clusters/index'
,
anchor:
'monitoring-your-kubernetes-cluster-ultimate'
),
'empty-getting-started-svg-path'
:
image_path
(
'illustrations/monitoring/getting_started.svg'
),
'empty-loading-svg-path'
:
image_path
(
'illustrations/monitoring/loading.svg'
),
'empty-no-data-svg-path'
:
image_path
(
'illustrations/monitoring/no_data.svg'
),
'empty-unable-to-connect-svg-path'
:
image_path
(
'illustrations/monitoring/unable_to_connect.svg'
),
'settings-path'
:
''
,
'project-path'
:
''
,
'tags-path'
:
''
}
end
end
...
...
ee/spec/helpers/ee/clusters_helper_spec.rb
View file @
357a0d50
...
...
@@ -76,18 +76,18 @@ describe ClustersHelper do
it
do
is_expected
.
to
match
(
'clusters-path'
=>
clusterable_presenter
.
index_path
,
'metrics-endpoint'
=>
clusterable_presenter
.
metrics_cluster_path
(
cluster
,
format: :json
),
'dashboard-endpoint'
=>
clusterable_presenter
.
metrics_dashboard_path
(
cluster
),
'documentation-path'
=>
help_page_path
(
'user/project/clusters/index'
,
anchor:
'monitoring-your-kubernetes-cluster-ultimate'
),
'empty-getting-started-svg-path'
=>
match_asset_path
(
'/assets/illustrations/monitoring/getting_started.svg'
),
'empty-loading-svg-path'
=>
match_asset_path
(
'/assets/illustrations/monitoring/loading.svg'
),
'empty-no-data-svg-path'
=>
match_asset_path
(
'/assets/illustrations/monitoring/no_data.svg'
),
'empty-unable-to-connect-svg-path'
=>
match_asset_path
(
'/assets/illustrations/monitoring/unable_to_connect.svg'
),
'settings-path'
=>
''
,
'project-path'
=>
''
,
'tags-path'
=>
''
)
'clusters-path'
:
clusterable_presenter
.
index_path
,
'metrics-endpoint'
:
clusterable_presenter
.
metrics_cluster_path
(
cluster
,
format: :json
),
'dashboard-endpoint'
:
clusterable_presenter
.
metrics_dashboard_path
(
cluster
),
'documentation-path'
:
help_page_path
(
'user/project/clusters/index'
,
anchor:
'monitoring-your-kubernetes-cluster-ultimate'
),
'empty-getting-started-svg-path'
:
match_asset_path
(
'/assets/illustrations/monitoring/getting_started.svg'
),
'empty-loading-svg-path'
:
match_asset_path
(
'/assets/illustrations/monitoring/loading.svg'
),
'empty-no-data-svg-path'
:
match_asset_path
(
'/assets/illustrations/monitoring/no_data.svg'
),
'empty-unable-to-connect-svg-path'
:
match_asset_path
(
'/assets/illustrations/monitoring/unable_to_connect.svg'
),
'settings-path'
:
''
,
'project-path'
:
''
,
'tags-path'
:
''
)
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