feat: enable data filtering for batches#1245
Conversation
PR SummaryMedium Risk Overview Refactors the single-event forwarder path to reuse new shared helpers in Reviewed by Cursor Bugbot for commit 3fb2754. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 49e0cc8. Configure here.
|
Overall this is such a great improvement vs the mess that forwarders.js was prior. Great work not just migrating to TS, but cleaning and refactoring the logic to make it more understandable. |
|
# [2.64.0](v2.63.0...v2.64.0) (2026-04-13) ### Features * enable data filtering for batches ([#1245](#1245)) ([ce56ddb](ce56ddb))
|
🎉 This PR is included in version 2.64.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |



Background
What Has Changed
sendBatchToForwardersthat already exist insendEventToForwarders: attribute forwarding rules, event name/type filters, event attribute filters, user identity filters, and user attribute filtersisBlockedByForwardingRule,isBlockedByEventFilter,filterEventAttributes,filterUserIdentities) from inline code insendEventToForwardersso both event and batch paths reuse the same logicsdkToEventsApiConverter.ts(getMessageTypeFromEventType,getEventCategoryFromCustomEventType,getIdentityTypeFromBatchKey,getEventNameFromBatchEvent) to translate batch snake_case fields back to SDK numeric types needed by the filter functionsScreenshots/Video
Checklist
Additional Notes
Reference Issue (For employees only. Ignore if you are an outside contributor)