CrudManager allows a load operation to append records. But they are then syncable #7398
Labels
bug
Something isn't working
forum
Issues from forum
large-account
Reported by large customer
OEM
OEM customer
resolved
Fixed but not yet released (available in the nightly builds)
Milestone
Forum post
If in an before load event handler or callback, you set
options.events = { append : true }
the CrudManager will add the loaded events to the EventStore.But the
add
operation adds the new records to theadded
Bag, and they are then synced to the server in the nextsync
call, and then receive new IDs. This should not happen. If they are loaded by the CrudManager, they should be loaded "clean". and not be synced.AbstractCrudManagerMixin.js
has this where you can see theappend
option being processedOne (rather nasty) solution could be
Perhaps there could be an option passed into
Store.add
to mean "addClean" which would tell the store to not add the incoming records to theadded
BagThe text was updated successfully, but these errors were encountered: