Bug heat flames should be calculated based on the BugTarget's max heat
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Deryck Hodge |
Bug Description
What happens:
Looking at the hottest bug on malone (currently with a heat of ~440) you'll see only grey flames for its hotness. This is because the maximum hotness, which is used to determine how many flames should be shown, is a global constant of 5000. This means that projects whose hottest bugs are far colder than this will end up with heat displayed oddly.
What should happen:
Max heat should be determined on a per-bugtarget basis, so that heat can be a relative value within that bugtarget (so Ubuntu's max bugheat would be ~10,000 right now, whilst Malone's would be ~440). The heat shown on the page should depend upon the context in which you're looking at the bug.
DistroSourcePac
Related branches
- Björn Tillenius (community): Approve (db)
- Eleanor Berger (community): Approve
- Stuart Bishop (community): Approve (db)
-
Diff: 650 lines (+241/-52)19 files modifieddatabase/schema/comments.sql (+4/-2)
database/schema/patch-2207-34-0.sql (+11/-0)
lib/lp/bugs/browser/bug.py (+0/-22)
lib/lp/bugs/browser/bugtask.py (+33/-8)
lib/lp/bugs/browser/configure.zcml (+0/-5)
lib/lp/bugs/browser/tests/bug-heat-view.txt (+44/-11)
lib/lp/bugs/interfaces/bug.py (+1/-0)
lib/lp/bugs/interfaces/bugtarget.py (+5/-0)
lib/lp/bugs/model/bug.py (+1/-0)
lib/lp/bugs/model/bugtarget.py (+14/-0)
lib/lp/bugs/tests/test_bugheat.py (+82/-0)
lib/lp/registry/configure.zcml (+2/-1)
lib/lp/registry/model/distribution.py (+2/-2)
lib/lp/registry/model/distributionsourcepackage.py (+23/-0)
lib/lp/registry/model/distroseries.py (+5/-0)
lib/lp/registry/model/product.py (+2/-1)
lib/lp/registry/model/productseries.py (+5/-0)
lib/lp/registry/model/project.py (+2/-0)
lib/lp/registry/model/sourcepackage.py (+5/-0)
- Leonard Richardson (community): Approve
- Canonical Launchpad Engineering: Pending (code) requested
-
Diff: 173 lines (+28/-40)4 files modifiedlib/lp/bugs/browser/bug.py (+0/-22)
lib/lp/bugs/browser/bugtask.py (+20/-4)
lib/lp/bugs/browser/configure.zcml (+0/-5)
lib/lp/bugs/browser/tests/bug-heat-view.txt (+8/-9)
tags: | added: story-bug-heat |
Changed in malone: | |
assignee: | nobody → Deryck Hodge (deryck) |
status: | Triaged → In Progress |
Changed in malone: | |
status: | Fix Committed → Fix Released |
I think it would be nice if the distro package heat was based on the package if viewed as a package and based on the distro is viewed distro wide.