Skip to content

fix(sync): the move sheet counts only the Local only connections and turned-off categories that stay - #4817

Merged
datlechin merged 2 commits into
mainfrom
fix/sync-move-stay-count
Dec 1, 2026
Merged

datlechin merged 2 commits into
mainfrom
fix/sync-move-stay-count

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • The move and upload plan counted every personal record that does not go up as staying: each column layout, favourite or table folder of a connection the Mac no longer holds (standing Unknown), and every record of a Local only connection. With every category on, a Mac that opened many tables over since-deleted connections read "1782 items stay on this Mac".
  • MovePlan has local_connections (Local only and sample connections) and turned_off (records a turned-off category holds back, passwords included) in place of staying_behind. A record of a connection that stays, or of one this device does not hold, is in neither count.
  • Mac SyncMoveSheet and Windows SyncUploadDialog show one line per count. Linux has no move or upload sheet.
  • FFI MovePlanInfo and the regenerated Windows bindings follow.

Test plan

  • core/crates/sync/tests/engine/moves.rs, the_plan_counts_what_stays_by_the_names_the_sheet_gives_it: layouts of a synced, a Local only and a deleted connection, saved queries turned off. The old rule counted 8 staying; now 1 connection and 2 turned off.
  • local_only_records_stay_behind_and_the_plan_counts_them moves to the new fields.
  • Local: tablepro-sync 1218/1218, tablepro-ffi sync:: 74/74, Windows build and TablePro.App.Model.Tests, Mac build and ProviderMovesTests 52/52, lint, l10n.

@datlechin
datlechin merged commit c898d8a into main Dec 1, 2026
31 of 34 checks passed
@datlechin
datlechin deleted the fix/sync-move-stay-count branch December 1, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant