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
e19827ab
Commit
e19827ab
authored
Sep 13, 2017
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zj-usage-data-auto-devops' into 'master'
Add usage ping for Auto DevOps Closes #37648 See merge request !14162
parents
3b215d05
74bf291c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
0 deletions
+16
-0
project_auto_devops.rb
app/models/project_auto_devops.rb
+3
-0
zj-usage-data-auto-devops.yml
changelogs/unreleased/zj-usage-data-auto-devops.yml
+5
-0
usage_data.rb
lib/gitlab/usage_data.rb
+4
-0
usage_data_spec.rb
spec/lib/gitlab/usage_data_spec.rb
+4
-0
No files found.
app/models/project_auto_devops.rb
View file @
e19827ab
class
ProjectAutoDevops
<
ActiveRecord
::
Base
belongs_to
:project
scope
:enabled
,
->
{
where
(
enabled:
true
)
}
scope
:disabled
,
->
{
where
(
enabled:
false
)
}
validates
:domain
,
allow_blank:
true
,
hostname:
{
allow_numeric_hostname:
true
}
def
variables
...
...
changelogs/unreleased/zj-usage-data-auto-devops.yml
0 → 100644
View file @
e19827ab
---
title
:
Add usage data for Auto DevOps
merge_request
:
author
:
type
:
other
lib/gitlab/usage_data.rb
View file @
e19827ab
...
...
@@ -22,9 +22,13 @@ module Gitlab
ci_builds:
::
Ci
::
Build
.
count
,
ci_internal_pipelines:
::
Ci
::
Pipeline
.
internal
.
count
,
ci_external_pipelines:
::
Ci
::
Pipeline
.
external
.
count
,
ci_pipeline_config_auto_devops:
::
Ci
::
Pipeline
.
auto_devops_source
.
count
,
ci_pipeline_config_repository:
::
Ci
::
Pipeline
.
repository_source
.
count
,
ci_runners:
::
Ci
::
Runner
.
count
,
ci_triggers:
::
Ci
::
Trigger
.
count
,
ci_pipeline_schedules:
::
Ci
::
PipelineSchedule
.
count
,
auto_devops_enabled:
::
ProjectAutoDevops
.
enabled
.
count
,
auto_devops_disabled:
::
ProjectAutoDevops
.
disabled
.
count
,
deploy_keys:
DeployKey
.
count
,
deployments:
Deployment
.
count
,
environments:
::
Environment
.
count
,
...
...
spec/lib/gitlab/usage_data_spec.rb
View file @
e19827ab
...
...
@@ -40,9 +40,13 @@ describe Gitlab::UsageData do
ci_builds
ci_internal_pipelines
ci_external_pipelines
ci_pipeline_config_auto_devops
ci_pipeline_config_repository
ci_runners
ci_triggers
ci_pipeline_schedules
auto_devops_enabled
auto_devops_disabled
deploy_keys
deployments
environments
...
...
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