Repository navigation
test(expenses): compare only prior order_items columns in the migration check - #1287
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe expense-records test now selects only pre-migration ChangesExpense records preservation test
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix Possibly related issues
Merge Risk: ⚪ Minimal · up to
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
…on check Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
835a8bf to
c5099cf
Compare
Summary
Main CI has been red since #1284 merged.
tests/expense-records.test.tssnapshotsSELECT * FROM order_itemsbefore and after upgrading and asserts the rows are identical. Migration 116 (price override) correctly adds five columns toorder_items, so the "after" rows carried extra fields and the check read it as the migration rewriting data.test:expensesruns inpretest, so it failed Core shard 1 and all four platform builds in the Full Cross-Platform Matrix.This compares only the
order_itemscolumns that existed before the upgrade, so later additive columns no longer trip the check. The migration itself is unchanged and the check still catches any rewrite of existing columns.Test plan
npm run test:expensespasses.pretestchain passes locally: script-coverage, payment-methods-split, diagnostics, reports-export, category-addon-groups, product-variants-db, addon-inventory-db/api, product-variants-api, release-regressions.🤖 Generated with Claude Code
Summary by CodeRabbit