Repository navigation
Keep archived nodes out of the @ mention picker - #3459
Conversation
Pragmatic Code Review: PR #3459Review Type: Initial Review (no prior reviews or comments on the PR) Reviewed commit: SummaryA one-condition change to Requirements Check (issue #3428)
No deviations from the issue's scope. The type-exclusion list is unchanged, as the issue requires. What I checked beyond the diff
Code Review Findings1. Important (not blocking): a literal
|
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Review addressedAddressed (1)
Skipped (1)
Checks: Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: the review verdict was APPROVE with no critical findings, and the only change since is a comment edit with no logic change. |
mention_autocomplete now offers only nodes whose lifecycle_status is active, so an archived node is no longer suggested as a mention target (ADR-087 §2). A test pins that an archived node is skipped and offered again once unarchived. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The comment listed backend filters that were already wrong (dates are offered; collection and ai-chat are excluded) and omitted archived nodes. It now points at the backend's mention query instead of restating its rules. Skipped: the literal lifecycle_status comparison stays. The governance participation check (ADR-087) does not exist yet; #3443 builds it and replaces this condition. Co-Authored-By: Claude Opus 5.5 <[email protected]>
acf6013 to
d7ec6f1
Compare
Closes #3428
What changed
SqliteStore::mention_autocompletenow addslifecycle_status = 'active'to its query, so the@mention picker no longer offers archived nodes (ADR-087 §2). The Tauri command, the daemon RPC and the dev-proxy all go through this one query, so the filter covers every path. The type exclusions (collection,schema,ai-chat) are unchanged.This is a literal
lifecycle_statuscomparison in the query. The issue scopes it that way: the shared participation check from ADR-087 doesn't exist yet, and will replace this condition along with the other scattered comparisons.Tests
mention_autocomplete_skips_archived_nodes_until_unarchivedcreates two tasks with matching titles, archives one and asserts only the active one is offered, then unarchives it and asserts both are offered. It fails with the filter removed.bun run test:changedpassed (Rust and scripts tiers);bun run quality:fixmade no changes.Acceptance criteria
mention_autocompletereturns no archived nodebun run test:changedpasses;bun run quality:fixclean🤖 Generated with Claude Code