Merge lp:~edwin-grubbs/launchpad/bug-526001-edit-packaging-oops into lp:launchpad
Proposed by
Edwin Grubbs
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Brad Crittenden | ||||
Approved revision: | not available | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~edwin-grubbs/launchpad/bug-526001-edit-packaging-oops | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
134 lines (+91/-9) 2 files modified
lib/lp/registry/browser/sourcepackage.py (+16/-9) lib/lp/registry/tests/test_sourcepackage.py (+75/-0) |
||||
To merge this branch: | bzr merge lp:~edwin-grubbs/launchpad/bug-526001-edit-packaging-oops | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+19997@code.launchpad.net |
Commit message
Fix oops when changing the sourcepackage's productseries if the current series is obsolete.
To post a comment you must log in.
Summary
-------
Fix bug where an exception is raised if you try to change the
productseries for a sourcepackage, when the current productseries
is obsolete.
Implementation details ------- ------- -
-------
If the current context. productseries is not in the series_list variable,
add it. The code that converts the series_list into SimpleTerm objects
was moved below that if-statement.
Tests
-----
./bin/test -vv -t 'xx-distributio n-packages. txt|xx- also-affects- upstream- default- values. txt|sourcepacka ge-views. txt|xx- sourcepackage- packaging. txt'
Demo and Q/A
------------
* Open https:/ /launchpad. dev/ubuntu/ warty/+ source/ mozilla- firefox/ +edit-packaging /launchpad. dev/ubuntu/ warty/+ source/ mozilla- firefox/ +edit-packaging
* Set the product series.
* Open the productseries page that you used.
* Change the status to OBSOLETE.
* Open https:/
* The current project should already be entered, so just click "Continue".
* The obsolete series should show up as a radio button option
instead of raising an exception.