fix(api): include module and cycle data in issue webhook payloads#9273
fix(api): include module and cycle data in issue webhook payloads#9273ch4og wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
Cycle/Module Conditional Expansion in Webhook
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 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 |
Description
Webhooks were missing module and cycle fields from the payload due to a broken source= traversal on reverse foreign key relations in IssueExpandSerializer.
The source="issue_module.module" path tries to resolve issue.issue_module and then access .module on it. Since a queryset has no .module attribute, DRF silently catches the AttributeError via SkipField and the field is dropped from the output entirely. The same issue affected the cycle field.
Type of Change
Screenshots and Media (if applicable)
Test Scenarios
References
Summary by CodeRabbit