Merge lp:~adeuring/launchpad/bug-675595 into lp:launchpad
Proposed by
Abel Deuring
Status: | Merged |
---|---|
Approved by: | Graham Binns |
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 | Approve | |
Review via email: mp+41595@code.launchpad.net |
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.