Can't sort by column on +reportedbugs, +subscribedbugs

Bug #61735 reported by Matt Zimmerman
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Confirmed
Undecided
Unassigned

Bug Description

(I only checked +reportedbugs and +subscribedbugs but there may be other pages where this is true)

One cannot sort these tables by clicking on column headers, as is possible with many other such tables in Launchpad. It would be very useful if it were so.

Tags: lp-bugs
Revision history for this message
Guilherme Salgado (salgado) wrote :

We only allow column-click-sorting of tables on pages that don't have batching. It is so because the sorting is done with javascript and thus we can sort only the current batch.

We could make the column headers be links and thus do the sort on the server, but that would require an extra page load and wouldn't be trivial because some columns contain computed values from multiple database columns.

I, myself, like the javascript sorting even for tables on pages with batching, because I know that it will sort only the current batch and thus I know what to expect. But I know this may be confusing for some users, and this is why it was disabled on such pages.

Revision history for this message
Matt Zimmerman (mdz) wrote : Re: [Bug 61735] Re: Can't sort by column on +reportedbugs, +subscribedbugs

On Fri, Sep 22, 2006 at 12:20:03PM -0000, Guilherme Salgado wrote:
> We only allow column-click-sorting of tables on pages that don't have
> batching. It is so because the sorting is done with javascript and thus
> we can sort only the current batch.
>
> We could make the column headers be links and thus do the sort on the
> server, but that would require an extra page load and wouldn't be
> trivial because some columns contain computed values from multiple
> database columns.

I wouldn't mind the extra page load at all; in fact it would be convenient
to be able to bookmark it with the proper sort order.

> I, myself, like the javascript sorting even for tables on pages with
> batching, because I know that it will sort only the current batch and
> thus I know what to expect. But I know this may be confusing for some
> users, and this is why it was disabled on such pages.

Is there a secret knob to turn it back on per-user? ;-)

--
 - mdz

Revision history for this message
Guilherme Salgado (salgado) wrote : Re: [Bug 61735] Re: [Bug 61735] Re: Can't sort by column on +reportedbugs, +subscribedbugs

On Sat, Sep 23, 2006 at 12:56:40AM -0000, Matt Zimmerman wrote:
> On Fri, Sep 22, 2006 at 12:20:03PM -0000, Guilherme Salgado wrote:
[...]
> > I, myself, like the javascript sorting even for tables on pages with
> > batching, because I know that it will sort only the current batch and
> > thus I know what to expect. But I know this may be confusing for some
> > users, and this is why it was disabled on such pages.
>
> Is there a secret knob to turn it back on per-user? ;-)
>

I'm afraid not. I tried to write a user css to enable it but it doesn't
seem to be possible because there's a javascript function that is executed
on page load which looks for tables with a class="sortable" and then change
the table's html to make them sortable, so we'd have to somehow add an
extra class to the tabe before the page is loaded.

Revision history for this message
Brad Bollenbach (bradb) wrote :

mpt, a lot of people have asked about column-click sorting.

Can we get the best of both worlds? A sort widget, to allow more sorting options and sorting at the same time as searching and column-click sorting, using URLs?

Changed in malone:
status: Unconfirmed → Needs Info
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Yes, we could.

Changed in malone:
status: Needs Info → Confirmed
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.