Closed marciogurka closed 4 months ago
Initial debugging shows that on Scheduler/crud/AbstractCrudManagerMixin.js
on the sync()
function we need to verify the forceSync
flag.
We are already checking for forceSync
. If you check the getChangesetPackage
in AbstractCrudManagerMixin
, you are gonna see that when there are no changes
and forceSync
is set to true
, we are still returning an object with request and revision id.
However in getChangesetPackage
in CrudManager
we are checking that if the pack
is not null, which is true in our case, we check for single assignment mode which also becomes true in our testCase example, we are removing the assignments. And just below that, we are validating storeIds
and as changes are already undefined in the pack, (!this.crudStores.some(storeInfo => pack[storeInfo.storeId]))
becomes true
and we are returning null
in that case. So i have added that check to execute that piece of code only when there are some changes on crudManager
. We don't want that piece of code being executed if there are no changes.
Forum post
According to docs, if we config
forceSync: true
, the sync should be triggered even with no changes. But currently that's not the behavior that we're observing.Demo based on https://bryntum.com/products/scheduler/examples/airport/
The expected behavior is that the sync API call is made even with no changes to the events.