Bug feeds for BugTargets need to ensure a sufficient number of bugs are fetched

Bug #206811 reported by Brad Crittenden
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

A bug feed should have 25 entries in it (with the current configuration). In BugTargetBugsFeed we retrieve BugTasks not bugs and then select the most recent bugs represented from that set of BugTasks. This strategy needs to be revisited to incorporate a batching approach to ensure we get 25 bugs. The current work-around is to simply retrieve twice the number of BugTasks as the number of bugs we need.

The solution should also ensure private bugs are screened during the db query as removing them later may cause the number of bugs fetched to fall below the threshold.

Brad Crittenden (bac)
description: updated
Curtis Hovey (sinzui)
tags: added: tech-debt
Curtis Hovey (sinzui)
Changed in malone:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Curtis Hovey (sinzui) wrote :

This will be fixable in a few days because searchTask() will allow you to search for public bugs.
    information_type=[InformationType.PUBLIC, InformationType.UNEMBARGOED_SECURITY ]

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.