Repository navigation
fix(customerio): event stream events rejected by record-only connection schema - #5331
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Note
|
… schema The input schema applied CustomerIOConnectionConfigSchema (which requires `object: 'person'|'event'`) to all events. Non-record messages (identify, track, etc.) arriving with a connection object were rejected because their connection config lacks the record-specific `object` field. Co-Authored-By: Claude Opus 4.6 <[email protected]>
aff32eb to
48014be
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## hotfix/2-jul-2026 #5331 +/- ##
==================================================
Coverage 92.72% 92.72%
==================================================
Files 701 701
Lines 38134 38134
Branches 8964 8965 +1
==================================================
Hits 35360 35360
- Misses 2546 2564 +18
+ Partials 228 210 -18 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
…spatch Reconcile the record-dispatch framework with develop's schema-driven BatchDestination refactor (#5315) and the customerio event-stream schema fix (#5331): - Re-base VDMV2ObjectDestination onto BatchDestination<TBody, TInputSchema>, deriving connection/destination config types from the Zod input schema instead of the retired TConfig/TConnectionConfig generics. - Point customerio's router transform at the schema-driven customerIOInputSchema (which now carries the #5331 record-vs-event-stream union) while keeping the PR's transformObjectRecord / transformEventStream dispatch. - Update the framework's VDMV2ObjectDestination tests to the new generic signature. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>



Summary
getV2InputSchema()Zod schema appliedCustomerIOConnectionConfigSchema(which requiresobject: 'person'|'event') to all events, not just record messages. Event stream messages (identify, track, page, etc.) arriving with a connection object were rejected because their connection config lacks the record-specificobjectfield.z.unionof two variants: record messages validate connection config against the record-specific schema; event stream messages skip connection validation entirely.Test plan
config: {}connection was rejected before the fixrouterTransform.test.ts)🤖 Generated with Claude Code