Merge lp:~sinzui/launchpad/person-merge-job-3 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 12670 |
Proposed branch: | lp:~sinzui/launchpad/person-merge-job-3 |
Merge into: | lp:launchpad |
Diff against target: |
44 lines (+18/-5) 2 files modified
lib/lp/registry/model/person.py (+6/-5) lib/lp/registry/tests/test_person.py (+12/-0) |
To merge this branch: | bzr merge lp:~sinzui/launchpad/person-merge-job-3 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Review via email: mp+54961@code.launchpad.net |
Description of the change
Allow users to merge teams with purges lists.
Launchpad bug: https:/
Pre-
Test command: ./bin/test -vv -t TestPersonSetMerge
While testing the move the of merge team rules, I discovered there is a defect
in the original rules. There are about 30 teams with purged mailing lists that
will oops because the mailing list checking rules are including purges lists
in the active lists. I believe this one worked, but the checking rules were
altered to only look for deactivated lists because users cannot purge lists.
The affected teams were purged by ~registry or ~admins members. at the request
of users.
-------
RULES
* Update the mailing list guard in _purgeUnmergabl
to not raise an error if the mailing list is purged.
QA
* Visit https:/
* Choose Delete
* Verify the team is deleted.
LINT
lib/
lib/
IMPLEMENTATION
Added a test for a purges list. Updated the guard to only raise an error
if the list is not PURGED.
lib/
lib/
I am self-approving this because this is a one-line change + a test to prevent an false assertion.