Hello
As in topic viewtopic.php?t=26818&start=10 already discussed, i start a new topic.
Our customer has a project with tons of tasks, about over 500+ tasks.
If this project it loaded in Gantt view it will fail with:
Error: Load failed
at f.onCrudRequestFailure (https://server/bryntum_gantt/static/gantt_src/js/chunk-vendors.js?v14.0.2.1.13:64:446903)
We tested around with worker settings, memory, cpu and other limits... no success.
One only way is to set workers = 0, then it loads those 500+ tasks in Gantt view.
Our current workaround is (we must do it, else customer can't work!):
file: bryntum_gantt/models/project_project.py
new field definition:
bryntum_only_active_tasks = fields.Boolean("Only active tasks", default=False, help="Show only tasks where stage option 'is_closed' is false!")
Add the new field also into the view after the field bryntum_auto_scheduling:
file: bryntum_gantt/views/project_views.xml
Then enhance controllers.py:
file: bryntum_gantt/controllers/controllers.py
replace line: 96
# WIN: workaround, list only tasks in active stages
# --------------------------------
bryntum_only_active_tasks = project.bryntum_only_active_tasks
task_objs = project.tasks
if bryntum_only_active_tasks:
task_objs = project.tasks.filtered(lambda r: r.stage_id.is_closed != True)
# --------------------------------
Regards
thomi