Repository navigation
Skip deleted query table rows instead of Query error - #13538
Merged
Merged
Conversation
View-data reloads immediately after a listed block is deleted while the query resource still carries that row UUID. Skip missing rows instead of throwing, so the table and sibling snapshot resources stay alive. Fixes logseq/db-test#1368 Co-authored-by: Tienson Qin <[email protected]>
devin-ai-integration
Bot
force-pushed
the
logseq/fix-query-table-delete-row-2b91
branch
from
September 30, 2026 16:41
2ac3a7e to
6c3e64d
Compare
Contributor
Before / after UX verificationBefore: master After: Desktop browser flow passed; loaded revision verified. |
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 1, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 4, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 8, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 11, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 13, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 16, 2026
1 of 2 tasks
megayu
approved these changes
Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes logseq/db-test#1368.
Deleting a block that a query table lists no longer replaces the table with "Query error: Report issue" or rejects sibling snapshot resources in the same
get-render-snapshotsbatch.Cause
Query table view-data resolves
:query-row-uuidswith a fail-fast entity lookup. After delete, view-data reloads immediately (it watches:block/updated-at) while the query resource still lists the deleted UUID for up to 2s. The missing UUID threwMissing renderer resource entityand rejected the whole snapshot batch.Change
Skip query-row UUIDs that no longer have an entity, the same way a deleted view already renders as empty. Remaining rows stay in the table.
Test
frontend.worker.handler.render-resource-test/query-view-data-skips-stale-query-row-uuids-testdeletes one of two query-row UUIDs, then asserts:UX
Desktop browser flow on a two-row
#Projectquery table: