Premium support for our pure JavaScript UI components


Post by shaveta »

Hi,

We have imported the data to Gantt from 3rd party and it has a cyclic dependency. On a load of Gantt "Scheduling Cycle" window popup. Once you hit deactivate/remove the dependency, the dependency store behind the scenes doesn't get updated. So popup never goes from UI. Below are the steps to reproduce.
1) Create a simple Project Plan with 3 tasks "New Task1", "New Task2", and "New Task3".
2) Add dependencies
New Task1 >> New Task2
New Task2 >> New Task3
New Task3 >> New Task1
3) On load of Gantt "Scheduling cycle" window popup up
4) Remove dependency New Task3 >> New Task1

The dependency store for removed dependencies doesn't get updated. Although dependency gets removed from the UI
Same issue with "Scheduling Conflict" when it violates the constraint. These issues are related to data loaded from External sources and causing Gantt to break.

Please let me know if there is any patch for this fix. It can be easily reproduced in the latest Gantt version 5.3.1.

Screenshot 2023-03-21 at 7.23.03 AM.png
Screenshot 2023-03-21 at 7.23.03 AM.png (241.62 KiB) Viewed 175 times
Screenshot 2023-03-21 at 7.29.12 AM.png
Screenshot 2023-03-21 at 7.29.12 AM.png (350.39 KiB) Viewed 171 times

Post by alex.l »

Hi Shaveta,

I tried to reproduce this problem in our advanced demo.

I used next data:

    "tasks"        : {
        "rows" : [
            {
                "id"          : 1000,
                "name"        : "Launch SaaS Product",
                "percentDone" : 34,
                "startDate"   : "2019-01-14",
                "endDate"     : "2019-03-20",
                "duration"    : 47,
                "expanded"    : true
            },
            {
                "id"          : 1001,
                "name"        : "Launch SaaS Product 1",
                "percentDone" : 34,
                "startDate"   : "2019-01-15",
                "endDate"     : "2019-03-21",
                "duration"    : 47,
                "expanded"    : true
            },
            {
                "id"          : 1002,
                "name"        : "Launch SaaS Product 2",
                "percentDone" : 34,
                "startDate"   : "2019-01-16",
                "endDate"     : "2019-03-23",
                "duration"    : 47,
                "expanded"    : true
            }
        ]
    },
    "dependencies" : {
        "rows" : [
            {
                "id"       : 1,
                "fromTask" : 1000,
                "toTask"   : 1001
            },
            {
                "id"       : 2,
                "fromTask" : 1001,
                "toTask"   : 1002
            },
            {
                "id"       : 3,
                "fromTask" : 1002,
                "toTask"   : 1000
            }
        ]
    },

When I opened a Gantt I see conflict resolution dialog, I selected to remove last dependency (1002->1000) and it just removed.
gantt.dependencyStore doesn't have that dependency anymore. So what's the actual bug?

All the best,
Alex


Post by shaveta »

alex.l wrote: Tue Mar 21, 2023 11:13 am

Hi Shaveta,

I tried to reproduce this problem in our advanced demo.

I used next data:

    "tasks"        : {
        "rows" : [
            {
                "id"          : 1000,
                "name"        : "Launch SaaS Product",
                "percentDone" : 34,
                "startDate"   : "2019-01-14",
                "endDate"     : "2019-03-20",
                "duration"    : 47,
                "expanded"    : true
            },
            {
                "id"          : 1001,
                "name"        : "Launch SaaS Product 1",
                "percentDone" : 34,
                "startDate"   : "2019-01-15",
                "endDate"     : "2019-03-21",
                "duration"    : 47,
                "expanded"    : true
            },
            {
                "id"          : 1002,
                "name"        : "Launch SaaS Product 2",
                "percentDone" : 34,
                "startDate"   : "2019-01-16",
                "endDate"     : "2019-03-23",
                "duration"    : 47,
                "expanded"    : true
            }
        ]
    },
    "dependencies" : {
        "rows" : [
            {
                "id"       : 1,
                "fromTask" : 1000,
                "toTask"   : 1001
            },
            {
                "id"       : 2,
                "fromTask" : 1001,
                "toTask"   : 1002
            },
            {
                "id"       : 3,
                "fromTask" : 1002,
                "toTask"   : 1000
            }
        ]
    },

When I opened a Gantt I see conflict resolution dialog, I selected to remove last dependency (1002->1000) and it just removed.
gantt.dependencyStore doesn't have that dependency anymore. So what's the actual bug?

I am using CRUD Manager and State Tracking Manager is not updating, even on sync I am not getting dependencies > removed dependencies although it is removed from UI


Post by alex.l »

What state for https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-silenceInitialCommit do you have?
This is initial commit, so if you used default value fro that prop, you won't have any changes from initial tasks scheduling

All the best,
Alex


Post Reply