Repository navigation
fix(sync): moves between providers recover, and TablePro Sync after Off keeps the edits made while off - #4768
Merged
Merged
Conversation
…Cloud pass meets this Mac's own copy, and TablePro Sync after Off keeps the edits made while off
…ervice, and the C# bindings are regenerated
This file contains hidden or 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
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.
Summary
choose_provider(TablePro Sync)on a TablePro Sync service whose file holds a move back ends it: the row goes under the policy gate and personal sync is on again (Mover::stay_on_service).run_arrivalreturns at once on aDonerow for TablePro Sync, so a second first upload queued behind one that went through no longer drops the bases and takes the server's copy over edits made between the two.cloudkit::NamedCalls, also used by the pass's fetch by name and the legacy import), halved onlimitExceeded. Each deletion call fetches its own names again right before it, keeps a copy changed since the base or one this build cannot read, and commits before the next call.open_movestarts TablePro Sync's engine first, so a move is not read as none while the engine waits to start; signed out reads as none.ProviderMovesreadsopenMove()per opened service, after a failed move back or read, and on status changes while a move is open. A finished move is taken up (stored provider and TablePro Sync's first pass) unless the person chose a provider since launch. A stopped move back shows Moving Back to iCloud Didn't Finish with Resume Move… and Cancel Move.Arrival::Resume): a field only one side changed merges, a field both changed opens a personal conflict (Judgement::Contest, team merge rules for that pass), decided with Keep Mine or Keep Theirs. With no kept bases, or after a move back or a restore, it is the first upload as before. The Mac's conflict sheet words a personal conflict as this Mac and its other devices.open_moveruns whole on the core runtime (self: Arc<Self>), so reading it from an app thread no longer panics with "requires a Tokio context" (E2E W4 on Windows).verify.sh --platform windows bindings); the open_move checksum is unchanged.SyncProviderPolicyTests.forcedTableProSyncpinned a Mac on iCloud going Off under a forced TablePro Sync; it now stays on iCloud when it has iCloud data, Off when not (settledProvidertakesmovesFromICloud). The FFI tests from fix(sync): a move without iCloud's last pass keeps the deletions iCloud sent, another provider ends a move, and the app closes sync #4749 that readopen_movenow pass their ownArcof the service.Test plan
core/crates/sync/tests/engine/moves.rs):a_move_without_the_last_icloud_pass_takes_what_another_device_moved_over_an_older_copya_move_without_the_last_icloud_pass_sends_only_what_the_device_changed_since_its_own_copya_move_without_the_last_icloud_pass_keeps_an_edit_another_device_moved_over_a_deletion_from_an_older_copya_first_upload_after_one_that_went_through_keeps_what_the_device_edited_sincestaying_on_tablepro_sync_over_a_move_back_cut_short_ends_it_and_personal_sync_goes_ona_move_back_with_more_deletions_than_one_cloudkit_call_takes_deletes_them_alla_record_edited_on_icloud_while_the_move_back_runs_stays_thereeach_move_back_deletion_follows_a_fetch_of_its_own_namestablepro_sync_chosen_again_after_off_keeps_the_edits_made_while_offthe_open_move_is_read_from_a_thread_outside_the_runtime.cloudkit::namedcalls order and halving;MoveMarker::names.a_first_upload_from_off_takes_the_server_s_copy_and_sends_what_the_server_lackskeeps "the server's copy wins" for a device with no kept bases, which the new rule leaves as it was.ProviderMovesTests,SyncProviderPolicyTests,SyncPaneLayoutTests,TeamLibraryFieldConflictSheetTests,TeamLibraryTests): a personal conflict names this Mac and its other devices; forced TablePro Sync moves from iCloud; an unfinished move back is shown and cancelled; one read after a restart; a failed read is tried again; a finished move is taken up, and not over an Off chosen before or after the read.cargo testfor records, sync, sync-testing and ffisync::all pass;cargo clippy --locked -p tablepro-records -p tablepro-sync -p tablepro-sync-testing -p tablepro-ffi --all-targets -- -D warningsclean;cargo fmt --checkclean;verify.sh test8 suites, 202 passed;verify.sh l10nPASS;verify.sh --platform windows buildPASS.