Merge lp:~lifeless/launchpad/bug-736008 into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Robert Collins | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 12669 | ||||
Proposed branch: | lp:~lifeless/launchpad/bug-736008 | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
156 lines (+40/-47) 1 file modified
lib/lp/code/model/branchcollection.py (+40/-47) |
||||
To merge this branch: | bzr merge lp:~lifeless/launchpad/bug-736008 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins (community) | Approve | ||
Abel Deuring (community) | code | Approve | |
Review via email: mp+54820@code.launchpad.net |
Commit message
[r=adeuring][bug=736008] Change to a constrained join rather than a nested query for source branch select in branchmergeproposal lookups.
Description of the change
The query used to determine BranchMergeProp
I fluffed it and missed this change: code/model/ branchcollectio n.py' code/model/ branchcollectio n.py 2011-03-26 00:50:21 +0000 code/model/ branchcollectio n.py 2011-03-26 19:24:19 +0000
*self. _branch_ filter_ expressions) ),
Join( Target, Target. id==BranchMerge Proposal. target_ branchID) VisibilityExpre ssion() append( BranchMergeProp osal.source_ branchID. is_in( append( BranchMergeProp osal.target_ branchID. is_in( VisibilityExpre ssion(Target) ))) VisibilityExpre ssion() extend( self._getBranch VisibilityExpre ssion(Target) )
branch_ ids = [branch.id for branch in for_branches]
expressio ns.append(
=== modified file 'lib/lp/
--- lib/lp/
+++ lib/lp/
@@ -230,13 +230,8 @@
]
- expressions = []
- source_visible = self._getBranch
- if source_visible:
- expressions.
- Select(Branch.id, source_visible)))
- expressions.
- Select(Target.id, self._getBranch
+ expressions = self._getBranch
+ expressions.
if for_branches is not None:
The whole point of all the other changes in the branch was to be able to do this :(. I'm self reviewing this incremental step and landing.