fix: add ondelete=CASCADE to TraceBase.flow_id to match migration#12001
fix: add ondelete=CASCADE to TraceBase.flow_id to match migration#12001RamGopalSrikar wants to merge 2 commits into
Conversation
The migration file creates the trace table's flow_id foreign key with ondelete="CASCADE", but the model was missing this parameter. This mismatch caused the migration validator to block startup. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
WalkthroughAdded cascade delete behavior to the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error, 2 warnings)
✅ Passed checks (4 passed)
✨ 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 |
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
olayinkaadelakun
left a comment
There was a problem hiding this comment.
I pulled an old branch and checkout this branch ad there were no migration issues
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project status has failed because the head coverage (42.29%) is below the target coverage (60.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #12001 +/- ##
==========================================
- Coverage 37.32% 37.31% -0.01%
==========================================
Files 1592 1592
Lines 78279 78279
Branches 11824 11824
==========================================
- Hits 29216 29209 -7
- Misses 47442 47449 +7
Partials 1621 1621
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Adam-Aghili
left a comment
There was a problem hiding this comment.
LGTM!
Thank you for catching this work with @RamGopalSrikar to reproduce locally on my machine.
Merge once script is uploaded. Make sure to carry over the new change to the RC branch PR
|
adding in #12059 |
Summary
ondelete="CASCADE"toTraceBase.flow_idfield to match the migration definitionProblem
The migration file
3478f0bd6ccb_add_trace_and_span_tables.pycreates thetracetable'sflow_idforeign key withondelete="CASCADE", but the model was missing this parameter. This caused the migration validator to detect a mismatch and block startup with:Test plan
make backendand verify no migration mismatch errorsSummary by CodeRabbit