Skip to content

fix: show history for non-status enable-history properties - #13134

Open
tiensonqin wants to merge 4 commits into
masterfrom
logseq/property-history-display-8973
Open

tiensonqin wants to merge 4 commits into
masterfrom
logseq/property-history-display-8973

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Enabling enable property history on a property had no visible effect except for Status. History rows were already recorded for other properties (including built-in Priority), but the node UI only queried and rendered Status history via spent-time.

Fixes logseq/db-test#1120.

Change

  • Query all property-history rows for a node, not only Status.
  • Keep Status spent-time calculation and the existing Status history popup.
  • When enable-history is on and a non-status property changes, show a timestamp next to the node. Clicking it opens property history.
  • Properties without enable-history are still not recorded, so they stay hidden.

Tests

  • Recording: custom enable-history property and Priority write history rows; a property without enable-history does not.
  • Display: the block task-time resource returns non-status history (timestamp + property/value payload) with seconds 0, and mixed Status + Priority history still reports Status spent time.
  • frontend.worker.pipeline-test + frontend.worker.handler.render-resource-test: 103 tests, 750 assertions, 0 failures.
Open in Web Open in Cursor 

Copilot AI lite review requested due to automatic review settings August 27, 2026 17:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

cursoragent and others added 2 commits August 31, 2026 21:30
Property history was recorded for any property with enable-history, but the
node UI only queried and displayed Status. Surface timestamps and history
for other enable-history properties while keeping Status spent time.

Co-authored-by: Tienson Qin <[email protected]>
Look up history ref/scalar values from datoms so Status spent-time still
works on minimal schemas, and query history rows by property ident.

Co-authored-by: Tienson Qin <[email protected]>
@tiensonqin
tiensonqin force-pushed the logseq/property-history-display-8973 branch from 030ff2e to bb9ac20 Compare August 31, 2026 13:30
@tiensonqin tiensonqin self-assigned this Aug 31, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'enable property history' has no effect

3 participants