#4038 (Replace "Priority" of a ticket by a sequence number within its site?)
by Luc Saffre · in Developers · assigned to Luc Saffre
Kurzbeschreibung
Kinder
Kommentare
- 5 Jahre, 7 Monate ago von Luc Saffre about #4038 (Replace "Priority" of a ticket by a sequence number within its site?) : To migrate existing priorities correctly, simply edit the restore.py of the snapshot and change one line in the create_tickets_ticket() function: kw.update(priority=priority) --> kw.update(priority=50-int(priority))
- 5 Jahre, 7 Monate ago von Luc Saffre about #4038 (Replace "Priority" of a ticket by a sequence number within its site?) : Oops, Priorities.very_low.value was '50' and Priorities.critical.value was '10', so the default data migration would result in the opposite of the expected result. One question is whether we need to worry at all, because the priority field was not much used until now.
- 5 Jahre, 7 Monate ago von Luc Saffre about #4038 (Replace "Priority" of a ticket by a sequence number within its site?) : Yes. Ticket.priority is now an IntegerField. That makes more sense. Bonus: data migration works automatically because the Priorities choicelist used numerical values (e.g. Priorities.normal.value was '30'), so existing tickets will just get a numberic equivalent of their previous prioriity. Tickets...
- 5 Jahre, 7 Monate ago von Luc Saffre about #4038 (Replace "Priority" of a ticket by a sequence number within its site?) : The priority field of a ticket is not useful in reality. What we need is a way to prioritize tickets by changing their ordering within the site. But I am not yet sure how this will affect e.g. MyTicketsToWork where tickets of different sites are shown. Maybe the ordering should be cross-site. So it ...