TicketQuery order by id (Trac 0.10.4)

9 views
Skip to first unread message

Noam Tamim

unread,
Jul 29, 2007, 7:20:54 AM7/29/07
to trac-...@googlegroups.com
Hi,

Question to Trac devs:
I was wondering why the TicketQuery macro ignores my "order=priority" parameter, so I looked at the code (class TicketQueryMacro in query.py). To my amazement, just before executing the query this statement appears:

query.order='id'

Which makes the list always sorted by id, regardless of the parameter.

I commented out this line, and now it's sorted by priority.

Any idea why was this added? A workaround for another bug perhaps?

Thanks, Noam.

Noam Tamim

unread,
Jul 31, 2007, 3:07:09 AM7/31/07
to trac-...@googlegroups.com
What, nobody knows? Shall I ask in the dev list?

Roo

unread,
Jul 31, 2007, 3:30:07 AM7/31/07
to trac-...@googlegroups.com
On 31/07/07, Noam Tamim <noa...@gmail.com> wrote:
> What, nobody knows? Shall I ask in the dev list?

Try the svn blame command and find out who added and in what revision.
Maybe the commit log might shed some light on it.

Cheers,

Roo.

Noam Tamim

unread,
Jul 31, 2007, 9:24:27 AM7/31/07
to trac-...@googlegroups.com
On 7/31/07, Roo <roo....@gmail.com> wrote:
> What, nobody knows? Shall I ask in the dev list?
Try the svn blame command and find out who added and in what revision.
Maybe the commit log might shed some light on it.

Already tried that. The commit (1636, http://trac.edgewall.org/log/trunk?rev=1636) was a huge wiki-refactoring merge, by cmlenz. Tells me nothing.

Noam.


Eli Carter

unread,
Jul 31, 2007, 10:10:55 AM7/31/07
to trac-...@googlegroups.com

File a bug on t.e.o for it.

Eli

Noah Kantrowitz

unread,
Jul 31, 2007, 12:44:01 PM7/31/07
to trac-...@googlegroups.com
This was only added in trunk.

--Noah

> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "Trac Users" group.
> To post to this group, send email to trac-...@googlegroups.com
> To unsubscribe from this group, send email to trac-users-...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>


signature.asc
Reply all
Reply to author
Forward
0 new messages