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
0a3f398a
Commit
0a3f398a
authored
Jul 16, 2016
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename usage_ping URL to usage_data
parent
150aee0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/workers/gitlab_usage_ping_worker.rb
app/workers/gitlab_usage_ping_worker.rb
+3
-3
spec/workers/gitlab_usage_ping_worker_spec.rb
spec/workers/gitlab_usage_ping_worker_spec.rb
+1
-1
No files found.
app/workers/gitlab_usage_ping_worker.rb
View file @
0a3f398a
...
...
@@ -29,8 +29,8 @@ class GitlabUsagePingWorker
end
def
data
usage_data
=
{
version:
Gitlab
::
VERSION
}
usage_data
[
:active_users
]
=
current_active_user_count
usage_data
=
{
version:
Gitlab
::
VERSION
,
active_users:
current_active_user_count
}
license
=
License
.
current
if
license
...
...
@@ -48,6 +48,6 @@ class GitlabUsagePingWorker
end
def
url
'https://version.gitlab.com/usage_
ping
'
'https://version.gitlab.com/usage_
data
'
end
end
spec/workers/gitlab_usage_ping_worker_spec.rb
View file @
0a3f398a
...
...
@@ -22,7 +22,7 @@ describe GitlabUsagePingWorker do
it
"sends POST request"
do
stub_application_setting
(
usage_ping_enabled:
true
)
stub_request
(
:post
,
"https://version.gitlab.com/usage_
ping
"
).
stub_request
(
:post
,
"https://version.gitlab.com/usage_
data
"
).
to_return
(
status:
200
,
body:
''
,
headers:
{})
expect
(
subject
).
to
receive
(
:try_obtain_lease
).
and_return
(
true
)
...
...
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