Re: [Trac] Status sorting in ticket list

2015-07-17 Thread Ryan Ollos
On Thu, Jul 16, 2015 at 11:10 PM, Cooke, Mark 
wrote:
>
> If it was not for the fixed start and end state names, you could fudge it
> with state name prefixes, but... eurrgh!
>

We should be close to avoiding the need for fixed start and end names now
that (1) is implemented. There is still some behavior that is hard-coded to
the "new" state (2), and there needs to be more testing of workflows that
rename "new" and "closed".

(1) http://trac.edgewall.org/ticket/2045
(2) http://trac.edgewall.org/ticket/11858

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


RE: [Trac] Status sorting in ticket list

2015-07-16 Thread Cooke, Mark
> -Original Message-
> From: trac-users@googlegroups.com On Behalf Of Steffen Hoffmann
> Sent: 16 July 2015 20:24
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 16.07.2015 18:56, Ryan Ollos wrote:
> > On Thu, Jul 16, 2015 at 4:49 AM, Mo  > > wrote:
> >
> > Hi,
> >
> > if sorting for status in the ticket list this appears to sort
> > alphabetically like accepted, closed, new.
> > A workflow sorting would be more appropriate here like new,
> > accepted, closed. It this already possible or worth a bug report?
> >
> > Best regards.
> >
> >
> > Only alphabetical sorting is possible in the Report and Query views.
> >
> > While there is an intuitive ordering for the 3 states you've shown, it's
> > not clear what criteria would actually be used to sort them. Consider a
> > moderately more complex workflow. What is the "intuitive" ordering, and
> > what the algorithm be to determine the ordering?
> > http://trac.edgewall.org/wiki/TracWorkflow#Environmentscreatedwith0.11
> 
> No algorithm, but I remember using the nearly undocumented
> .weight option for sorting actions in ticket view (see docstring
> of ITicketActionController.get_ticket_actions method [1]). IMHO the same
> ordering sould be considered for an alternative sort.

I agree that something similar to the way in which the actions are sorted for 
display in "modified ticket" (.default, I need to check out `weight`) 
would be useful and should not be too difficult to implement?  We could enforce 
a unique value for each action when parsing the workflow in to make sure there 
are no ambiguities?

If it was not for the fixed start and end state names, you could fudge it with 
state name prefixes, but... eurrgh!

~ Mark C

> Steffen Hoffmann
> 
> 
> [1] http://trac.edgewall.org/browser/tags/trac-0.11/trac/ticket/api.py#L42
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1
> 
> iEYEARECAAYFAlWoBMMACgkQ31DJeiZFuHdXKACgpkx2ausjbu/mx3vrTgpKvNiS
> SoMAoJBqMB/O4SGu6aCxutBWylqUyK8A
> =bhZR
> -END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Status sorting in ticket list

2015-07-16 Thread Steffen Hoffmann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 16.07.2015 18:56, Ryan Ollos wrote:
> On Thu, Jul 16, 2015 at 4:49 AM, Mo  > wrote:
> 
> Hi,
> 
> if sorting for status in the ticket list this appears to sort
> alphabetically like accepted, closed, new.
> A workflow sorting would be more appropriate here like new,
> accepted, closed. It this already possible or worth a bug report?
> 
> Best regards.
> 
> 
> Only alphabetical sorting is possible in the Report and Query views.
> 
> While there is an intuitive ordering for the 3 states you've shown, it's
> not clear what criteria would actually be used to sort them. Consider a
> moderately more complex workflow. What is the "intuitive" ordering, and
> what the algorithm be to determine the ordering?
> http://trac.edgewall.org/wiki/TracWorkflow#Environmentscreatedwith0.11

No algorithm, but I remember using the nearly undocumented
.weight option for sorting actions in ticket view (see docstring
of ITicketActionController.get_ticket_actions method [1]). IMHO the same
ordering sould be considered for an alternative sort.

Steffen Hoffmann


[1] http://trac.edgewall.org/browser/tags/trac-0.11/trac/ticket/api.py#L42
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iEYEARECAAYFAlWoBMMACgkQ31DJeiZFuHdXKACgpkx2ausjbu/mx3vrTgpKvNiS
SoMAoJBqMB/O4SGu6aCxutBWylqUyK8A
=bhZR
-END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Status sorting in ticket list

2015-07-16 Thread Ryan Ollos
On Thu, Jul 16, 2015 at 4:49 AM, Mo  wrote:

> Hi,
>
> if sorting for status in the ticket list this appears to sort
> alphabetically like accepted, closed, new.
> A workflow sorting would be more appropriate here like new, accepted,
> closed. It this already possible or worth a bug report?
>
> Best regards.
>

Only alphabetical sorting is possible in the Report and Query views.

While there is an intuitive ordering for the 3 states you've shown, it's
not clear what criteria would actually be used to sort them. Consider a
moderately more complex workflow. What is the "intuitive" ordering, and
what the algorithm be to determine the ordering?
http://trac.edgewall.org/wiki/TracWorkflow#Environmentscreatedwith0.11

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] Status sorting in ticket list

2015-07-16 Thread Mo
Hi,

if sorting for status in the ticket list this appears to sort 
alphabetically like accepted, closed, new.
A workflow sorting would be more appropriate here like new, accepted, 
closed. It this already possible or worth a bug report?

Best regards.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.