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
Sync-ready relationship timestamps: preserve created_at on same-parent reorder #795
Currently, move_node uses DELETE + RELATE (create new) pattern for ALL moves, including same-parent reorders:
DELETE relationship WHERE out = $node_id AND relationship_type ='has_child';
RELATE $parent_id->relationship->$node_id CONTENT {
relationship_type: 'has_child',
properties: { order: $order },
created_at: time::now(), -- loses original timestamp
modified_at: time::now(),
version: 1-- resets version
};
This causes issues for cloud sync and conflict resolution:
Lost created_at - Original relationship creation time is lost on every reorder
Reset version - OCC version resets to 1, breaking conflict detection
Indistinguishable operations - Can't tell "reorder within parent" from "move to new parent"
Solution
Differentiate between same-parent reorder and cross-parent move:
Same-parent reorder (UPDATE)
UPDATE relationship
SETproperties.order= $order,
modified_at =time::now(),
version = version +1WHEREin= $parent AND out = $child AND relationship_type ='has_child';
Cross-parent move (DELETE + CREATE)
-- Current behavior is correct - new relationship = new created_atDELETE relationship WHERE out = $node_id AND relationship_type ='has_child';
RELATE $new_parent_id->relationship->$node_id CONTENT { ... };
Acceptance Criteria
move_node detects if parent is changing vs. just reordering
Activity
malibio commentedon Jan 7, 2026
Test Baseline
Frontend: 3431 tests passed (101 test files)
Rust nodespace-app: 23 tests passed
Rust nodespace-core: 673 passed, 1 pre-existing failure (
test_get_children_tree_sibling_ordering)Starting work on this issue.
feat: Preserve created_at on same-parent reorders (Issue #795)
feat: Preserve created_at on same-parent reorders (Issue #795) (#796)
feat: Preserve created_at on same-parent reorders (Issue #795) (#796)
feat: Preserve created_at on same-parent reorders (Issue #795) (#796)
feat: Preserve created_at on same-parent reorders (Issue #795) (#796)
Make create_parent_edge idempotent + translate None hint to append-at…
Make create_parent_edge idempotent + translate None hint to append-at…