Merge lp:~bac/launchpad/bug-524778-2 into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Eleanor Berger | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~bac/launchpad/bug-524778-2 | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
27 lines (+5/-5) 1 file modified
lib/lp/registry/interfaces/milestone.py (+5/-5) |
||||
To merge this branch: | bzr merge lp:~bac/launchpad/bug-524778-2 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eleanor Berger (community) | Approve | ||
Review via email: mp+24060@code.launchpad.net |
Commit message
Fix the export of Milestone delete to use @export_
Description of the change
= Summary =
The milestone 'destroySelf' method was exported as a write operation
which causes an unnecessary NotFound exception to be raised after the
successful deletion. It should've been exported as a destructor.
== Proposed fix ==
Change to use @export_
== Pre-implementation notes ==
Talks with Curtis, Leondard, and Francis.
== Implementation details ==
As above.
== Tests ==
There are currently no launchpadlib automated tests. The method can be
tested interactively using the following:
In [1]: from launchpadlib.
In [2]: lp = Launchpad.
In [3]: ff = lp.projects[
In [4]: ff.getMilestone
In [5]: series = ff.series[0]
In [6]: nm = series.
In [7]: ff.getMilestone
Out[7]: <milestone at
https:/
In [8]: nm._root.
In [9]: ff.getMilestone
== Demo and Q/A ==
As above against staging or edge.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files:
lib/lp/