Repository navigation
fix(connections): apply remote deletions only for the iCloud sync categories that are on - #3179
Merged
Merged
Conversation
…egories that are on
Signed-off-by: Ngô Quốc Đạt <[email protected]>
This was referenced Sep 29, 2026
Merged
Merged
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
SyncSettings.syncs(_:)predicate overSyncRecordType, so a new record type does not compile until it is mapped to a switch.Tests
SyncPendingDeletionsTests(new):connectionDeletionFollowsItsSwitch,groupDeletionFollowsItsSwitch,tagDeletionFollowsItsSwitch,sshProfileDeletionFollowsItsSwitch,tableFavoriteDeletionFollowsItsSwitch,switchedOffCategoryLeavesOthersAppliedandeveryCategoryOffAppliesNothingfail without the fix (7 of the first 9 cases).credentialProfileDeletionFollowsItsSwitchandsqlFavoriteDeletionFollowsItsSwitchpass before and after, guarding the two categories that were already gated.eachSwitchWithholdsItsOwnRecordTypespins every record type to its own switch and fails when a type is mapped to the wrong one.SyncCoordinatorEchoTests.remoteDeletionsWithheldWhileCategoryOff(new): a tag and a group deleted elsewhere while Groups and Tags is off stay on this Mac, through a realSyncCoordinator.applyPullResult. Fails without the fix.SyncCoordinatorEchoTests.remoteChangeWithheldWhileCategoryOff(new): a remote tag change is not applied while Groups and Tags is off. Passes before and after; it guards the refactored changed-record loop.Docs
The docs rewrite branch covers the user-facing text for what a switched-off sync category does with deletions.