bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

Task constraint affecting dependent task's subtasks #9272

Open arcady-zherdev opened 3 months ago

arcady-zherdev commented 3 months ago

Forum post

Good afternoon, trying the gantt we discovered this behaviour and we don't know if it is intended or if it is a bug.

To demonstrate it I prepared this example: Constraint as late as possible example 1.png

So, we have a gantt with two tasks, one dependent on the other. The first is "Task with constraint aslateaspossible". The second, which is dependent on the first, is "Darth Vader", which has 2 subtasks: "Luke Skywalker" "Leia Skywalker"

All tasks initially have no constraints.

The strange behaviour we noticed is when we set the constraint "as late as possible" to the first task, "Task with constraint aslateaspossible".

This affects how "Darth Vader"'s subtasks are scheduled. And in fact here we see that "Leia Skywalker" has moved, now she starts as late as possible. Constraint as late as possible example 2.png

This seems strange to us because we would have expected the constraint to act only on the subtasks of the same task, not on the subtasks of a dependent task.

Additionally, if we set the "as soon as possible" constraint to "Darth Vader", the subtasks are still affected by the "as late as possible" constraint of the "Task with constraint aslateaspossible" task.

This behaviour was tested here: https://bryntum.com/products/gantt/examples/basic/

Thanks, Luca.

canonic-epicure commented 3 months ago

This one is probably already fixed in the master branch with recent refactoring. In current version the ALAP status is "propagated" on the successors chain and that was removed.