Merge lp://staging/~bac/launchpad/bug-162754 into lp://staging/launchpad
Status: | Merged |
---|---|
Approved by: | Brad Crittenden |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11049 |
Proposed branch: | lp://staging/~bac/launchpad/bug-162754 |
Merge into: | lp://staging/launchpad |
Diff against target: |
602 lines (+267/-61) 9 files modified
lib/canonical/launchpad/pagetests/standalone/xx-form-layout.txt (+9/-1) lib/canonical/launchpad/templates/README (+0/-29) lib/canonical/launchpad/templates/launchpad-form.pt (+8/-1) lib/canonical/launchpad/webapp/tests/test_launchpadform.py (+5/-3) lib/lp/app/browser/tests/launchpadform-view.txt (+44/-0) lib/lp/registry/browser/product.py (+102/-19) lib/lp/registry/browser/tests/product-edit-people-view.txt (+51/-4) lib/lp/registry/stories/product/xx-product-add.txt (+48/-0) lib/lp/registry/stories/product/xx-product-driver.txt (+0/-4) |
To merge this branch: | bzr merge lp://staging/~bac/launchpad/bug-162754 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Matthew Revell (community) | text | Approve | |
Māris Fogels (community) | code | Approve | |
Review via email: mp+28227@code.staging.launchpad.net |
Commit message
Allow registrants to disclaim maintainer role of new projects and easily set the maintainer to Registry Administrators for existing projects.
Description of the change
= Summary =
Often Launchpad users will create a new project that corresponds to an
upstream in order to file a bug or perform some other action. They may
be only marginally interested in the project but are performing a
valuable service. Unfortunately since the person registered the project
they are assumed to be the maintainer and are forced into that role even
though they don't want it.
== Proposed fix ==
Provide a checkbox on project registration that allows the project to be
created but automatically re-assigned to the ~registry team.
Also on the +edit-people page a checkbox is provided to transfer the
maintainer role to ~registry.
== Pre-implementation notes ==
Chats with Curtis.
== Implementation details ==
As above.
In order to get the layout correct on the +edit-people page some
extensions needed to be added to the launchpad-form.pt. It now looks
for a widget attribute called 'widget_class' to use as the css class for
the widget.
== Tests ==
bin/test -vvt xx-product-add.txt -t xx-product-
-t product-
== Demo and Q/A ==
Create a new project and look for the new checkbox on the second page.
Go to https:/
the maintainer. Look for the new checkbox.
= 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/
lib/lp/
lib/lp/
lib/canonical
lib/lp/
lib/canonical
lib/lp/
== Pylint notices ==
lib/canonical/
57: [C0301] Line too long (79/78)
I'll fix this lint problem.
Hi Brad,
The code in this branch looks good. I have one question about the tests, and a few suggestions for the UI text.
For the lanchpadform- view.txt you test for presence of extra elements when the widget_class field is present. This is the positive case. Do you need to test for the absence of those same elements when the widget_field attribute is missing?
Regarding the UI text, I found that some of the long descriptions for the new options made it unclear if the flag means "I am not the maintainer of this project" or "I do not want this project to be maintained". Specifically I would reword "but you don't want to actually maintain" to be "but you do not want to be the maintainer of". This confusion appears in two of the long descriptions.
The concept and role of the "Registry Administrators" is new to the user. I think that the short and long description during project creation does a good job of introducing this concept. However, I feel that the "Assign to Registry Administrators" control does not. Both controls result in the same outcome (the admins take over), but from a user's perspective the controls are completely different, mostly because both control's primary and secondary text share no similarity. To remedy this I suggest making all of the text for the two controls the same (or very very similar): "I do not want to maintain this project".
The code looks good, so I'm marking this as "Approved", but that is conditional upon a UI review from a certified reviewer, and a look at the text by mrevell.
Maris