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
63168fa3
Commit
63168fa3
authored
Jan 17, 2020
by
Alex Ives
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add clusters application usage ping for Jupyter
Relates to
https://gitlab.com/gitlab-org/gitlab/issues/35714
parent
905a48b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
lib/gitlab/usage_data.rb
lib/gitlab/usage_data.rb
+1
-0
spec/lib/gitlab/usage_data_spec.rb
spec/lib/gitlab/usage_data_spec.rb
+3
-0
No files found.
lib/gitlab/usage_data.rb
View file @
63168fa3
...
...
@@ -78,6 +78,7 @@ module Gitlab
clusters_applications_runner:
count
(
::
Clusters
::
Applications
::
Runner
.
available
),
clusters_applications_knative:
count
(
::
Clusters
::
Applications
::
Knative
.
available
),
clusters_applications_elastic_stack:
count
(
::
Clusters
::
Applications
::
ElasticStack
.
available
),
clusters_applications_jupyter:
count
(
::
Clusters
::
Applications
::
Jupyter
.
available
),
in_review_folder:
count
(
::
Environment
.
in_review_folder
),
grafana_integrated_projects:
count
(
GrafanaIntegration
.
enabled
),
groups:
count
(
Group
),
...
...
spec/lib/gitlab/usage_data_spec.rb
View file @
63168fa3
...
...
@@ -49,6 +49,7 @@ describe Gitlab::UsageData do
create
(
:clusters_applications_runner
,
:installed
,
cluster:
gcp_cluster
)
create
(
:clusters_applications_knative
,
:installed
,
cluster:
gcp_cluster
)
create
(
:clusters_applications_elastic_stack
,
:installed
,
cluster:
gcp_cluster
)
create
(
:clusters_applications_jupyter
,
:installed
,
cluster:
gcp_cluster
)
create
(
:grafana_integration
,
project:
projects
[
0
],
enabled:
true
)
create
(
:grafana_integration
,
project:
projects
[
1
],
enabled:
true
)
...
...
@@ -149,6 +150,7 @@ describe Gitlab::UsageData do
clusters_applications_runner
clusters_applications_knative
clusters_applications_elastic_stack
clusters_applications_jupyter
in_review_folder
grafana_integrated_projects
groups
...
...
@@ -242,6 +244,7 @@ describe Gitlab::UsageData do
expect
(
count_data
[
:clusters_applications_knative
]).
to
eq
(
1
)
expect
(
count_data
[
:clusters_applications_elastic_stack
]).
to
eq
(
1
)
expect
(
count_data
[
:grafana_integrated_projects
]).
to
eq
(
2
)
expect
(
count_data
[
:clusters_applications_jupyter
]).
to
eq
(
1
)
end
it
'works when queries time out'
do
...
...
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