Fix query builder crashes for Projects relationship queries#8087
Fix query builder crashes for Projects relationship queries#8087acwhite211 wants to merge 4 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThis PR adds end-to-end support for many-to-many relationships in the query builder, enabling queries through join tables like Project-CollectionObject that previously crashed the backend. It introduces join metadata types and helpers in ChangesMany-to-many relationship support
🚥 Pre-merge checks | ✅ 5 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (5 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 |
emenslin
left a comment
There was a problem hiding this comment.
- Run the query and confirm it returns results or blanks without a backend error.
Looks good, I did not run into any errors!
Iwantexpresso
left a comment
There was a problem hiding this comment.
- Run the query and confirm it returns results or blanks without a backend error.
no backend errors occurred. Nice!
bhumikaguptaa
left a comment
There was a problem hiding this comment.
- Run the query and confirm it returns results or blanks without a backend error.
Works as expected, no errors noticed!
Fixes #8083
Fixes back-end crashes when Query Builder paths traverse to Projects, including direct Collection Object queries and nested related-table paths. The stored query SQLAlchemy model layer now maps the
CollectionObject.projects/Project.collectionObjectsmany-to-many relationship throughproject_colobj, and formatted Project relationship aggregation now correlates through that join table instead of assuming a direct foreign key.Checklist
self-explanatory (or properly documented)
Testing instructions
Projects -> Project Name, and run the query.Projects -> formattedand run the query.Summary by CodeRabbit
Release Notes
New Features
Bug Fixes