Hello, exporting gantt to ms project takes a very long time, causing the whole UI to freeze. As I found out, this is related to the export of the calendar. If you delete the calendar, the export will be instant. Same problem with your online demo. Please help me solve the problem.
I am attaching a json file with data that comes from the back-end for the gantt.
Re: [REACT] Long export to MS project
Posted: Fri Nov 25, 2022 3:16 pm
by marcio
Hey Ayurchenkoi,
Thanks for the report, we'll be analyzing that scenario and provide you some insights or updates on exporting features after that (if needed). Please follow the ticket for updates https://github.com/bryntum/support/issues/5664
Re: [REACT] Long export to MS project
Posted: Tue Nov 29, 2022 11:00 am
by Ayurchenkoi
Hi, Marcio.
Have news on our request?
Re: [REACT] Long export to MS project
Posted: Tue Nov 29, 2022 11:37 am
by alex.l
Hello Ayurchenkoi,
We didn't start work on the ticket, so no news for now. You can subscribe on ticket updates to be notified when it's done.
Re: [REACT] Long export to MS project
Posted: Fri Dec 02, 2022 10:48 am
by Ayurchenkoi
Hi,
We reproduced incorrect behavior (long export) on your booth (https://bryntum.com/products/gantt/examples/msprojectexport/), img in attachment
Scenario: when a calendar other than Default is assigned to each schedule job. It hangs on your test, even with 20 works with different calendars, in our case, there are 1000+ such works
Re: [REACT] Long export to MS project
Posted: Fri Dec 02, 2022 12:02 pm
by marcio
Hi,
Thanks for the test case on our demos, added it to the ticket to help our dev team.
Re: [REACT] Long export to MS project
Posted: Tue Dec 06, 2022 6:38 am
by Ayurchenkoi
Marcio, hi. What news on our request?
Re: [REACT] Long export to MS project
Posted: Tue Dec 06, 2022 6:58 am
by alex.l
Hi Ayurchenkoi,
No news. You can subscribe on ticket updates to be emailed when any changed in ticket's status.
Re: [REACT] Long export to MS project
Posted: Tue Dec 13, 2022 8:25 am
by Ayurchenkoi
Hi, Alex.
What's the progress on our request? when can we expect fixes? Perhaps you have a workaround so that we can achieve the correct result
Re: [REACT] Long export to MS project
Posted: Tue Dec 13, 2022 8:44 am
by arcady
Hello.
We've started on the issue and found the reason but haven't 100% properly resolved it yet.
So far a workaround could look like this:
// override MspExport feature class
class MyMspExport extends MspExport {
static get $name() {
return 'MspExport';
}
// clone original calendar when exporting calendar weeks
formatWeekDays(calendar) {
return super.formatWeekDays(calendar.copy());
}
}
// register our overridden feature
GridFeatureManager.registerFeature(MspExport, false, 'Gantt');
// override calendar model to fix "intervals" field cloning
class MyCalendarModel extends CalendarModel {
processIntervalsStoreData(value) {
// clone intervals when copying calendar model
if (value?.isStore) return value.getRange().map(interval => interval.copy());
return value;
}
}
new Gantt({
project : {
// let project know of the overridden calendar model
calendarModelClass : MyCalendarModel,
...
},
...
})