Merge lp:~deryck/launchpad/hot-bugtasks-to-hot-bugs-442170 into lp:launchpad/db-devel
Proposed by
Deryck Hodge
Status: | Merged |
---|---|
Approved by: | Eleanor Berger |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~deryck/launchpad/hot-bugtasks-to-hot-bugs-442170 |
Merge into: | lp:launchpad/db-devel |
Diff against target: |
186 lines (+72/-30) 4 files modified
lib/lp/bugs/browser/bugtarget.py (+21/-0) lib/lp/bugs/browser/bugtask.py (+0/-9) lib/lp/bugs/stories/bugs/xx-product-bugs-page.txt (+48/-18) lib/lp/bugs/templates/bugtarget-bugs.pt (+3/-3) |
To merge this branch: | bzr merge lp:~deryck/launchpad/hot-bugtasks-to-hot-bugs-442170 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eleanor Berger (community) | Approve | ||
Review via email: mp+17826@code.launchpad.net |
Commit message
Make the method getting a hot bugs list get bugs by heat rather than recently touched bugtasks.
To post a comment you must log in.
This branch moves the hot_bugtasks method from the bug listing view to a hot_bugs method on a bug target view, which changes the behavior to return 10 bugs according to heat rather than recently touched bug tasks.
This change also allows us to fix Bug #442170, since the code ensures the same bug isn't shown twice. The code uses default_bugtask for display.
The "hot bugs" test in stories/ bugs/xx- product- bugs-page. txt has been updated to use factory data, rather than sample data, and to test that bugs are listed by heat.
The branch builds on a branch from Tom/Brian M. that allows sorting by heat, so the diff for my changes is pasted:
http:// pastebin. ubuntu. com/360139/