Local restore and backup.#725
Conversation
…l to start restore procedure
# Conflicts: # src/options/backup/screens/overview.tsx
Added a temporary icon for it.
Created a new reusable button component called SmallButton.
# Conflicts: # src/util/ui-logic.ts
- refers to hotfix #723
…m/WorldBrain/Memex into feature/local-storage-restore-tmp
|
From a UX and UI perspective this is ready to go into production. However there are still some oddities: I did a full restore with my 2gb data library from G Drive too and all worked well without errors. 👍 However there is
I feel like before we start implementing the syncing problem (or as part of it), we should make sure that we figure out those indexedDB oddities somehow, and if those are not the cause then make really sure that all data is properly backed up and restored. Will now do a backup to my local hard drive to compare and can more tomorrow. |
|
Ok some more data: Good news:
Bad news:
Setup:
|
Also, changed some logic for state.valid.
Yup, that's one thing we've learned from this whole adventure. The new sync tech sits in front of Dexie, captures all modifications, and turns them into transactions that contain the original write and the write to the sync log. That we we're always 100% sure each and every change is logged. (Right now we're using Dexie hooks, which are more unpredictable it seems. Plus, they're not portable to different databases.) |
Fix logical errors in prev commit's implementation Comment out chunking loop for now Revert "Comment out chunking loop for now" This reverts commit 3af0e67. Set up objectChange PKs as inc PKs rather than timestamps Fix order of pagination operations in dexie query - apparently that's important....
47e2b24 to
3cb6ac4
Compare
Created a new template component for the overlay and moved it to src/common-ui.
|
Thanks @digi0ps for the awesome work to finish this one up :) ready to launch baby! |
Forked off #709.
@oliversauter Ticked off most of the things in the list you made in the previous PR.
Remaining:
Don't exactlly get this. Do you mean change the choice of backend or change the local backup? Both are possible right now, if you click the "change" button.
I don't think I deleted any restore code as such. But a rebase error might have happened. @ShishKabab can you check when you are free?