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
8c7ba769
Commit
8c7ba769
authored
Jun 04, 2020
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add usage data of whether instance has Auto DevOps enabled
parent
ab880c6a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
changelogs/unreleased/instance_auto_devops_enabled_usage_ping.yml
...gs/unreleased/instance_auto_devops_enabled_usage_ping.yml
+5
-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
+2
-1
No files found.
changelogs/unreleased/instance_auto_devops_enabled_usage_ping.yml
0 → 100644
View file @
8c7ba769
---
title
:
Add whether instance has Auto DevOps enabled to usage ping
merge_request
:
33811
author
:
type
:
changed
lib/gitlab/usage_data.rb
View file @
8c7ba769
...
...
@@ -181,6 +181,7 @@ module Gitlab
def
features_usage_data_ce
{
instance_auto_devops_enabled:
alt_usage_data
(
fallback:
nil
)
{
Gitlab
::
CurrentSettings
.
auto_devops_enabled?
},
container_registry_enabled:
alt_usage_data
(
fallback:
nil
)
{
Gitlab
.
config
.
registry
.
enabled
},
dependency_proxy_enabled:
Gitlab
.
config
.
try
(
:dependency_proxy
)
&
.
enabled
,
gitlab_shared_runners_enabled:
alt_usage_data
(
fallback:
nil
)
{
Gitlab
.
config
.
gitlab_ci
.
shared_runners_enabled
},
...
...
spec/lib/gitlab/usage_data_spec.rb
View file @
8c7ba769
...
...
@@ -211,7 +211,8 @@ describe Gitlab::UsageData, :aggregate_failures do
describe
'#features_usage_data_ce'
do
subject
{
described_class
.
features_usage_data_ce
}
it
'gathers feature usage data'
do
it
'gathers feature usage data'
,
:aggregate_failures
do
expect
(
subject
[
:instance_auto_devops_enabled
]).
to
eq
(
Gitlab
::
CurrentSettings
.
auto_devops_enabled?
)
expect
(
subject
[
:mattermost_enabled
]).
to
eq
(
Gitlab
.
config
.
mattermost
.
enabled
)
expect
(
subject
[
:signup_enabled
]).
to
eq
(
Gitlab
::
CurrentSettings
.
allow_signup?
)
expect
(
subject
[
:ldap_enabled
]).
to
eq
(
Gitlab
.
config
.
ldap
.
enabled
)
...
...
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