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
0b3d4b62
Commit
0b3d4b62
authored
Sep 08, 2014
by
Drew Blessing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Complete serialization of service properties for EE
parent
9f93930f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
app/models/project_services/jenkins_service.rb
app/models/project_services/jenkins_service.rb
+3
-6
app/models/project_services/jira_service.rb
app/models/project_services/jira_service.rb
+4
-9
db/migrate/20140907223153_remove_columns_for_services.rb
db/migrate/20140907223153_remove_columns_for_services.rb
+8
-0
No files found.
app/models/project_services/jenkins_service.rb
View file @
0b3d4b62
...
...
@@ -5,19 +5,16 @@
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
# properties :text
#
class
JenkinsService
<
CiService
prop_accessor
:project_url
validates
:project_url
,
presence:
true
,
if: :activated?
delegate
:execute
,
to: :service_hook
,
prefix:
nil
...
...
app/models/project_services/jira_service.rb
View file @
0b3d4b62
...
...
@@ -5,23 +5,18 @@
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
# username :string(255)
# password :string(255)
# api_version :string(255)
# properties :text
#
class
JiraService
<
Service
include
HTTParty
prop_accessor
:project_url
,
:username
,
:password
,
:api_version
,
:jira_issue_transition_id
validates
:username
,
:password
,
presence:
true
,
if: :activated?
before_validation
:set_api_version
...
...
db/migrate/20140907223153_remove_columns_for_services.rb
0 → 100644
View file @
0b3d4b62
class
RemoveColumnsForServices
<
ActiveRecord
::
Migration
def
change
remove_column
:services
,
:username
,
:string
remove_column
:services
,
:password
,
:string
remove_column
:services
,
:jira_issue_transition_id
,
:string
remove_column
:services
,
:api_version
,
:string
end
end
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