Merge lp:~wgrant/launchpad/bug-1500576 into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Merged at revision: | 17770 | ||||
| Proposed branch: | lp:~wgrant/launchpad/bug-1500576 | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
149 lines (+60/-4) 4 files modified
lib/lp/_schema_circular_imports.py (+1/-1) lib/lp/code/interfaces/branch.py (+6/-2) lib/lp/code/model/branch.py (+5/-0) lib/lp/code/tests/test_branch_webservice.py (+48/-1) |
||||
| To merge this branch: | bzr merge lp:~wgrant/launchpad/bug-1500576 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Colin Watson | 2015-09-29 | Approve on 2015-09-29 | |
|
Review via email:
|
|||
Commit Message
Precache branch permissions in Branch.
Description of the Change
Fix (or at least markedly reduce) API timeouts of Branch.
There are three queries per MP left over, but they're comparatively few and cheap. A test is in place to ensure it doesn't regress past those.
landing_targets and dependent_branches could arguably use the same treatment, but they're very rarely used and almost always just a couple of entries long.
