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
765038c7
Commit
765038c7
authored
Sep 10, 2019
by
Ryan Cobb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for rubocop
parent
62b52a46
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/app/controllers/ee/clusters/clusters_controller.rb
ee/app/controllers/ee/clusters/clusters_controller.rb
+1
-1
ee/app/controllers/ee/groups/clusters_controller.rb
ee/app/controllers/ee/groups/clusters_controller.rb
+1
-1
No files found.
ee/app/controllers/ee/clusters/clusters_controller.rb
View file @
765038c7
...
@@ -49,7 +49,7 @@ module EE
...
@@ -49,7 +49,7 @@ module EE
)
)
end
end
end
end
def
metrics_dashboard
def
metrics_dashboard
project_for_dashboard
=
defined?
(
project
)
?
project
:
nil
# Project is not defined for group and admin level clusters
project_for_dashboard
=
defined?
(
project
)
?
project
:
nil
# Project is not defined for group and admin level clusters
dashboard
=
::
Gitlab
::
Metrics
::
Dashboard
::
Finder
.
find
(
project_for_dashboard
,
current_user
,
metrics_dashboard_params
)
dashboard
=
::
Gitlab
::
Metrics
::
Dashboard
::
Finder
.
find
(
project_for_dashboard
,
current_user
,
metrics_dashboard_params
)
...
...
ee/app/controllers/ee/groups/clusters_controller.rb
View file @
765038c7
...
@@ -25,7 +25,7 @@ module EE
...
@@ -25,7 +25,7 @@ module EE
.
with_pagination
(
request
,
response
)
.
with_pagination
(
request
,
response
)
.
represent
(
environments
)
.
represent
(
environments
)
end
end
def
metrics_dashboard_params
def
metrics_dashboard_params
{
{
cluster:
cluster
,
cluster:
cluster
,
...
...
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