Repository navigation
fix(everflow): allow postbacks without transaction_id - #5809
Conversation
Everflow attributes conversions without a click ID via clickless offer + partner IDs (oid/affid), coupon codes or email. Requiring transaction_id in the transformer dropped post-sign-up events that never carry one. Unattributable postbacks still get Everflow's 204 and are aborted by the existing delivery override. Adds a live scenario for a clickless conversion. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
No mapping sets required since transaction_id became optional. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5809 +/- ##
========================================
Coverage 92.49% 92.49%
========================================
Files 742 742
Lines 41358 41358
Branches 9738 9743 +5
========================================
Hits 38254 38254
Misses 2843 2843
Partials 261 261 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
There was a problem hiding this comment.
Note: this review is part of an experiment, the #proj-auto-approve auto-approval process. No human looked at this PR. Auto-approve category: documented bug fix.
Approved. The fix drops "required": true on the transaction_id mapping in EVERFLOWConfig.json, and the now-unused required? field from MappingEntry in utils.ts. Track events without a click ID now reach Everflow, which can attribute them by oid + affid, coupon or email. The safety net is already on develop: delivery.test.ts:44 shows a 204 is turned into a terminal aborted failure, so an unattributable postback is never reported as delivered. The unit test now checks that no synthetic transaction_id is invented. The new live scenario covers the clickless path against the real API. CI is green, live integration tests included.
[nit] One effect to expect: events with no attribution keys at all used to fail in the transformer with a 400 and no network call. Now each one is a request to Everflow that ends as an aborted 204. For a source that sends many non-conversion track events to Everflow, the error count moves from transformer failures to delivery aborts, and outbound calls go up. The PR description says this. A line in the destination docs or the release note would help support read the change.



What are the changes introduced in this PR?
Drops the
requiredflag on the Everflowtransaction_idmapping, sotrackevents without a click ID are forwarded instead of failing in the transformer withMissing required value from [...].What is the related Linear task?
TBD
Please explain the objectives of your changes below
Everflow doesn't need
transaction_idto attribute a conversion: it also supports clickless postbacks (oid+affid), coupon-code and email attribution. Post-sign-up events (account created, promo code submitted, …) don't carry the click ID, so the transformer check dropped them before Everflow could attribute them. All of those fields were already mapped; only the required flag was blocking.Postbacks Everflow can't attribute still come back as HTTP 204 and are aborted by the existing delivery override, so nothing is reported as delivered that wasn't.
Verified against Everflow's real API with the e2e test account:
transaction_idSUCCESStransaction_id,oid+affidSUCCESStransaction_id, onlyuser_id/email/ nothingnpm run test:live -- --destination=everflow: 4/4 pass, including the neweverflow-clickless-conversionscenario.Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
Events without
transactionId/transaction_id/tidare now sent to Everflow (and aborted on its 204 if unattributable) instead of failing with a 400 in the transformer.Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A
Validation
npx jest src/v0/destinations/everflow: 33 passednpm run test:ts -- component --destination=everflow: 7 passednpm run test:live -- --destination=everflow: 4 passed against the real APItsc --noEmit, prettier: cleanKnown review findings
The
/code-reviewand/security-reviewsubagents stalled and returned nothing; the review pass was done inline instead (no correctness or security findings; one comment-placement fix applied).🤖 Generated with Claude Code