Our flexible Kanban board for managing tasks with drag drop


Post by pedrol3001 »

The flag silenceInitialCommit is disabled by default to avoid calling an initial sync method, passing the entire project to it (we do not want this).

The problem I am facing is when it is disabled, i dont know why, but the first "task create" I call when I have an empty taskboard is not sent to the backend.

Debugging the code, I found that in this first task creation method, the "added" property of the store is cleared because it is the "initialCommit", causing the request to not be sent. Creating another task, things work normally, but the first task becomes kind of a ghost that exists only on the kanban view and not on the database.

The problem only happens if the page is reloaded after clearing all kanban tasks and, only then, clicking on the + button to create a task. The kanban works normally if there are already tasks in it.

I am using a taskboard(kanban) and gantt integration, where the project model and stores are from "gantt-thin".


Post by alex.l »

Hi,

Sounds like a bug. I've opened a ticket here https://github.com/bryntum/support/issues/7855
You can subscribe on ticket updates to be notified when it's done.

Thanks for the report!

All the best,
Alex


Post by pedrol3001 »

Any way I can avoid this problem until you solve the bug ?


Post by alex.l »

Hi,

You can change the state of silenceInitialCommit config for such cases. As example, using https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#event-load event and check if no data in stores. And switch it back on https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#event-hasChanges

All the best,
Alex


Post Reply