Edgewall Software

Ticket #5793 (closed defect: worksforme)

Opened 18 months ago

Last modified 17 months ago

TrackQuery Macro sets order to id, regardless of parameter

Reported by: Noam Tamim <noamtm@…> Owned by: cboos
Priority: normal Milestone:
Component: wiki system Version: 0.10.4
Severity: normal Keywords: ticket, wiki, query, TicketQuery, order
Cc: nkantrowitz

Description

The cause is this line: http://trac.edgewall.org/browser/tags/trac-0.10.4/trac/ticket/query.py#L707

which says: query.order = 'id'

I commented it out, and now TicketQuery works as expected.

I realize this is probably not needed for 0.11, but if there's a 0.10.5 release before that, it should be included. Either remove the line, or add a comment that explains why it's there.

Attachments

Change History

  Changed 18 months ago by ecarter

  • status changed from new to closed
  • resolution set to duplicate

Looks like this got submitted twice by accident. Dup of #5792.

  Changed 18 months ago by Noam Tamim <noamtm@…>

  • status changed from closed to reopened
  • resolution duplicate deleted

My mess - please keep this one open, the other one closed.

  Changed 18 months ago by nkantrowitz

  • status changed from reopened to closed
  • resolution set to worksforme

This already works fine on trunk.

follow-up: ↓ 5   Changed 18 months ago by Noam Tamim <noamtm@…>

  • cc nkantrowitz added

I realize it works fine on the trunk. But it doesn't on the latest RELEASE, which is the 0.10 line, or version 0.10.4. That's why the fix should be done in branches/0.10-stable/trac/ticket/query.py, which will include it in the 0.10.5 release.

I'm not reopening, because I don't know if 0.10.5 is even planned before 0.11 is released. But please do if is.

in reply to: ↑ 4 ; follow-up: ↓ 6   Changed 18 months ago by nkantrowitz

Replying to Noam Tamim <noamtm@gmail.com>:

I realize it works fine on the trunk. But it doesn't on the latest RELEASE, which is the 0.10 line, or version 0.10.4. That's why the fix should be done in branches/0.10-stable/trac/ticket/query.py, which will include it in the 0.10.5 release.

We do not backport features on to the stable branch, only security and stability fixes. If you really care you can probably grab the new macro from trunk and backport it as a standalone plugin.

in reply to: ↑ 5   Changed 18 months ago by Noam Tamim <noamtm@…>

Replying to nkantrowitz:

We do not backport features on to the stable branch, only security and stability fixes. If you really care you can probably grab the new macro from trunk and backport it as a standalone plugin.

There's no porting work to do. The new macro is very different, and seems to be using a different API altogether. The fix is removing a line of code from the macro. I don't "care", because now it works fine for me; however, I'm thinking about new users of the 0.10 line.

  Changed 17 months ago by eblot

  • milestone 0.10.5 deleted

Add/Change #5793 (TrackQuery Macro sets order to id, regardless of parameter)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.