+needspackaging bug counts are wrong

Bug #613610 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Unassigned

Bug Description

+needspackaging should be showing the number of open bugs. It is showing the total of all bugs for the package. A quick examination shows that most of the packages list on the first page of results have no open bugs :(

Maybe we should consider not showing bugs and messag counts. We can show the package name and summary.

Related branches

Revision history for this message
Curtis Hovey (sinzui) wrote :

DSP.recalculateBugHeatCache is counting all bugs to get
    self.max_bug_heat, self.total_bug_heat, self.bug_count

I think this should only count open bugs. The orginal query that calculated total_bug_heat and bug_count used
    bugtask.status in UNRESOLVED_BUGTASK_STATUSES
in the query to ensure closed bugs did not taint the priorities.

max_bug_heat may have always been counting all bugs, but I think this too should only be looking at open bugs.

Revision history for this message
Curtis Hovey (sinzui) wrote :

The test for DSP.recalculateBugHeatCache updates does not include a closed bug. I think adding a closed bug to the test should so the expected numbers will not change.

Revision history for this message
Curtis Hovey (sinzui) wrote :

Adding a closed bug to the existing test shows it is being counted--the test results should not change. I thought adding a condition to exclude closed bugs from the the storm expression would fix the issue, but the tests still fail. http://pastebin.ubuntu.com/476987/

Changed in launchpad-registry:
assignee: nobody → Curtis Hovey (sinzui)
status: Triaged → In Progress
Curtis Hovey (sinzui)
Changed in launchpad-registry:
importance: Low → High
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: In Progress → Fix Committed
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
tags: added: qa-needstesting
Curtis Hovey (sinzui)
tags: added: qa-bad
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: Fix Committed → In Progress
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: In Progress → Fix Committed
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-bad
Curtis Hovey (sinzui)
tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
Changed in launchpad:
assignee: Curtis Hovey (sinzui) → nobody
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.