Merge lp:~deryck/launchpad/adapt-badges-listing-item-901122 into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Deryck Hodge | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 14889 | ||||
Proposed branch: | lp:~deryck/launchpad/adapt-badges-listing-item-901122 | ||||
Merge into: | lp:launchpad | ||||
Prerequisite: | lp:~deryck/launchpad/preload-tags-for-buglistings-901122 | ||||
Diff against target: |
50 lines (+28/-1) 2 files modified
lib/lp/bugs/browser/bugtask.py (+1/-1) lib/lp/bugs/browser/tests/test_bugtask.py (+27/-0) |
||||
To merge this branch: | bzr merge lp:~deryck/launchpad/adapt-badges-listing-item-901122 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Kowalik (community) | code | Approve | |
Review via email: mp+95063@code.launchpad.net |
Commit message
Ensure bug listing code adapts badges for display via BugTaskListingI
Description of the change
This is the second and final branch in getting the new bug data we added in custom buglistings loading with less queries. This is a simple one line fix with a lot of power. There's already a class to ensure we don't issue too many queries when getting badges. See lp.app.
This fix is magical. It brings us back down to pre-custom buglistings query levels +2. But the +2 is consistent no matter the data size, and are attributed to cached queries to get tags and reporter name.
lifeless suggested I add a scaling test in the pre-req branch for this one, which I'll gladly add into this branch before considering the work done.
Excellent work! I will echo Robert's suggestion of a query counting test, too.