MinBZK / amt

Algorithm Management Toolkit (AMT)
European Union Public License 1.2
2 stars 0 forks source link

Bug / Feature: determine correct sort order for new tasks #123

Open berrydenhartog opened 3 months ago

berrydenhartog commented 3 months ago

Tasks have a field sort_order which is used to order fields (from low to high). When adding new tasks, a sort_order should be given.

Presumably, new tasks would appear at the and of a column, if tasks already exist. This means that cards that are added, the "highest sort order" should be retrieved from the database; new tasks have to be given a sort order that is higher than that.

Practical example: task1 in todo: sort_order = 10 task2 in todo: sort_order = 20 new task(3) to be inserted in todo: 20 + (default sort order increment, can be 1 or higher)

Currently, tasks are added with the creation of a new project with a "loop id" (from 1 to X). This should be changed to "highest value of last card in column" + "loop id".

Next steps:

We suggest to research this ticket and time-box this on 2 days.

github-actions[bot] commented 3 days ago

This issue did not have any activity in the last 90 days and will be removed after 30 days