Bug: Gantt view: moving task changes duration #1996

Closed
opened 2022-11-12 15:50:57 +00:00 by Yodbha · 6 comments

Version information:

Frontend Version: try 2022-11-12
API Version: try 2022-11-12
Browser and OS Version: Firefox, MacOS

Steps to reproduce:

  1. Add start and end dates (/times) to a task.
  2. View in Gantt view.
  3. Move task horizontally (changing days).
    ...

Expected behavior:

Task duration should stay the same. Only the days should change.

Actual behavior:

Task duration increases.
Moving the task several times back and forth keeps increasing its duration.
My impression is that it's happening at the transition from one week to another.

**Version information:** Frontend Version: try 2022-11-12 API Version: try 2022-11-12 Browser and OS Version: Firefox, MacOS **Steps to reproduce:** 1. Add start and end dates (/times) to a task. 2. View in Gantt view. 3. Move task horizontally (changing days). ... **Expected behavior:** Task duration should stay the same. Only the days should change. **Actual behavior:** Task duration increases. Moving the task several times back and forth keeps increasing its duration. My impression is that it's happening at the transition from one week to another.
Owner

Can you provide exact steps to reproduce?

Can you provide exact steps to reproduce?
Author

The funny thing is - it's not exactly reproducable.
Sometimes the task gets shorter, sometime longer. The exact date transition where it occurs is also not the same...
But try this (also works on my Ubuntu machine with Chrome browser):

  1. Open list in Gantt view
  2. Create a task
  3. Shorten the task to 2 or 3 days duration
  4. Click task and keep holding
  5. Move left or right. It works when going slow, but especially when going a little faster. The task becomes longer or shorter at seemingly random dates (eventually having 0 duration in that case)

Maybe internally the frontend gets the signal that I'm dragging one of the ends? It also happens if I click, hold, move my cursor away vertically, and then go horizontally (so that I don't accidentally touch the ends of a task).

The funny thing is - it's not exactly reproducable. Sometimes the task gets shorter, sometime longer. The exact date transition where it occurs is also not the same... But try this (also works on my Ubuntu machine with Chrome browser): 1. Open list in Gantt view 2. Create a task 3. Shorten the task to 2 or 3 days duration 4. Click task and keep holding 5. Move left or right. It works when going slow, but especially when going a little faster. The task becomes longer or shorter at seemingly random dates (eventually having 0 duration in that case) Maybe internally the frontend gets the signal that I'm dragging one of the ends? It also happens if I click, hold, move my cursor away vertically, and then go horizontally (so that I don't accidentally touch the ends of a task).
konrad added the
kind/bug
label 2022-11-12 20:33:08 +00:00
Owner

I was able to reproduce this, but as you said not reliably. I suspect a race condition.

Another thing I noticed is the end time of the task is 23:59 but on the gantt chart it shows up as 00:00. Maybe that's related to that.

I was able to reproduce this, but as you said not reliably. I suspect a race condition. Another thing I noticed is the end time of the task is 23:59 but on the gantt chart it shows up as 00:00. Maybe that's related to that.
Owner

I was not able to reproduce this anymore. Can you check if it's gone for good?

I was not able to reproduce this anymore. Can you check if it's gone for good?
Author

Same here, I can't reproduce it with api:20.4 and frontend:20.5.

Any idea what fixed it?

Same here, I can't reproduce it with `api:20.4` and `frontend:20.5`. Any idea what fixed it?
Owner

Any idea what fixed it?

There have been a few changes and fixes to the Gantt library, maybe one of those fixed it.

> Any idea what fixed it? There have been a few changes and fixes to the Gantt library, maybe one of those fixed it.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#1996
No description provided.