Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and change extraData for item change notifications
- Some item changes were putting data in the wrong form into extraData, which was keeping it from being passed through in notifications. - For item modifications, set a 'changed' object, keyed by itemID, with just the fields that changed as keys and their old values. For deletes, keep the 'old' object for now, since sync relies on it. - Remove item.serialize() for all item changes except deletions, which should speed up writes (and which will leave extraData empty for some changes). - Currently only item fields, creators, related items ('related'), and 'parentItem' are added to 'changed'. Closes #220
- Loading branch information
Showing
2 changed files
with
118 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.