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:
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/