Repository navigation
feat(core): Team Library connections cross as library records, and every Team Library call names its owner - #4661
Merged
Merged
Conversation
…ery Team Library call names its owner
…carry; regenerate the C# bindings
This was referenced Nov 27, 2026
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
ExportableConnection) and a saved connection, one way for every platform:tablepro_sync::adapters::library::{team_bundle, team_connection}. A bundle is written asConnectionBundleExporter.teamShareableSettingswrites it and read asDatabaseConnection(importing:)reads it.~/and are expanded on read; what the bundle has no place for (tags, group, project, favourite, credential profile, device settings) reads as the default; startup commands, a tunnel command and Local only never go out and are ignored on read; a copy links only an SSH profile this device holds.field_trust::portable_fieldsboth ways, as the Mac exporter does, so a field no file may carry never reaches a team.sshoption reads as no connection, as the Mac refuses it on import.SyncService::publish_team_connectionstakesLibraryConnectionRecords and builds each bundle;TeamConnectionArgis gone.TeamLibraryItemInfo.connectionis a connection item read as aLibraryConnectionRecord.SyncService::team_library_owner()gives the owner the service's TablePro Sync sign-in binds Team Library to.expected_ownerand is refused withsync.team_library.other_owneron another owner's engine, so a call started for one account never lands on the next one's library. A sign-in-bound call still checks that the sign-in holds after every await.Test plan
core/crates/sync/src/adapters/library/bundle_tests.rs: bundles as the Mac builder writes them (a plain connection, and one with every member away from its default) read and go back out unchanged; the read fills the saved connection's members; a team copy drops startup and tunnel commands and links only a held profile; a blank host, an unknown TLS mode and legacy timeouts read as the Mac imports them; the core's driver ids map to the Mac's type names; a switched-off tunnel and disabled TLS stay out; a driver field no file may carry stays out both ways.core/crates/ffi/src/sync/team_library.rstests: a published record goes as the Mac's bundle and a bad id is refused; a connection item reads as a library connection and a query as none; a copy whose tunnel host is an option reads as no connection; a call for another owner is refused and either spelling of this one passes.