Repository navigation
fix(id): exclude cleared objects from resolve candidates and claimants (#4455) - #4537
Conversation
#4455) Cleared (tombstoned) objects no longer resolve as candidates and no longer count toward surface claimant totals, so a cleared-only index yields NoMatch and a live target with a cleared namesake stays uncontested. Render of references stored before clearing is unchanged. Task 6366.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 43 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…ed-object-resolve
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Fixes #4455. Task 6366.
Cleared (tombstoned) objects are excluded from
LocalIndex::resolvecandidates and fromclaimantscounts, per the rule now documented in thereferences.rsmodule docs. A cleared-only index resolves no candidate (insert_unambiguousreturnsNoMatch); a live target with a cleared duplicate title is uncontested and inserts. Render of references stored before clearing still reportsCleared.Tests:
cargo test --lib referencesinpkgs/id— 19 passed, including 2 new regressions (a_cleared_only_target_does_not_resolve_or_insert,a_cleared_duplicate_does_not_contest_a_live_target) and the existinga_cleared_target_degrades_to_its_label. Fullcargo test referencesdoes not compile on main: untouched integration targets (tests/chain_properties.rs,tests/content_removal.rs,tests/production_ingest.rs,tests/voiding_scenarios.rs) constructChainExtwithout thelinkfield added by #3816 — pre-existing, unrelated to this change.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.