Merge lp:~lifeless/launchpad/soyuz into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Stuart Bishop on 2010-11-10 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 11899 | ||||
| Proposed branch: | lp:~lifeless/launchpad/soyuz | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
373 lines (+140/-61) 6 files modified
lib/lp/registry/model/distroseries.py (+3/-4) lib/lp/soyuz/adapters/archivesourcepublication.py (+28/-12) lib/lp/soyuz/browser/tests/test_archive_packages.py (+86/-1) lib/lp/soyuz/interfaces/publishing.py (+2/-14) lib/lp/soyuz/interfaces/sourcepackagerelease.py (+1/-0) lib/lp/soyuz/model/publishing.py (+20/-30) |
||||
| To merge this branch: | bzr merge lp:~lifeless/launchpad/soyuz | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Stuart Bishop | Approve on 2010-11-10 | ||
| Steve Kowalik (community) | code* | 2010-11-10 | Needs Fixing on 2010-11-10 |
|
Review via email:
|
|||
Commit Message
[r=stub][ui=none][bug=672371] Sanify ppa/+packages to have constant query counts as source packages are added.
Description of the Change
Fix scaling of ppa/+packages to be flat with source packages, distro series and binary packages. I'm not completely confident in the binary package angle as the page is driven by source packages - but its better than nothing.
The key change here is to move an adapter lookup into an eager loaded dataset - the older code which was a problem previously was exacerbated by the underlying changes made to optimise getBuildStatusS
| Robert Collins (lifeless) wrote : | # |
On Wed, Nov 10, 2010 at 6:17 PM, Steve Kowalik <email address hidden> wrote:
> Review: Needs Fixing code*
> Hi,
>
> With in your test, you look to make a PPA, and then 5 lines later, make a different PPA, but assigned to the same variable, and *then* you make a 3rd PPA assigned to the same variable. This is confusing.
It should be two. Doh. Deleting the spurious one.
> You also set a baseline variable, and then immediately after comment about getting the baseline, which makes no sense.
I'll s/Get/Assess/
> How did you arrive at the numbers of 42 and 26 for the baseline? They smell like magic numbers to me.
They are magic numbers. They are they measured numbers that the page takes.
-Rob
| Stuart Bishop (stub) wrote : | # |
In the name of the senate and peoples of Rome.

Hi,
With in your test, you look to make a PPA, and then 5 lines later, make a different PPA, but assigned to the same variable, and *then* you make a 3rd PPA assigned to the same variable. This is confusing.
You also set a baseline variable, and then immediately after comment about getting the baseline, which makes no sense.
How did you arrive at the numbers of 42 and 26 for the baseline? They smell like magic numbers to me.