BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
c00e5bfa
Commit
c00e5bfa
authored
Jun 27, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zj-review-apps-usage-data' into 'master'
Add review apps to usage ping Closes #33171 See merge request !12185
parents
89f7f98e
e7d12a70
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
0 deletions
+7
-0
environment.rb
app/models/environment.rb
+1
-0
zj-review-apps-usage-data.yml
changelogs/unreleased/zj-review-apps-usage-data.yml
+4
-0
usage_data.rb
lib/gitlab/usage_data.rb
+1
-0
usage_data_spec.rb
spec/lib/gitlab/usage_data_spec.rb
+1
-0
No files found.
app/models/environment.rb
View file @
c00e5bfa
...
...
@@ -45,6 +45,7 @@ class Environment < ActiveRecord::Base
.
to_sql
order
(
Gitlab
::
Database
.
nulls_first_order
(
"(
#{
max_deployment_id_sql
}
)"
,
'ASC'
))
end
scope
:in_review_folder
,
->
{
where
(
environment_type:
"review"
)
}
state_machine
:state
,
initial: :available
do
event
:start
do
...
...
changelogs/unreleased/zj-review-apps-usage-data.yml
0 → 100644
View file @
c00e5bfa
---
title
:
Add review apps to usage metrics
merge_request
:
12185
author
:
lib/gitlab/usage_data.rb
View file @
c00e5bfa
...
...
@@ -27,6 +27,7 @@ module Gitlab
deploy_keys:
DeployKey
.
count
,
deployments:
Deployment
.
count
,
environments:
Environment
.
count
,
in_review_folder:
Environment
.
in_review_folder
.
count
,
groups:
Group
.
count
,
issues:
Issue
.
count
,
keys:
Key
.
count
,
...
...
spec/lib/gitlab/usage_data_spec.rb
View file @
c00e5bfa
...
...
@@ -37,6 +37,7 @@ describe Gitlab::UsageData do
deploy_keys
deployments
environments
in_review_folder
groups
issues
keys
...
...
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