Merge lp://staging/~wgrant/launchpad/transitionToTarget-series-sourcepackage into lp://staging/launchpad

Proposed by William Grant
Status: Merged
Approved by: Curtis Hovey
Approved revision: no longer in the source branch.
Merged at revision: 13531
Proposed branch: lp://staging/~wgrant/launchpad/transitionToTarget-series-sourcepackage
Merge into: lp://staging/launchpad
Prerequisite: lp://staging/~wgrant/launchpad/sensible-validate_target
Diff against target: 56 lines (+21/-9)
2 files modified
lib/lp/bugs/model/bugtask.py (+17/-9)
lib/lp/bugs/model/tests/test_bugtask.py (+4/-0)
To merge this branch: bzr merge lp://staging/~wgrant/launchpad/transitionToTarget-series-sourcepackage
Reviewer Review Type Date Requested Status
Curtis Hovey (community) code Approve
Review via email: mp+69191@code.staging.launchpad.net

Commit message

Fix BugTask.transitionToTarget to permit DistroSeries<->SourcePackage transitions, where the series matches.

Description of the change

Quick change to allow BugTask.transitionToTarget between DistroSeries and SourcePackage tasks, as long as the series matches. Needed to allow clearing a SourcePackage task's SourcePackageName in the UI, which is presently permitted.

These rules suck, but this is refactoring rather than redefining.

To post a comment you must log in.
Revision history for this message
Curtis Hovey (sinzui) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.