Our state of the art Gantt chart


Post by rayudu.pasumarthy »

Hi,

Before_Resize.JPG
Before_Resize.JPG (49.11 KiB) Viewed 837 times

Our project taskStore uses syncDataOnLoad to sync the changes after every move and all tasks are set to manually scheduled.
Considering the above image, we take selected task (2.2.6) and resize it's endDate to 14th Feb, Friday.
Once the resize event has ended, we sync the changes with our current dataset using syncDataOnLoad. But at the end of the drag, the selected task (2.2.6) startDate becomes Saturday 18th Jan instead of Monday 20th Jan even though the updated JSON has startDate as 20th Jan, Monday.

After_Resize.JPG
After_Resize.JPG (51.96 KiB) Viewed 837 times

This scenario only happens when syncDataOnLoad is enabled. Any thoughts/suggestions?

Thanks,
Rayudu


Post by alex.l »

Hi Rayudu,

We need a full test case to help you with it. As well JSON responses for initial load and sync. There are many reasons why it may happens.

All the best,
Alex


Post by rayudu.pasumarthy »

Hi Alex,

Please replace the below code in the gantt advanced example (https://bryntum.com/examples/gantt/advanced/)

import { Toolbar, CalendarModel, Toast, DateHelper, CSSHelper, Column, ColumnStore, TaskModel, Gantt } from '../../build/gantt.module.js?449764';
import shared from '../_shared/shared.module.js?449764';

const gantt = new Gantt({
    appendTo : 'container',

project : {
    eventStore : {
        syncDataOnLoad : true
    },

    repopulateOnDataset : false,

    eventsData : [
    {
    "id": "79d9b2d5-82bc-4e82-9e9f-a030d0463e27",
    "name": "Email Notifications & Auto-updates",
    "startDate": "2021-02-26T00:00:00",
    "endDate": "2021-03-11T23:59:59",
    "taskDuration": 10,
    "expanded": true,
    "manuallyScheduled": true,
    "children": [
      {
        "id": "9e09ccc8-f6c8-4fc6-a92d-c7d82587bae4",
        "name": "Daily Task Update Reminder",
        "startDate": "2021-02-26T00:00:00",
        "endDate": "2021-02-26T23:59:59",
        "taskDuration": 1,
        "manuallyScheduled": true,
      },
      {
        "id": "05b35d05-21b9-4a06-8898-d9b7f8efcca4",
        "name": "New Task Assigned to You",
        "startDate": "2021-03-01T00:00:00",
        "endDate": "2021-03-01T23:59:59",
        "taskDuration": 1,
        "manuallyScheduled": true,
      },
      {
        "id": "6f02b615-638d-4643-be59-78b0e7b787b9",
        "name": "New Actionable Task",
        "startDate": "2021-03-02T00:00:00",
        "endDate": "2021-03-02T23:59:59",
        "taskDuration": 1,
        "manuallyScheduled": true,
      },
      {
        "id": "ab96d5d2-04b8-42a1-b2eb-aa3d80c5bcfd",
        "name": "Critical Task Duration has grown or been significantly delayed",
        "startDate": "2021-03-03T00:00:00",
        "endDate": "2021-03-03T23:59:59",
        "taskDuration": 1,
        "manuallyScheduled": true,
      },
      {
        "id": "74207363-3804-4c07-964e-e309841972bd",
        "name": "Multiple, queued, critical tasks",
        "startDate": "2021-03-04T00:00:00",
        "endDate": "2021-03-04T23:59:59",
        "taskDuration": 1,
        "manuallyScheduled": true,
      },
      {
        "id": "a9ac09e5-57a5-41bf-92bb-54ef6b738c48",
        "name": "Update Project Start/End Dates",
        "startDate": "2021-02-26T00:00:00",
        "endDate": "2021-02-26T23:59:59",
        "taskDuration": 1,
        "manuallyScheduled": true,
      },
      {
        "id": "d535ed23-1692-171e-4f39-305d3b2aa6ca",
        "name": "Fill Segment Gaps",
        "startDate": "2021-03-08T00:00:00",
        "endDate": "2021-03-08T23:59:59",
        "taskDuration": 1,
        "manuallyScheduled": true,
      }
    ]
}
]},
});

gantt.project.commitAsync().then(async() => {

gantt.eventStore.loadDataAsync([
    {
        "id": "79d9b2d5-82bc-4e82-9e9f-a030d0463e27",
        "name": "Email Notifications & Auto-updates",
        "startDate": "2021-02-17T00:00:00",
        "endDate": "2021-03-11T23:59:59",
        "taskDuration": 17,
        "expanded": true,
        "manuallyScheduled": true,
        "children": [
          {
            "id": "9e09ccc8-f6c8-4fc6-a92d-c7d82587bae4",
            "name": "Daily Task Update Reminder",
            "startDate": "2021-02-17T00:00:00",
            "endDate": "2021-02-17T23:59:59",
            "taskDuration": 1,
            "manuallyScheduled": true,
          },
          {
            "id": "05b35d05-21b9-4a06-8898-d9b7f8efcca4",
            "name": "New Task Assigned to You",
            "startDate": "2021-03-01T00:00:00",
            "endDate": "2021-03-01T23:59:59",
            "taskDuration": 1,
            "manuallyScheduled": true,
          },
          {
            "id": "6f02b615-638d-4643-be59-78b0e7b787b9",
            "name": "New Actionable Task",
            "startDate": "2021-03-02T00:00:00",
            "endDate": "2021-03-02T23:59:59",
            "taskDuration": 1,
            "manuallyScheduled": true,
          },
          {
            "id": "ab96d5d2-04b8-42a1-b2eb-aa3d80c5bcfd",
            "name": "Critical Task Duration has grown or been significantly delayed",
            "startDate": "2021-03-03T00:00:00",
            "endDate": "2021-03-03T23:59:59",
            "taskDuration": 1,
            "manuallyScheduled": true,
          },
          {
            "id": "74207363-3804-4c07-964e-e309841972bd",
            "name": "Multiple, queued, critical tasks",
            "startDate": "2021-03-04T00:00:00",
            "endDate": "2021-03-04T23:59:59",
            "taskDuration": 1,
            "manuallyScheduled": true,
          },
          {
            "id": "a9ac09e5-57a5-41bf-92bb-54ef6b738c48",
            "name": "Update Project Start/End Dates",
            "startDate": "2021-02-26T00:00:00",
            "endDate": "2021-02-26T23:59:59",
            "taskDuration": 1,
            "manuallyScheduled": true,
          },
          {
            "id": "d535ed23-1692-171e-4f39-305d3b2aa6ca",
            "name": "Fill Segment Gaps",
            "startDate": "2021-03-08T00:00:00",
            "endDate": "2021-03-08T23:59:59",
            "taskDuration": 1,
            "manuallyScheduled": true,
          }
        ]
      },
]);
});

After the loadDataAsync() gets called, Email notifications has an endDate of March 11th, but it is visually represented as March 2nd.

Could you please let us know why the parent end date is changing.

Thanks,
Rayudu


Post by alex.l »

Thank you for the test case, I was able to reproduce the issue, we will investigate it. Here is a ticket to track the status: https://github.com/bryntum/support/issues/2769

All the best,
Alex

All the best,
Alex


Post by rayudu.pasumarthy »

Hi,

Is there any info on when this fix would arrive?

Thanks,
Rayudu.


Post by alex.l »

It is targeted to next major release. We cannot provide you exact dates, but we aimed to release it in next few weeks.

All the best,
Alex


Post Reply