2019-02-15 15:39:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Groups::ClustersController < Clusters::ClustersController
|
|
|
|
include ControllerWithCrossProjectAccessCheck
|
|
|
|
|
|
|
|
prepend_before_action :group
|
|
|
|
requires_cross_project_access
|
|
|
|
|
|
|
|
layout 'group'
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def clusterable
|
|
|
|
@clusterable ||= ClusterablePresenter.fabricate(group, current_user: current_user)
|
|
|
|
end
|
|
|
|
|
|
|
|
def group
|
2021-11-11 11:23:49 +05:30
|
|
|
@group ||= find_routable!(Group, params[:group_id] || params[:id], request.fullpath)
|
2019-02-15 15:39:39 +05:30
|
|
|
end
|
2019-12-04 20:38:33 +05:30
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
def metrics_dashboard_params
|
|
|
|
{
|
|
|
|
cluster: cluster,
|
|
|
|
cluster_type: :group,
|
|
|
|
group: group
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|