Merge lp:~twom/launchpad/precache-gitrepository-branch-queries into lp:launchpad
Proposed by
Tom Wardill
Status: | Merged |
---|---|
Merged at revision: | 18770 |
Proposed branch: | lp:~twom/launchpad/precache-gitrepository-branch-queries |
Merge into: | lp:launchpad |
Diff against target: |
58 lines (+6/-4) 3 files modified
lib/lp/code/browser/tests/test_branch.py (+2/-2) lib/lp/code/browser/tests/test_gitref.py (+2/-2) lib/lp/code/tests/helpers.py (+2/-0) |
To merge this branch: | bzr merge lp:~twom/launchpad/precache-gitrepository-branch-queries |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Review via email: mp+354470@code.launchpad.net |
Commit message
Fix tests broken by the change to a cachedproperty
Description of the change
BranchMergeProp
To post a comment you must log in.
I agree with your comment on IRC that it seems like you have too many calls to `clear_ property_ cache`, and I think that's because you're doing this slightly too far up the call stack. Try instead doing this in `make_merge_ proposal_ without_ reviewers` , though in a more targeted form: `del get_property_ cache(proposal) .votes` after removing the votes. Then try removing all your `clear_ property_ cache` calls and see which ones you really need after that.