Merge lp:~allenap/launchpad/series-init-failure-explanations-bug-835024 into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Gavin Panella | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 13907 | ||||
Proposed branch: | lp:~allenap/launchpad/series-init-failure-explanations-bug-835024 | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
132 lines (+44/-7) 3 files modified
database/schema/security.cfg (+1/-1) lib/lp/soyuz/model/initializedistroseriesjob.py (+22/-1) lib/lp/soyuz/tests/test_initializedistroseriesjob.py (+21/-5) |
||||
To merge this branch: | bzr merge lp:~allenap/launchpad/series-init-failure-explanations-bug-835024 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+74800@code.launchpad.net |
Commit message
[r=bac][bug=835024] New error_description property on InitializeDistr
Description of the change
This adds an error_description property to
InitializeDistr
so is meant to be persistent. It is populated by the overridden
notifyUserError() method so that the error can be saved even after the
job's transaction is aborted; see BaseJobRunner.
for the mechanism.
I've also switched to using the new JSON property from Storm instead
of the _json_data/metadata hackette. This uncovered a bad test -
test__repr__ for InitializeDistr
Pre-implementation discussion with bigjools. There is a follow-up
branch already in progress to make error_description appear in the UI.
Looks good Gavin.
s/slso/also