You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Column layouts of link and file-open connections sync to iCloud #4423
With iCloud Sync and its Settings category on, column widths and order saved on a connection opened from a link (postgresql://...) or by opening a database file in Finder go up to iCloud. Those connections are never saved and get a new id on every open, so the records land on every Mac under an id no connection has, and nothing deletes them.
Steps to reproduce
Turn on iCloud Sync with Settings checked.
Run open 'postgresql://user@localhost/db', or double-click a .sqlite file, and connect.
Open a table and resize a column.
The next sync pushes a columnLayout. settings record named after that connection's id.
Expected behavior
Records owned by a connection that exists only for this session (origin .link, or opened from a file) stay on this Mac.
Code path
ColumnLayoutPersister.save marks the layout dirty for any connection id (apple/TablePro/Core/Storage/ColumnLayoutPersister.swift:56-81).
SyncBoundary refuses only library connections that opt out (participatesInSync) and deleted owners (apple/TablePro/Core/Sync/SyncBoundary.swift:13-26). Any other owner passes (:36-41), and collectSettings pushes it (apple/TablePro/Core/Sync/Extensions/SyncCoordinator+PushCollection.swift:299-312).
Link: apple/TablePro/Core/Utilities/Connection/TransientConnectionFactory.swift:60. File open: apple/TablePro/Core/Services/Infrastructure/TabRouter.swift:471-478, a new unsaved connection per open.
Unknown owners pass on purpose, for a connection another Mac has not pulled yet (SyncBoundaryTests "Local only and sample connections are refused as owners, synced and unknown ones are not"). The fix needs this session's transient ids, not a refusal of every unknown id.
Table favorites, database favorites, saved queries and table folders owned by such a connection go through the same check (SyncCoordinator+PushCollection.swift:349-460).
Found by reading the code at main, not run against iCloud.
Activity