Merge lp:~edwin-grubbs/launchpad/bug-534462-project-index-timeout into lp:launchpad
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Brad Crittenden on 2010-03-09 | ||||||||
| Approved revision: | no longer in the source branch. | ||||||||
| Merged at revision: | not available | ||||||||
| Proposed branch: | lp:~edwin-grubbs/launchpad/bug-534462-project-index-timeout | ||||||||
| Merge into: | lp:launchpad | ||||||||
| Diff against target: |
246 lines (+72/-35) 7 files modified
lib/lp/registry/browser/product.py (+3/-4) lib/lp/registry/doc/distribution.txt (+17/-0) lib/lp/registry/interfaces/distribution.py (+8/-3) lib/lp/registry/model/distribution.py (+23/-7) lib/lp/registry/model/distributionsourcepackage.py (+14/-8) lib/lp/registry/stories/product/xx-product-index.txt (+1/-1) lib/lp/registry/templates/product-portlet-packages.pt (+6/-12) |
||||||||
| To merge this branch: | bzr merge lp:~edwin-grubbs/launchpad/bug-534462-project-index-timeout | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | code | 2010-03-09 | Approve on 2010-03-09 |
|
Review via email:
|
|||
Commit Message
Fixed timeout on gcc project index page due to the Packages in Ubuntu portlet.
Description of the Change
Summary
-------
Fixed timeout issue caused by the "Packages in Ubuntu" portlet
on the project index page. I also made DistroSourcePac
more efficient, even though that is no longer needed by the view,
since searchSourcePac
Implementation details
-------
Added has_packaging parameter to searchSourcePac
do not have to check whether the package has an upstream_product.
lib/
lib/
lib/
lib/
Optimized DistroSourcePac
lib/
The portlet would either have the title "Packages in Ubuntu" or
"Packages in distributions" depending on the content, which didn't
really make sense, so now there is a single title.
lib/
lib/
Tests
-----
./bin/test -vv -t 'doc/distributi
Demo and Q/A
------------
On launchpad.dev:
* Open http://
* Remove all the linked packages.
* Open http://
* The "Packages in Ubuntu" portlet should show
the mozilla-firefox sourcepackage and a button
to link to it. (If it doesn't show up, try
running cronscripts/
On edge:
* Open https:/
* This should not timeout.
