Merge lp:~bac/launchpad/bug-512408 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Aaron Bentley on 2010-03-01 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | not available |
| Proposed branch: | lp:~bac/launchpad/bug-512408 |
| Merge into: | lp:launchpad |
| Diff against target: |
655 lines (+429/-47) 11 files modified
lib/canonical/launchpad/testing/pages.py (+1/-12) lib/canonical/launchpad/testing/systemdocs.py (+13/-0) lib/lp/registry/browser/configure.zcml (+7/-4) lib/lp/registry/browser/product.py (+55/-0) lib/lp/registry/browser/tests/product-portlet-packages-view.txt (+174/-0) lib/lp/registry/browser/tests/product-views.txt (+75/-0) lib/lp/registry/model/distributionsourcepackage.py (+2/-1) lib/lp/registry/stories/packaging/xx-sourcepackage-packaging.txt (+3/-3) lib/lp/registry/stories/product/xx-product-index.txt (+33/-0) lib/lp/registry/templates/product-portlet-packages.pt (+65/-26) lib/lp/registry/tests/test_doc_product.py (+1/-1) |
| To merge this branch: | bzr merge lp:~bac/launchpad/bug-512408 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Curtis Hovey (community) | code + ui | Approve on 2010-03-01 | |
| Aaron Bentley (community) | 2010-03-01 | Approve on 2010-03-01 | |
|
Review via email:
|
|||
Commit Message
Project index page packaging portlet suggests which Ubuntu package it may be associated.
| Brad Crittenden (bac) wrote : | # |
| Curtis Hovey (sinzui) wrote : | # |
Hi Brad.
The UI looks and behaves well and I think it is good to land, but there is an implementation issue.
As we saw on IRC, The UI prompts me to create duplicate packaging links. The list of candiates is not filtering the packages that have packaging links. My test case was to create a link to lucid pmount from applets. When I registered pmount, I was prompted to link it to lucid pmount--which leads to a db constraint violation in db-devel and a NotOneError in devel when I vistit lucid pmount.
| Brad Crittenden (bac) wrote : | # |
Curtis I made the change you requested.
In the process of writing the tests I needed to use Barry's 'stop()' command but it was only available to page tests, not doc tests, so I did a quick drive-by to move it over.
| Curtis Hovey (sinzui) wrote : | # |
All this is lovely, unlike merge reviews which just ate my UI approve because I wanted to give you my code approve.

= Summary =
Change the packaging portlet on the product index page to suggest Ubuntu packages
that may be potential matches if the product is not currently linked.
== Proposed fix ==
Create a new view to query ubuntu. searchSourcePac kages and show the results in the
portlet.
== Pre-implementation notes ==
Chats with Curtis.
== Implementation details ==
As above.
== Tests ==
bin/test -vvm lp.registry -t product- portlet- packages- view.txt \ index.txt
-t xx-product-
== Demo and Q/A ==
In launchpad.dev create a product called pmount. Visit https:/ /launchpad. dev/pmount
and see that the pmount package in the sample data is suggested. Make the link and
then marvel that it is shown on the product's index page.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: registry/ browser/ configure. zcml registry/ stories/ packaging/ xx-sourcepackag e-packaging. txt registry/ browser/ product. py registry/ browser/ tests/product- views.txt registry/ browser/ tests/product- portlet- packages- view.txt registry/ templates/ product- portlet- packages. pt registry/ tests/test_ doc_product. py registry/ stories/ product/ xx-product- index.txt
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ registry/ browser/ product. py
59: [F0401] Unable to import 'lazr.delegates' (No module named delegates)