mirror of
https://github.com/appy-one/acebase-client.git
synced 2026-05-24 22:01:18 -06:00
[GH-ISSUE #3] Synchronize issue: offline edits to removed objects #1
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase-client#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @appy-one on GitHub (Mar 3, 2021).
Original GitHub issue: https://github.com/appy-one/acebase-client/issues/3
Originally assigned to: @appy-one on GitHub.
When using AceBaseClient with a local cache db, the following can occur:
Example:
Consider a contact in the db:
{ name: 'Ewout', email: 'me@appy.one', phone: '+31612345678', last_called: (date) }client1 updates
last_calledwhile offline:client2 deletes the contact while online:
client1 goes online and pushes the change to the server. causing the stored contact to be "broken":
{ last_called: (date) }because it was re-created by client1's update.This should be prevented somehow.
@appy-one commented on GitHub (Mar 18, 2021):
I'm currently testing moving schema validation from
acebase-servertoacebase, so it can be done at storage level. This could prevent those broken nodes to be created, while also making schema validation possible for standalone databases without a server endpoint. Schema validation would then also become available for IndexedDB databases in the browser.@appy-one commented on GitHub (Mar 24, 2021):
Schema validation is now available in
acebasev1.3.0Next step is to update
acebase-serverto use the schema validation inacebaseand remove its own validation code.@appy-one commented on GitHub (Mar 26, 2021):
acebase-servernow usesacebase's schema validation. The "broken object" issue can now be prevented by setting schema rules.