#7039 closed defect (fixed)
Milestone order in query reports
Reported by: | Owned by: | osimons | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | report system | Version: | 0.11b2 |
Severity: | normal | Keywords: | |
Cc: | ols@…, trac@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
In Trac version 0.11b1 the milestones were ordered according to their due date in the custom query. In Trac version 0.11b2 the milestones are ordered alfabetically in the custom queries. I liked the 0.11b1 behaviour and hope that the 0.11b2 has a bug that will fixed soon.
Attachments (1)
Change History (7)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Milestone: | 0.11 → 0.11.1 |
---|
No, this is not the right way, quoting from r6471:
any new group introduced by the change would not be sorted correctly.
The correct fix looks more involved, post-poning.
by , 17 years ago
Attachment: | t7039-r6788-query_changes-a.diff added |
---|
Patch that reworks query caching by adding in sql instead of 'manually' updating afterwards
comment:3 by , 17 years ago
Owner: | changed from | to
---|
I think this patch works correct, and handles a number of other issues better - like the already closed issue of graceful removal of deleted tickets in #6088.
Comments?
comment:4 by , 17 years ago
Milestone: | 0.11.1 → 0.11 |
---|
I've tested it - seems to work great.
As discussed on IRC, this approach fixes a couple of other issues, like the quadratic behavior of L726 and the slowness of individual ticket retrieval of done at line 730. Also, I was not convinced of the correctness of the sorting done at line 735 (using the index in orig_list to insert into tickets list - tickets list might now well be completely different?). All this code is now gone ;-)
I've found it happened from r6471. Here is instant patch.
ticket/query.py
groupsequence = sorted(groupsequence, reverse=self.groupdesc)But I think this is not right way.