Edgewall Software
Modify

Opened 17 years ago

Closed 16 years ago

#2429 closed defect (worksforme)

"trac-admin priority add foo" should honor order of execution/insersion

Reported by: mdaniel@… Owned by: daniel
Priority: normal Milestone:
Component: admin/console Version:
Severity: normal Keywords: trac-admin priority
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

In my situation, I wanted more than 10 priorities (because we're all corporate and stuff here).

for i in `seq 1 15`; do 
    trac-admin /path/to priority add P$i
done

results in their order appearing as P1,P10,P2, etc.

Pleaese reference:

source:/trunk/trac/scripts/admin.py@latest#L853

to see that it uses a numerically increasing "value" field, but "value" is a text field, so if you do a

select * from enum 
where type='priority' 
order by value

it will not do as one wishes above ten items, since (lexically) 1 and 10 appear next to one another.

Attachments (0)

Change History (1)

comment:1 by sid, 16 years ago

Resolution: worksforme
Status: newclosed

In 0.10, you can specify the order of appearance for priorities. This can be done using WebAdmin, or from trac-admin using:

trac-admin priority order <value> up|down

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.