Skip to content

Commit

Permalink
[api] publish merged patchinfos into incidents
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Mar 16, 2012
1 parent afe0e51 commit 33e7531
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/api/app/helpers/maintenance_helper.rb
Expand Up @@ -83,6 +83,7 @@ def merge_into_maintenance_incident(incidentProject, base, releaseproject=nil, r
if pkg.db_package_kinds.find_by_kind 'patchinfo'
new_pkg = incidentProject.db_packages.create(:name => pkg.name, :title => pkg.title, :description => pkg.description)
new_pkg.flags.create(:status => "enable", :flag => "build")
new_pkg.flags.create(:status => "enable", :flag => "publish") unless incidentProject.flags.find_by_flag_and_status( 'access', 'disable' )
new_pkg.store

# use specified release project if defined
Expand Down
1 change: 1 addition & 0 deletions src/api/test/functional/maintenance_test.rb
Expand Up @@ -591,6 +591,7 @@ def test_mbranch_and_maintenance_entire_project_request
get "/source/#{incidentProject}/patchinfo/_meta"
assert_response :success
assert_tag( :tag => "enable", :parent => {:tag => "build"} )
assert_tag( :tag => "enable", :parent => {:tag => "publish"} )
end

def test_create_maintenance_incident
Expand Down

0 comments on commit 33e7531

Please sign in to comment.