tasks / tasks

Bringing Astrid Tasks back from the dead
http://tasks.org
GNU General Public License v3.0
3.62k stars 503 forks source link

Subtasks breaks and converts to main tasks after a drag-and-drop #2149

Open SamirSaidani opened 1 year ago

SamirSaidani commented 1 year ago

I've experienced a similar issue than #2018 with release 13.1.1, though I was not able to reproduce it : I'm using more than 3000 tasks, and once in a while, when drag and drop a task with many-subtasks (eg more than 30), the subtasks breaks and converts to main tasks.

I don't now how I can access to the log. One thing that might help, is that the main task had exactly the same name than another task with subtasks. I tried to reproduce it without success, but I'm sure that the problem did occur (I had to reconnect the 30 tasks to the main task, and had access to a few-day-ago backup where the main task was correctly connected with the 30 subtasks).

Maybe it has something to do with the number of tasks I'm managing, or tasks with the same name.

Hope it helps, let me know what I can do to track down the bug, this one is pretty critical in my opinion.

abaker commented 1 year ago

Thanks for the report!

Were you dragging in manual sort mode, were you dragging to a top level in a grouped sort mode (i.e. due date or priority), or were you dragging a task to become a subtask of another task?

What synchronization service are you using if any?

SamirSaidani commented 1 year ago

Just a side question : I don't see a manual sort mode ? I only see in advanced settings Astrid Manual Mode, but it's not clear to me how to enable a manual sort mode: reading the doc does not help, I don't see a "My Order" anywhere, I was expecting to see "My Order" in My Tasks when selecting which sorting method I want to use (Smart sort, By start date, etc. but no "manual sort mode" here).

I was dragging inside a filter a task with 30 subtasks to become a subtask to another task with many subtasks in a grouped sort mode (By Priority).

I'm using Caldav with Nextcloud 24.0.1.

Thanks a lot for your software, I'm really grateful and have tipped you several times, it's the backbone of my GTD routines.

SamirSaidani commented 1 year ago

Got it : I'm only using filtering for my GTD workflow, and realize that My Order is only available when selecting a list, which I rarely do. Could be nice to have My Order supported everywhere (especially filtering, and subtasks).

abaker commented 1 year ago

Yeah I wish it supported this: #1053. I recently did some required database refactoring, but now I have to figure out how to handle mixing CalDAV and google tasks. Or possibly just need to disable 'My order' for tags and filters in the rare case that a user has both set up.

abaker commented 1 year ago

@SamirSaidani have you had this happen again?

I created two test lists, a custom filter that shows both lists, sorted it by priority, and added a test task that has 30+ subtasks. Each list also has another task that I'm using as the parent task as I move the test task with subtasks back and forth.

Does this setup sound right? I haven't had any luck reproducing the issue