Merge lp://qastaging/~edwin-grubbs/launchpad/bug-490659-series-timeout-part2 into lp://qastaging/launchpad/db-devel
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | no longer in the source branch. |
Merged at revision: | 9734 |
Proposed branch: | lp://qastaging/~edwin-grubbs/launchpad/bug-490659-series-timeout-part2 |
Merge into: | lp://qastaging/launchpad/db-devel |
Diff against target: |
288 lines (+120/-13) 10 files modified
lib/lp/registry/browser/distroseries.py (+4/-0) lib/lp/registry/browser/productseries.py (+6/-1) lib/lp/registry/browser/tests/test_series_views.py (+42/-4) lib/lp/registry/interfaces/product.py (+4/-1) lib/lp/registry/interfaces/productseries.py (+4/-1) lib/lp/registry/model/milestone.py (+5/-2) lib/lp/registry/model/productseries.py (+4/-1) lib/lp/registry/templates/productseries-milestone-table-row.pt (+1/-1) lib/lp/registry/templates/productseries-table-releases.pt (+6/-2) lib/lp/registry/tests/test_product.py (+44/-0) |
To merge this branch: | bzr merge lp://qastaging/~edwin-grubbs/launchpad/bug-490659-series-timeout-part2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | code | Approve | |
Review via email: mp+34159@code.qastaging.launchpad.net |
Description of the change
Summary
-------
This branch is dependent on the milestone_
was recently landed on db-devel. The milestones/releases for a series
are now batched. I also limited the number of milestones/releases
displayed in the timeline graph.
Implementation details
-------
Added batching:
lib/
lib/
lib/
lib/
lib/
lib/
Limited the number of milestones/releases displayed in the timeline
graph.
lib/
lib/
lib/
lib/
The cache TALes needs the third argument to ensure that it retrieves the
right cached value for a block in a loop.
lib/
Tests
-----
$ ./bin/test --list-tests -vv -t 'test_(
Demo and Q/A
------------
A meta-question; is batching here needed? I'm surprised we have enough
data that its a problem (or put another way, whats the scaling factors
at play here; how can we be sure batching will fix the issue).