Bug heat flames should be calculated based on the BugTarget's max heat

Bug #511382 reported by Graham Binns
72
This bug affects 13 people
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.

DistroSourcePackages should inherit from their parent distribution.

Related branches

Graham Binns (gmb)
tags: added: story-bug-heat
Revision history for this message
Micah Gersten (micahg) wrote :

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.

Revision history for this message
Graham Binns (gmb) wrote : Re: [Bug 511382] Re: Bug heat flames should be calculated based on the BugTarget's max heat

2010/1/27 Micah Gersten <email address hidden>:
> 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.
>

Yes, that makes sense. It's all to do with what context the bug is
viewed in (for example, the same bug might have a task on the upstream
project, too, and when looked at in that context it may be
significantly hotter or colder).

That makes the implementation... interesting. But fun :).

Deryck Hodge (deryck)
Changed in malone:
assignee: nobody → Deryck Hodge (deryck)
status: Triaged → In Progress
Revision history for this message
Deryck Hodge (deryck) wrote :

I'm claiming this bug to represent the DB patch part of the work, meaning this bug will be fixed when there is a max_heat attribute on all bug targets. To use the attribute is pretty simple and can be done as part of fixing bug 515239.

Changed in malone:
milestone: none → 10.02
Revision history for this message
Diogo Matsubara (matsubara) wrote : Bug fixed by a commit
Changed in malone:
status: In Progress → Fix Committed
Deryck Hodge (deryck)
Changed in malone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.