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
2ad9b532
Commit
2ad9b532
authored
Jan 16, 2020
by
Alper Akgun
Committed by
Bob Van Landuyt
Jan 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add trial counters to usage ping
parent
5567b773
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
ee/changelogs/unreleased/119082-add-trial-counters-to-usage-ping.yml
...gs/unreleased/119082-add-trial-counters-to-usage-ping.yml
+5
-0
ee/lib/ee/gitlab/usage_data.rb
ee/lib/ee/gitlab/usage_data.rb
+1
-0
ee/spec/lib/gitlab/usage_data_spec.rb
ee/spec/lib/gitlab/usage_data_spec.rb
+2
-0
No files found.
ee/changelogs/unreleased/119082-add-trial-counters-to-usage-ping.yml
0 → 100644
View file @
2ad9b532
---
title
:
Add trial counters to usage ping
merge_request
:
22279
author
:
type
:
added
ee/lib/ee/gitlab/usage_data.rb
View file @
2ad9b532
...
...
@@ -32,6 +32,7 @@ module EE
def
features_usage_data_ee
{
elasticsearch_enabled:
::
Gitlab
::
CurrentSettings
.
elasticsearch_search?
,
license_trial_ends_on:
License
.
trial_ends_on
,
geo_enabled:
::
Gitlab
::
Geo
.
enabled?
}
end
...
...
ee/spec/lib/gitlab/usage_data_spec.rb
View file @
2ad9b532
...
...
@@ -56,6 +56,7 @@ describe Gitlab::UsageData do
license_id
elasticsearch_enabled
geo_enabled
license_trial_ends_on
)
)
end
...
...
@@ -133,6 +134,7 @@ describe Gitlab::UsageData do
it
'gathers feature usage data of EE'
do
expect
(
subject
[
:elasticsearch_enabled
]).
to
eq
(
Gitlab
::
CurrentSettings
.
elasticsearch_search?
)
expect
(
subject
[
:geo_enabled
]).
to
eq
(
Gitlab
::
Geo
.
enabled?
)
expect
(
subject
[
:license_trial_ends_on
]).
to
eq
(
License
.
trial_ends_on
)
end
end
...
...
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