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
Undo of deleting a parent tag leaves its child tags under Root Tag #1312
Create tags "Topic" and "Movie", with "Movie" extending "Topic".
Delete the tag "Topic". "Movie" now extends "Root Tag".
Press Ctrl+Z.
Expected
"Topic" is back, and "Movie" extends "Topic" again.
Actual
"Topic" is back, but "Movie" still extends "Root Tag".
Notes
Deleting a tag moves its child tags under "Root Tag". The undo restores the deleted tag but not its children's parent. #1305 is the reverse case: undo of deleting a tag that extends another tag adds "Root Tag" to the restored tag's own parents.
Found with a probe of undo on single operations, replayed on upstream master 16c4ed1a0.
Fixed on graphs without sync by logseq/logseq#13786. Undo of deleting a parent tag now replays the delete's recorded datoms, so Movie extends Topic again instead of staying under Root Tag. local-graph-undo-of-parent-tag-delete-restores-child-parent-test pins it. A synced graph still undoes through the old inverse op, which this PR does not change.
Activity
yuxi-liu-wired commentedon Oct 27, 2026
Fixed on graphs without sync by logseq/logseq#13786. Undo of deleting a parent tag now replays the delete's recorded datoms, so Movie extends Topic again instead of staying under Root Tag.
local-graph-undo-of-parent-tag-delete-restores-child-parent-testpins it. A synced graph still undoes through the old inverse op, which this PR does not change.