Merge lp:~adeuring/launchpad/bug-675595 into lp:launchpad
Proposed by
Abel Deuring
on 2010-11-23
| Status: | Merged |
|---|---|
| Approved by: | Graham Binns on 2010-11-23 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11973 |
| Proposed branch: | lp:~adeuring/launchpad/bug-675595 |
| Merge into: | lp:launchpad |
| Diff against target: |
434 lines (+183/-22) 7 files modified
lib/lp/bugs/interfaces/bugtarget.py (+6/-3) lib/lp/bugs/interfaces/bugtask.py (+11/-7) lib/lp/bugs/model/bugtarget.py (+4/-4) lib/lp/bugs/model/bugtask.py (+10/-2) lib/lp/bugs/tests/test_bugtarget.py (+108/-1) lib/lp/bugs/tests/test_bugtask_search.py (+37/-2) lib/lp/registry/model/person.py (+7/-3) |
| To merge this branch: | bzr merge lp:~adeuring/launchpad/bug-675595 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Graham Binns (community) | code | 2010-11-23 | Approve on 2010-11-23 |
|
Review via email:
|
|||
Description of the Change
This branch is a first step to fix bug 675595:
BugTaskSet.
directly and retrieve the milestones with one SQL query instead of two.
It adds an optional parameter "prejoins" to BugTaskSet.search()
and to HasBugs.
BugTaskSet.search() already prejoined a number of tables in order to
reduce the total query count; in certain cases it makes sense to
prejoin other tables too.
tests:
./bin/test -vvt test_bugtarget -t test_bugtask_search
no lint
To post a comment you must log in.
review:
Approve
(code)
