-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Self-hosted server sync #219
Merged
Merged
Conversation
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
tmpfs
force-pushed
the
server-sync
branch
2 times, most recently
from
December 4, 2023 04:13
263f8db
to
746a4d5
Compare
So that the client-side merge will be able to replay events on the local account.
Use a Summary pointer not a Gatekeeper reference.
To be more consistent with function names in other types.
We need to merge events at the account level so may as well implement it there.
With a view to diff/merge test spec that does not perform any networking.
Add test spec for set_folder_description().
Always sign the URL path.
We need to handle the generic when the `sync` feature is not enabled so use std::marker::PhantomData.
Start tidying the HTTP client implementation.
So that the API is consistent.
Always prefix with api/v1/sync path.
To ensure we shutdown the file transfers background task before teardown tries to remove the integration test directory.
Requires work to show status comparison.
Fix bug with loading files event log and make file transfer queue loading from disc more fault tolerant.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
StorageProvider
traitPatchFile
type, just use in-memory patchessync_before_apply_change
infallible (otherwise it would prevent local writes)sync_send_events
along with value so callers can see if their local changes were applied to a remote, this can be an additionalOption<Error>
return valuesos check log
verbose output as a debugging aidArc
forUserPaths
after initialization (then we don't need to keep await in UserStorage - removepaths()
and just clone the Arc)debug
path (some tests are still writing to it!)sos check events
for a verbose listing of all the events in a folderrpc
module fromsos-sdk
tosos-net
WebSocketHandle
to close the connectionLocalProvider
tosos_sdk
EventLogFile
generic over the type of eventAccountEvent
andAccountEventLog
for account level events (eg: create/delete folders)WriteEvent
- we have to convert to owned anyhow, just clone it when neededevents
subcommand (move fromcheck events
) and add support for account and file event logsAccountsList
intoAccount
FileEvent
andFileEventLog
to track changes to external filessos-migrate
intosos-sdk
behind themigrate
feature flagexport_unsafe_archive
andimport_file
toLocalAccount
LocalAccount
UpdateVault
variant fromWriteEvent
FolderStorage
on the server-side as wellFolderStorage
FolderStorage
)vaults
) (it doesn't have an event log so appears a bit weird when looking in the folders - write to device directory instead?)remote
instead oflocal
for server-side directories?SecureAccessKey
and listen bridge channelsFolder
type inIdentityVault
so we track changesOrigin
type can be a struct not an enum now (as the API will be the same for self-hosted and cloud)init
command to server - write out config fileTests
Closes #191 and closes #222 and closes #224 and closes #228.