Steps
- Create a text property "note" and set it on a few blocks.
- Add a table view and group it by "note".
- Delete the property "note".
- Press Ctrl+Z.
Expected
"note" is back, and the view is grouped by "note" again.
Actual
"note" is back, but the view is no longer grouped: its "group by" setting stays empty.
Notes
The view's group-by setting (:logseq.property.view/group-by-property, type :property) is a reference to the property entity, so deleting the property removes it. The undo re-creates the property but does not restore references to it from other nodes (#1338, same family as logseq/logseq#1311). The view's sort and filter settings store the property as a value, not a reference, so they are not affected.
Found with a probe of undo on single operations, replayed on upstream master 16c4ed1a0: before the delete the view's group-by is :user.property/note; after the delete and after the undo it is empty.
Steps
Expected
"note" is back, and the view is grouped by "note" again.
Actual
"note" is back, but the view is no longer grouped: its "group by" setting stays empty.
Notes
The view's group-by setting (
:logseq.property.view/group-by-property, type:property) is a reference to the property entity, so deleting the property removes it. The undo re-creates the property but does not restore references to it from other nodes (#1338, same family as logseq/logseq#1311). The view's sort and filter settings store the property as a value, not a reference, so they are not affected.Found with a probe of undo on single operations, replayed on upstream master
16c4ed1a0: before the delete the view's group-by is:user.property/note; after the delete and after the undo it is empty.