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
5fa0c660
Commit
5fa0c660
authored
May 31, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
07a83845
9209736a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
5 deletions
+21
-5
app/models/project_auto_devops.rb
app/models/project_auto_devops.rb
+4
-2
changelogs/unreleased/56959-drop-project_auto_devops_domain.yml
...logs/unreleased/56959-drop-project_auto_devops_domain.yml
+5
-0
db/post_migrate/20190522143720_drop_project_auto_devops_domain.rb
...migrate/20190522143720_drop_project_auto_devops_domain.rb
+11
-0
db/schema.rb
db/schema.rb
+0
-1
spec/controllers/projects/settings/ci_cd_controller_spec.rb
spec/controllers/projects/settings/ci_cd_controller_spec.rb
+1
-1
spec/factories/project_auto_devops.rb
spec/factories/project_auto_devops.rb
+0
-1
No files found.
app/models/project_auto_devops.rb
View file @
5fa0c660
# frozen_string_literal: true
# frozen_string_literal: true
class
ProjectAutoDevops
<
ApplicationRecord
class
ProjectAutoDevops
<
ApplicationRecord
include
IgnorableColumn
ignore_column
:domain
belongs_to
:project
belongs_to
:project
enum
deploy_strategy:
{
enum
deploy_strategy:
{
...
@@ -12,8 +16,6 @@ class ProjectAutoDevops < ApplicationRecord
...
@@ -12,8 +16,6 @@ class ProjectAutoDevops < ApplicationRecord
scope
:enabled
,
->
{
where
(
enabled:
true
)
}
scope
:enabled
,
->
{
where
(
enabled:
true
)
}
scope
:disabled
,
->
{
where
(
enabled:
false
)
}
scope
:disabled
,
->
{
where
(
enabled:
false
)
}
validates
:domain
,
allow_blank:
true
,
hostname:
{
allow_numeric_hostname:
true
}
after_save
:create_gitlab_deploy_token
,
if: :needs_to_create_deploy_token?
after_save
:create_gitlab_deploy_token
,
if: :needs_to_create_deploy_token?
def
predefined_variables
def
predefined_variables
...
...
changelogs/unreleased/56959-drop-project_auto_devops_domain.yml
0 → 100644
View file @
5fa0c660
---
title
:
Removes project_auto_devops#domain column
merge_request
:
28574
author
:
type
:
other
db/post_migrate/20190522143720_drop_project_auto_devops_domain.rb
0 → 100644
View file @
5fa0c660
# frozen_string_literal: true
class
DropProjectAutoDevopsDomain
<
ActiveRecord
::
Migration
[
5.1
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
remove_column
:project_auto_devops
,
:domain
,
:string
end
end
db/schema.rb
View file @
5fa0c660
...
@@ -2341,7 +2341,6 @@ ActiveRecord::Schema.define(version: 20190528173628) do
...
@@ -2341,7 +2341,6 @@ ActiveRecord::Schema.define(version: 20190528173628) do
t
.
datetime_with_timezone
"created_at"
,
null:
false
t
.
datetime_with_timezone
"created_at"
,
null:
false
t
.
datetime_with_timezone
"updated_at"
,
null:
false
t
.
datetime_with_timezone
"updated_at"
,
null:
false
t
.
boolean
"enabled"
t
.
boolean
"enabled"
t
.
string
"domain"
t
.
integer
"deploy_strategy"
,
default:
0
,
null:
false
t
.
integer
"deploy_strategy"
,
default:
0
,
null:
false
t
.
index
[
"project_id"
],
name:
"index_project_auto_devops_on_project_id"
,
unique:
true
,
using: :btree
t
.
index
[
"project_id"
],
name:
"index_project_auto_devops_on_project_id"
,
unique:
true
,
using: :btree
end
end
...
...
spec/controllers/projects/settings/ci_cd_controller_spec.rb
View file @
5fa0c660
...
@@ -109,7 +109,7 @@ describe Projects::Settings::CiCdController do
...
@@ -109,7 +109,7 @@ describe Projects::Settings::CiCdController do
end
end
context
'when updating the auto_devops settings'
do
context
'when updating the auto_devops settings'
do
let
(
:params
)
{
{
auto_devops_attributes:
{
enabled:
''
,
domain:
'mepmep.md'
}
}
}
let
(
:params
)
{
{
auto_devops_attributes:
{
enabled:
''
}
}
}
context
'following the instance default'
do
context
'following the instance default'
do
let
(
:params
)
{
{
auto_devops_attributes:
{
enabled:
''
}
}
}
let
(
:params
)
{
{
auto_devops_attributes:
{
enabled:
''
}
}
}
...
...
spec/factories/project_auto_devops.rb
View file @
5fa0c660
...
@@ -2,7 +2,6 @@ FactoryBot.define do
...
@@ -2,7 +2,6 @@ FactoryBot.define do
factory
:project_auto_devops
do
factory
:project_auto_devops
do
project
project
enabled
true
enabled
true
domain
"example.com"
deploy_strategy
:continuous
deploy_strategy
:continuous
trait
:continuous_deployment
do
trait
:continuous_deployment
do
...
...
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