diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-03-30 17:34:10 +0200 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-03-30 18:31:11 +0200 |
commit | b26913a30c608f81c44abece263da8d01faf0126 (patch) | |
tree | 9990096775ab7dfb5c8fe1066f90ca5856b4cdc7 /lib/gitlab/usage_data.rb | |
parent | f6fa84298282c78229e4028655cb87011372e2b2 (diff) | |
download | gitlab-ce-b26913a30c608f81c44abece263da8d01faf0126.tar.gz |
Extract cluster installed query to scope
Diffstat (limited to 'lib/gitlab/usage_data.rb')
-rw-r--r-- | lib/gitlab/usage_data.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb index 48decb4c8db..8c0a4d55ea2 100644 --- a/lib/gitlab/usage_data.rb +++ b/lib/gitlab/usage_data.rb @@ -51,7 +51,7 @@ module Gitlab clusters: ::Clusters::Cluster.count, clusters_enabled: ::Clusters::Cluster.enabled.count, clusters_disabled: ::Clusters::Cluster.disabled.count, - clusters_platforms_gke: ::Clusters::Cluster.gcp_provided.includes(:provider_gcp).where(cluster_providers_gcp: { status: ::Clusters::Providers::Gcp.state_machines[:status].states[:created].value }).enabled.count, + clusters_platforms_gke: ::Clusters::Cluster.gcp_installed.enabled.count, clusters_platforms_user: ::Clusters::Cluster.user_provided.enabled.count, clusters_applications_helm: ::Clusters::Applications::Helm.installed.count, clusters_applications_ingress: ::Clusters::Applications::Ingress.installed.count, |