Merge lp:~intellectronica/launchpad/patch-badge-performance into lp:launchpad/db-devel
Proposed by
Eleanor Berger
Status: | Merged |
---|---|
Approved by: | Aaron Bentley |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp:~intellectronica/launchpad/patch-badge-performance |
Merge into: | lp:launchpad/db-devel |
Diff against target: |
69 lines (+11/-3) 4 files modified
lib/canonical/launchpad/webapp/tales.py (+4/-0) lib/lp/bugs/browser/bugtask.py (+3/-1) lib/lp/bugs/browser/cvereport.py (+2/-1) lib/lp/registry/browser/milestone.py (+2/-1) |
To merge this branch: | bzr merge lp:~intellectronica/launchpad/patch-badge-performance |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gary Poster (community) | release-critical | Approve | |
Aaron Bentley (community) | Approve | ||
Review via email: mp+18000@code.launchpad.net |
To post a comment you must log in.
This branch optimizes the way we display the patch badge in bug listings by extending the decorator for bugtask listing items to include has_patch.
If the diff looks a bit short it's because:
1. The SQL for getting has_patch has already been added in the original branch (just not used).
2. I have not added any additional tests (since existing tests cover the functionality). I did test manually that the inefficient code path is not being entered when using this version.