Merge lp:~julian-edwards/launchpad/die-buildqueue-die--bug-492632 into lp:launchpad
Proposed by
Julian Edwards
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | not available | ||||
Proposed branch: | lp:~julian-edwards/launchpad/die-buildqueue-die--bug-492632 | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
80 lines (+45/-0) 2 files modified
lib/lp/soyuz/model/buildqueue.py (+9/-0) lib/lp/soyuz/tests/test_build.py (+36/-0) |
||||
To merge this branch: | bzr merge lp:~julian-edwards/launchpad/die-buildqueue-die--bug-492632 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Björn Tillenius (community) | release-critical | Approve | |
Muharem Hrnjadovic (community) | Approve | ||
Review via email: mp+15927@code.launchpad.net |
To post a comment you must log in.
= Summary =
Make sure buildqueue rows are deleted properly
== Proposed fix ==
Last cycle the buildqueue record was refactored a bit and now it also has an
associated Job and BuildPackageJob.
This fix makes sure that the other two are deleted when destroySelf( ) is called.
buildqueue.
This is a tentative fix for https:/ /bugs.edge. launchpad. net/soyuz/ +bug/492632
since we don't really have a better idea right now.
== Pre-implementation notes ==
Does 4 days of investigative hacking count?
== Implementation details ==
I added a destroySelf() method to the content class which calls the SQLObject
method and deletes the other table rows at the same time.
== Tests == emoval
bin/test -cvvt testBuildqueueR
== Demo and Q/A ==
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: soyuz/tests/ test_build. py soyuz/model/ buildqueue. py
lib/lp/
lib/lp/