Merge lp:~sinzui/launchpad/mailing-list-name-field into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Brad Crittenden on 2012-01-27 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 14732 | ||||
| Proposed branch: | lp:~sinzui/launchpad/mailing-list-name-field | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
423 lines (+151/-42) 5 files modified
lib/lp/registry/browser/configure.zcml (+6/-0) lib/lp/registry/browser/person.py (+20/-18) lib/lp/registry/browser/team.py (+7/-0) lib/lp/registry/browser/tests/test_person.py (+81/-17) lib/lp/registry/browser/tests/test_team.py (+37/-7) |
||||
| To merge this branch: | bzr merge lp:~sinzui/launchpad/mailing-list-name-field | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | code | 2012-01-27 | Approve on 2012-01-27 |
|
Review via email:
|
|||
Description of the Change
iDo not imply a team can be renamed when it has a mailing list.
Launchpad bug: https:/
Pre-
The field to rename was shown implying I could do the rename. The form
did not check that there was an mailing list. I was confused actually,
because the team page did not show an list. This list was being created
:(.
This is not an issue with the +edit page. I was using the +review page.
I think the two view need to share some code.
* +review implies I can change the name of a user with an active PPA...
PersonRen
* There are two options. A. subclass TeamEditView or
create a new class using TeamFormMixin, PersonRenameFor
-------
RULES
* Extract the rename tests from TestPersonEditView to a mixin.
* Add a testcase for PersonAdministe
* Update PersonAdministe
* Extract the rename tests from TestTeamEditView to a mixin.
* Add a test for for TeamAdministerView that uses the mixin.
* Create TeamAdministerView from PersonAdministe
not have standing.
QA
* Visit https:/
* Verify that the name field is not editable.
* Visit https:/
* Verify that the name field is not editable.
LINT
lib/
lib/
lib/
lib/
lib/
TEST
./bin/test -vv -t TestPersonEditView -t PersonAdministe
./bin/test -vvc -t TestTeamEditView -t TeamAdminisiter
IMPLEMENTATION
Updated PersonAdministe
common rename tests to a mixin and used it in both the edit and
administer test cases. I had to move PersonRenameFor
the diff. I modernised the setup of the mixing tests. I added tests about
which fields are visible to admins and registry_experts because I did not
see the rules verified in other browser tests.
lib/
lib/
Subclassed PersonAdministe
fields when looking at a team. Extracted the common rename tests to a mixin
and used it in both the edit and administer test cases.
lib/
lib/
lib/

Hi Curtis,
Thanks for fixing this bad UI.
This was my first encounter with checkRename(). I found it confusing that a return of None meant things were a-ok. Since your use is the only call site perhaps a brief comment?
typo: s/do no see/do not see/ (twice)
Otherwise it looks great.
--bac