Merge lp://staging/~wgrant/launchpad/retarget-bugtask-model into lp://staging/launchpad
Status: | Merged |
---|---|
Approved by: | William Grant |
Approved revision: | no longer in the source branch. |
Merged at revision: | 13494 |
Proposed branch: | lp://staging/~wgrant/launchpad/retarget-bugtask-model |
Merge into: | lp://staging/launchpad |
Prerequisite: | lp://staging/~wgrant/launchpad/destroy-bugtask-markers |
Diff against target: |
445 lines (+257/-58) 5 files modified
lib/lp/bugs/model/bugtask.py (+61/-23) lib/lp/bugs/model/tests/test_bugtask.py (+194/-1) lib/lp/bugs/scripts/bugtasktargetnamecaches.py (+2/-2) lib/lp/bugs/stories/webservice/xx-bug.txt (+0/-31) lib/lp/bugs/tests/test_bugnotification.py (+0/-1) |
To merge this branch: | bzr merge lp://staging/~wgrant/launchpad/retarget-bugtask-model |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Kowalik (community) | code | Approve | |
Review via email: mp+68761@code.staging.launchpad.net |
Commit message
[r=stevenk][bug=80902][incr] Allow BugTask.
Description of the change
This branch extends BugTask.
transitionToTarget now uses a new bug_target_to_key function, which converts an IBugTarget to a dict of column values. This is the inverse of the existing determine_target, which has been renamed to bug_target_
I've added tests for the various cases. There are only three that are disallowed now: transition to or from a productseries; transition to or from a distroseries; and transition to or from a sourcepackage, except where it is to or from another sourcepackage in the same distroseries. Transitioning between series is forbidden, as that's what nominations are for.