Merge ~cjwatson/launchpad:faster-teams-vocab into launchpad:master
Proposed by
Colin Watson
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | 822f59a58c5c23d977b39835995b3d49f4abd73c |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:faster-teams-vocab |
Merge into: | launchpad:master |
Diff against target: |
237 lines (+73/-65) 4 files modified
lib/lp/registry/doc/vocabularies.txt (+0/-27) lib/lp/registry/tests/test_user_vocabularies.py (+45/-1) lib/lp/registry/vocabularies.py (+28/-28) lib/lp/registry/vocabularies.zcml (+0/-9) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thiago F. Pappacena (community) | Approve | ||
Review via email: mp+389909@code.launchpad.net |
Commit message
Optimise UserTeamsPartic
Description of the change
UserTeamsPartic
Optimise this in two ways: firstly, we can fetch fewer teams from the database to begin with; secondly, we can precache the permission check, since a user can always view teams they belong to.
To post a comment you must log in.
LGTM