fix: filter tombstoned issues from beads-rust tracker#297
Conversation
mapStatus() falls through to 'open' for tombstone status, causing soft-deleted issues to appear as open tasks in the TUI. Add tombstone mapping and filter tombstoned issues in getTasks, getEpics, getNextTask, and exclude them from getPrdContext completion counts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@thunter009 is attempting to deploy a commit to the plgeek Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughDetects beads-rust "tombstone" statuses and filters tombstoned items in-memory: tombstones map to cancelled and are excluded from task/epic listings, next-task selection, and PRD context dependent counts. Tests added to validate tombstone behaviour. Changes
Sequence Diagram(s)(omitted) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 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. Comment |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
Thanks @thunter009 nice focused fix |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@src/plugins/trackers/builtin/beads-rust/index.test.ts`:
- Around line 1057-1143: Add a unit test in the tombstone filtering suite that
verifies BeadsRustTrackerPlugin.getPrdContext excludes dependents with status:
'tombstone' from child-completion counts: instantiate BeadsRustTrackerPlugin,
initialize it (initialize({ workingDir: '/test' })), mock the spawn response
JSON to include a PRD with dependents where one dependent has status 'tombstone'
and others are completed/not completed, then call getPrdContext and assert that
completedCount and totalCount do not include the tombstoned dependent (use
unique IDs to assert expected counts and dependent inclusion/exclusion).
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #297 +/- ##
=======================================
Coverage 44.47% 44.47%
=======================================
Files 96 96
Lines 30132 30148 +16
=======================================
+ Hits 13400 13409 +9
- Misses 16732 16739 +7
🚀 New features to boost your workflow:
|
Summary
tombstone→cancelledmapping inmapStatus()isTombstone()helper to filter soft-deleted issuesgetTasks(),getEpics(),getNextTask()before conversiongetPrdContext()child completion countsFixes #296
Test plan
bun run typecheckpassesbun run buildpassesbun test— all 39 tests pass (4 new)br delete, verify they don't appear in TUI🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Tests