Stabilize dotted child task ordering across beads trackers#337
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (6)
WalkthroughThe PR introduces a new task-ordering module that implements deterministic sorting for dotted child task IDs (e.g., epic-5.1, epic-5.2) whilst preserving original positions of non-matching IDs. This module is integrated into the beads and beads-rust tracker plugins, with corresponding test coverage added across all three tracker variants. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
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 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #337 +/- ##
==========================================
+ Coverage 46.46% 46.60% +0.13%
==========================================
Files 102 103 +1
Lines 33219 33301 +82
==========================================
+ Hits 15436 15520 +84
+ Misses 17783 17781 -2
🚀 New features to boost your workflow:
|
Summary
sortDottedChildTaskIdsfor deterministic dotted child orderingbeadsandbeads-rustgetTasks()after filtering<prefix>.<number>beads,beads-rust, andbeads-bv(via inheritedgetTasks)Why
PR 336's comparator approach can leave child IDs unsorted in mixed lists because non-child comparisons return equality. This implementation makes ordering deterministic without moving non-child entries.
Validation
bun test src/plugins/trackers/builtin/beads/index.test.ts src/plugins/trackers/builtin/beads-rust/index.test.ts src/plugins/trackers/builtin/beads-bv/index.test.tsbun run typecheckbun run buildSummary by CodeRabbit