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
f0035f89
Commit
f0035f89
authored
Feb 15, 2017
by
Douwe Maan
Committed by
Felipe Artur
Feb 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'zj-remove-deprecated-ci-service' into 'master'
Remove deprecated CI service Closes #28094 See merge request !9221
parent
84bffd61
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
10 deletions
+21
-10
gitlab_ci_service.rb
app/models/project_services/gitlab_ci_service.rb
+0
-8
service.rb
app/models/service.rb
+1
-1
zj-remove-deprecated-ci-service.yml
changelogs/unreleased/zj-remove-deprecated-ci-service.yml
+4
-0
20170214111112_delete_deprecated_gitlab_ci_service.rb
...ate/20170214111112_delete_deprecated_gitlab_ci_service.rb
+15
-0
schema.rb
db/schema.rb
+1
-1
No files found.
app/models/project_services/gitlab_ci_service.rb
deleted
100644 → 0
View file @
84bffd61
# TODO(ayufan): The GitLabCiService is deprecated and the type should be removed when the database entries are removed
class
GitlabCiService
<
CiService
# We override the active accessor to always make GitLabCiService disabled
# Otherwise the GitLabCiService can be picked, but should never be since it's deprecated
def
active
false
end
end
app/models/service.rb
View file @
f0035f89
...
...
@@ -27,7 +27,7 @@ class Service < ActiveRecord::Base
validates
:project_id
,
presence:
true
,
unless:
Proc
.
new
{
|
service
|
service
.
template?
}
scope
:visible
,
->
{
where
.
not
(
type:
[
'GitlabIssueTrackerService'
,
'GitlabCiService'
]
)
}
scope
:visible
,
->
{
where
.
not
(
type:
'GitlabIssueTrackerService'
)
}
scope
:issue_trackers
,
->
{
where
(
category:
'issue_tracker'
)
}
scope
:external_wikis
,
->
{
where
(
type:
'ExternalWikiService'
).
active
}
scope
:active
,
->
{
where
(
active:
true
)
}
...
...
changelogs/unreleased/zj-remove-deprecated-ci-service.yml
0 → 100644
View file @
f0035f89
---
title
:
Remove deprecated GitlabCiService
merge_request
:
author
:
db/post_migrate/20170214111112_delete_deprecated_gitlab_ci_service.rb
0 → 100644
View file @
f0035f89
class
DeleteDeprecatedGitlabCiService
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
disable_statement_timeout
execute
(
"DELETE FROM services WHERE type = 'GitlabCiService';"
)
end
def
down
# noop
end
end
db/schema.rb
View file @
f0035f89
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2017021
007592
2
)
do
ActiveRecord
::
Schema
.
define
(
version:
2017021
411111
2
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
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