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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
74bf291c
Commit
74bf291c
authored
Sep 12, 2017
by
Zeger-Jan van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add auto devops enabled/disabled to usage ping
parent
5c6f40ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
app/models/project_auto_devops.rb
app/models/project_auto_devops.rb
+3
-0
lib/gitlab/usage_data.rb
lib/gitlab/usage_data.rb
+2
-0
spec/lib/gitlab/usage_data_spec.rb
spec/lib/gitlab/usage_data_spec.rb
+2
-0
No files found.
app/models/project_auto_devops.rb
View file @
74bf291c
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
...
...
lib/gitlab/usage_data.rb
View file @
74bf291c
...
...
@@ -27,6 +27,8 @@ module Gitlab
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 @
74bf291c
...
...
@@ -45,6 +45,8 @@ describe Gitlab::UsageData do
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