Merge lp:~stevenk/launchpad/builder-history-better-query into lp:launchpad
Proposed by
Steve Kowalik
on 2012-09-11
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Steve Kowalik on 2012-09-11 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 15934 | ||||
| Proposed branch: | lp:~stevenk/launchpad/builder-history-better-query | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
177 lines (+25/-72) 2 files modified
lib/lp/buildmaster/model/buildfarmjob.py (+22/-68) lib/lp/soyuz/browser/builder.py (+3/-4) |
||||
| To merge this branch: | bzr merge lp:~stevenk/launchpad/builder-history-better-query | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| William Grant | code | 2012-09-11 | Approve on 2012-09-11 |
|
Review via email:
|
|||
Commit Message
Rewrite the two (seperate) queries that are constructed by IBuildFarmJobSe
Description of the Change
Rewrite the two (seperate) queries that are constructed by IBuildFarmJobSe
Also switch BuilderHistoryView to making use of StormRangeFactory.
To post a comment you must log in.

126 + TeamParticipati on.teamID, TeamParticipati on.person == user),
127 + where=(
128 + distinct=True))))
DISTINCT isn't necessary here. There's a unique constraint which implies it.