Merge lp:~bac/launchpad/bug-154587 into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Brad Crittenden on 2010-09-02 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 11492 | ||||
| Proposed branch: | lp:~bac/launchpad/bug-154587 | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
314 lines (+163/-20) 5 files modified
lib/lp/registry/browser/person.py (+15/-5) lib/lp/registry/browser/tests/test_person_view.py (+90/-1) lib/lp/registry/interfaces/teammembership.py (+7/-6) lib/lp/registry/stories/teammembership/xx-add-member.txt (+8/-8) lib/lp/registry/tests/test_add_member.py (+43/-0) |
||||
| To merge this branch: | bzr merge lp:~bac/launchpad/bug-154587 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michael Nelson (community) | code | 2010-09-02 | Approve on 2010-09-02 |
|
Review via email:
|
|||
Commit Message
Catch CyclicalTeamMem
Description of the Change
= Summary =
The problem reported in bug 154587 no longer exists as written. When
cycles in team membership are about to be introduced they are detected
and an appropriate error is raised, rather than spiraling down to the
database.
Unfortunately that error was not caught in the UI so the user still
experiences an OOPS.
== Proposed fix ==
Catch the error and display an appropriate message.
== Pre-implementation notes ==
None.
== Implementation details ==
As above.
== Tests ==
bin/test -vvm lp.registry -t xx-add-member.txt -t test_add_member
== Demo and Q/A ==
Follow the scenario listed in the bug, though it is somewhat difficult
given our sampledata.
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
| Brad Crittenden (bac) wrote : | # |
Thanks Michael. I'll look at moving it out of the story to the view test...which probably would be more appropriate.

Thanks for all the tidying up too Brad.
This looks great, and I've approved it, but out of interest, was wondering if there was a reason why you added to the doctest rather than putting this in lp.registry. browser. tests.test_ person_ view?
Thanks!