Pass unset rollback options through to migrator (remove forced batch=1)#1406
Pass unset rollback options through to migrator (remove forced batch=1)#1406
Conversation
Co-authored-by: hwbrzzl <24771476+hwbrzzl@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1406 +/- ##
=======================================
Coverage 72.48% 72.48%
=======================================
Files 292 292
Lines 19577 19577
=======================================
Hits 14191 14191
Misses 4807 4807
Partials 579 579 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughRemoved logic that defaulted batch to 1 in the rollback command when neither step nor batch options were provided. The command now passes (0, 0) to the migration module, allowing it to determine the last batch for rollback operations. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
migrate:rollbackwas overriding unset options by forcingbatch=1, which prevented the migrator from applying its default rollback selection logic. When bothstepandbatchare zero, the migrator should resolve the last batch internally.Behavior fix in rollback command
(step=0, batch=0)into(0,1).Migrator.Rollback(step, batch).Test alignment with intended default semantics
Rollback(0, 0)for:Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Summary by CodeRabbit