Repository navigation
fix(sync): the status names what stays out of sync and a key state that stops personal sync - #4829
Merged
Merged
Conversation
…at stops personal sync
…s its tag is named as changed on the server
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
SyncStatus.unsyncedcounts what stays out of sync in the personal and history scopes, by why, from the state file: changed on the server (fails its tag, moved or renamed), sent with keys the account replaced since, an older copy served again, one this version can't read, other, too large, refused. Held sealed copies are opened again to name the reason, so the state file format stays. Waits and Team Library rows are not counted; the open names no reason until the first pass.sync.adapter.unreadableno longer reads Sync Failed.SyncProviderCoordinatorTests.listenerRefreshesStatus(a failed pass no longer moves Last synced),SyncPaneTests.AnUpToDatePcShowsWhenItLastSyncedAndSyncNow(reads the kept last sync).Test plan
sealed::the_status_counts_each_refused_copy_by_why_after_the_pass_the_next_and_a_launch,an_older_copy_counts_until_the_write_back_lands_and_a_store_refusal_counts_as_unreadable,a_change_over_the_record_limit_counts_and_waits_team_rows_and_passing_refusals_do_not, CloudKita_pass_that_holds_a_value_the_store_refused_says_so, sync-hostwhat_stays_unsynced_is_the_personal_provider_s.SyncPaneLayoutTests(refused copies, who each cause goes to, waiting values first, each lock and its actions, Welcome blocker),ProviderMovesTests(key signal, a failed read, a service that opens late),SyncProviderCoordinatorTests.SyncPaneTests(a failed pass at rest, not synced, lock actions, last sync),LocalizationTests.