Commit c778a90a authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch '212962-cluster-distinct_by_user-to-move-to-batch-counting-helm' into 'master'

Move Clusters::Application::Helm distinct_by_user to batch counting

See merge request gitlab-org/gitlab!28995
parents 858c3de9 c9293b28
---
title: Move Clusters Application Helm to batch counting
merge_request: 28995
author:
type: performance
......@@ -203,7 +203,7 @@ module EE
def usage_activity_by_stage_configure(time_period)
{
clusters_applications_cert_managers: clusters_user_distinct_count(::Clusters::Applications::CertManager, time_period),
clusters_applications_helm: ::Clusters::Applications::Helm.where(time_period).distinct_by_user,
clusters_applications_helm: clusters_user_distinct_count(::Clusters::Applications::Helm, time_period),
clusters_applications_ingress: clusters_user_distinct_count(::Clusters::Applications::Ingress, time_period),
clusters_applications_knative: clusters_user_distinct_count(::Clusters::Applications::Knative, time_period),
clusters_disabled: distinct_count(::Clusters::Cluster.disabled.where(time_period), :user_id),
......
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