Commit 2786d418 authored by Ryan Cobb's avatar Ryan Cobb

Add clarifying comment

parent 32b711f9
...@@ -51,7 +51,7 @@ module EE ...@@ -51,7 +51,7 @@ module EE
end end
def metrics_dashboard def metrics_dashboard
project_for_dashboard = defined?(project) ? project : nil 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)
respond_to do |format| respond_to do |format|
......
...@@ -31,7 +31,7 @@ describe Metrics::Dashboard::ClusterDashboardService, :use_clean_rails_memory_st ...@@ -31,7 +31,7 @@ describe Metrics::Dashboard::ClusterDashboardService, :use_clean_rails_memory_st
context 'when called with a non-system dashboard' do context 'when called with a non-system dashboard' do
let(:dashboard_path) { 'garbage/dashboard/path' } let(:dashboard_path) { 'garbage/dashboard/path' }
# We want to alwaus return the cluster dashboard. # We want to always return the cluster dashboard.
it_behaves_like 'valid dashboard service response' it_behaves_like 'valid dashboard service response'
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment