+needs-packaging lists duplicates

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

Bug Description

I viewied the first 200 items listed in https://launchpad.net/ubuntu/maverick/+needs-packaging and +packaging and I saw several duplicates. The duplication is not obvious since Ubuntu has so many packages. It is more ovious when looking at a Debian series: https://launchpad.net/debian/squeeze/+packaging (there are 205 packages, but the listing contains 544).

Related branches

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

+needs-packaging may not have duplicates. You can reload and watch the order change. The hack to speed up page loads causes many packages to have the same rank, and the order without that rank is random. There should be a second sort by sourcepackagename.name.

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

The duplication is caused by the number of releases in the series. eg:
    https://launchpad.net/debian/squeeze/+source/gnome-screensaver
lists seven releases and it happens to be listed 7 times in +packaging.

The DistroSeries._current_sourcepackage_joins_and_conditions() uses
    spph.status IN %(active_status)s
hoping to limit cause a 1-1 condition between spn -> spr -> spph
Launchpad does not have the superceeded/deleted information for Debian, so
there are multiples. Ubuntu could have multiples too as something is being built.

Our options are:
    * tweak this painful SQL
    * Ignore the Ubuntu issue because it is self-correcting, but limit the feature to Ubuntu
    * Consider using DSPCache

I favour the last item because It make be faster.

Curtis Hovey (sinzui)
Changed in launchpad-registry:
assignee: nobody → Curtis Hovey (sinzui)
status: Triaged → In Progress
Revision history for this message
Curtis Hovey (sinzui) wrote :

Hi Edwin.

I have a branch that will fix the /perceived/ Ubuntu issue. It will not really prevent duplicates. The query needs a major restructuring to do that. Since you are working on the timeout issue. I think you should undertake fixing the query to return distincts. I think this is still a separate issue that may deserve a separate branch. I think the best time to fix this is after the model is refactored to make the query easier.

Changed in launchpad-registry:
assignee: Curtis Hovey (sinzui) → Edwin Grubbs (edwin-grubbs)
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: In Progress → Triaged
Revision history for this message
Ursula Junque (ursinha) wrote : Bug fixed by a commit
Changed in launchpad-registry:
status: Triaged → Fix Committed
tags: added: qa-needstesting
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: Fix Committed → In Progress
status: In Progress → Triaged
tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in launchpad-registry:
milestone: 10.05 → 10.06
Curtis Hovey (sinzui)
tags: added: bridging-the-gap
removed: qa-ok
Revision history for this message
Curtis Hovey (sinzui) wrote :

I suspect Edwin's branch may have fixed this. We will wait until we can do staging testing to determin if this is fixed, or must be deferred to 10.07

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

I am still seeing duplicates in debian. I know this is because Debian packages are not marked as superceeded or deleted by Launchpad. We need to decide if we are going to make packaging listings exclusive to Ubuntu or to make the queries comensate for bad data.

Changed in launchpad-registry:
milestone: 10.06 → 10.07
Changed in launchpad-registry:
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad-registry:
status: In Progress → Fix Committed
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Curtis Hovey (sinzui) wrote : Bug 577492 Fix released

Fixed released in launchpad-project 10.08.

Curtis Hovey (sinzui)
Changed in launchpad-registry:
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.