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
05c6c63a
Commit
05c6c63a
authored
Apr 03, 2020
by
alinamihaila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move clusters counters to batch counting
Move clusters_applications_cert_managers to batch counting
parent
7ebbf830
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
ee/changelogs/unreleased/212962-cluster-distinct_by_user-to-move-to-batch-counting-cert-manager.yml
...stinct_by_user-to-move-to-batch-counting-cert-manager.yml
+5
-0
ee/lib/ee/gitlab/usage_data.rb
ee/lib/ee/gitlab/usage_data.rb
+1
-1
No files found.
ee/changelogs/unreleased/212962-cluster-distinct_by_user-to-move-to-batch-counting-cert-manager.yml
0 → 100644
View file @
05c6c63a
---
title
:
Move Clusters Application CertManager to batch counting
merge_request
:
28771
author
:
type
:
performance
ee/lib/ee/gitlab/usage_data.rb
View file @
05c6c63a
...
...
@@ -199,7 +199,7 @@ module EE
# rubocop:disable CodeReuse/ActiveRecord
def
usage_activity_by_stage_configure
(
time_period
)
{
clusters_applications_cert_managers:
::
Clusters
::
Applications
::
CertManager
.
where
(
time_period
).
distinct_by_user
,
clusters_applications_cert_managers:
distinct_count
(
::
Clusters
::
Applications
::
CertManager
.
where
(
time_period
).
available
.
joins
(
:cluster
),
'clusters.user_id'
)
,
clusters_applications_helm:
::
Clusters
::
Applications
::
Helm
.
where
(
time_period
).
distinct_by_user
,
clusters_applications_ingress:
::
Clusters
::
Applications
::
Ingress
.
where
(
time_period
).
distinct_by_user
,
clusters_applications_knative:
::
Clusters
::
Applications
::
Knative
.
where
(
time_period
).
distinct_by_user
,
...
...
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