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
NodeService: is_persisted and non-cascading delete_leaf_node (for sync#596) #3859
Sync's conflict-journal drop (nodespace-sync#596) needs two additive core APIs.
Scope
NodeService::is_persisted(id): whether a node is a stored row, as opposed to a virtual date node (get_node returns a computed placeholder at version 1 for any unstored YYYY-MM-DD id, indistinguishable from a persisted one at snapshot 0).
NodeService::delete_leaf_node(id, expected_version): deletes exactly one node and its own edges, and reports HasChildren (deleting nothing) when a child exists at commit time, so a child created under the leaf after the caller collected its subtree is not orphaned. Same OCC, access gate and NodeDeleted event as delete_node.
Acceptance criteria
Both APIs are additive (no change to existing signatures, behaviour or wire types) and covered by tests that fail when the behaviour is removed.
Activity