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
0666261e
Commit
0666261e
authored
Dec 29, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add trial info to usage ping
parent
e73aaf45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-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
-0
No files found.
lib/gitlab/usage_data.rb
View file @
0666261e
...
...
@@ -41,6 +41,7 @@ module Gitlab
usage_data
[
:license_expires_at
]
=
license
.
expires_at
usage_data
[
:license_plan
]
=
license
.
plan
usage_data
[
:license_add_ons
]
=
license
.
add_ons
usage_data
[
:license_trial
]
=
license
.
trial?
end
usage_data
...
...
spec/lib/gitlab/usage_data_spec.rb
View file @
0666261e
...
...
@@ -27,6 +27,7 @@ describe Gitlab::UsageData do
license_expires_at
license_starts_at
license_user_count
license_trial
licensee
license_md5
recorded_at
...
...
@@ -167,6 +168,7 @@ describe Gitlab::UsageData do
expect
(
subject
[
:license_starts_at
]).
to
eq
(
license
.
starts_at
)
expect
(
subject
[
:license_expires_at
]).
to
eq
(
license
.
expires_at
)
expect
(
subject
[
:license_add_ons
]).
to
eq
(
license
.
add_ons
)
expect
(
subject
[
:license_trial
]).
to
eq
(
license
.
trial?
)
expect
(
subject
[
:recorded_at
]).
to
be_a
(
Time
)
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