Ordering of latest bugs on the Malone frontpage appears to have become volatile

Bug #519271 reported by Graham Binns
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

The fix for bug 517798 appears to have made the ordering of the frontpage recent bugs list volatile, making tests fail in the buildbot (see bug 519266).

We should investigate:

 a) Why the ordering has become volatile
 b) Whether it actually matters (i.e., this may be due to sampledata issues).

Revision history for this message
Graham Binns (gmb) wrote :

This is due to the fact that the failing test uses the factory to create bugs. Since they're all created in the same transaction they have the same datecreated value.

Revision history for this message
Deryck Hodge (deryck) wrote :

This is why I originally had used both datecreated and id sort, to make this predictable. In hindsight, I think Abel's suggestion is best -- just sort on id desc. It's predictable and naturally reverse date ordered.

We should fix this and then fix the test, since it's a fairly useless test now without bug numbers. I can do this later today if no one else has time.

Cheers,
deryck

Revision history for this message
Graham Binns (gmb) wrote : Re: [Bug 519271] Re: Ordering of latest bugs on the Malone frontpage appears to have become volatile

On 10 February 2010 11:57, Deryck Hodge <email address hidden> wrote:
> This is why I originally had used both datecreated and id sort, to make
> this predictable.  In hindsight, I think Abel's suggestion is best --
> just sort on id desc.  It's predictable and naturally reverse date
> ordered.
>
> We should fix this and then fix the test, since it's a fairly useless
> test now without bug numbers.  I can do this later today if no one else
> has time.

Thanks, that would be great. I was going to do that yesterday after it
was suggested in the Bugs team standup but didn't get round to it.

Curtis Hovey (sinzui)
Changed in launchpad:
importance: Medium → Low
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.