Skip to content

fix(everflow): allow postbacks without transaction_id - #5809

Merged
shekhar-rudder merged 2 commits into
developfrom
feat/everflow-optional-transaction-id
Nov 20, 2026
Merged

shekhar-rudder merged 2 commits into
developfrom
feat/everflow-optional-transaction-id

Conversation

@shekhar-rudder

Copy link
Copy Markdown
Member

What are the changes introduced in this PR?

Drops the required flag on the Everflow transaction_id mapping, so track events without a click ID are forwarded instead of failing in the transformer with Missing required value from [...].

What is the related Linear task?

TBD

Please explain the objectives of your changes below

Everflow doesn't need transaction_id to 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:

Postback Everflow
fresh click transaction_id 200 SUCCESS
no transaction_id, oid + affid 200 SUCCESS
no transaction_id, only user_id / email / nothing 204 → aborted

npm run test:live -- --destination=everflow: 4/4 pass, including the new everflow-clickless-conversion scenario.

Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?

Events without transactionId / transaction_id / tid are 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 passed
  • npm run test:ts -- component --destination=everflow: 7 passed
  • npm run test:live -- --destination=everflow: 4 passed against the real API
  • tsc --noEmit, prettier: clean

Known review findings

The /code-review and /security-review subagents 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

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]>
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e9620827-4790-400c-a5d7-a39a2cff59ea

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

No mapping sets required since transaction_id became optional.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@shekhar-rudder
shekhar-rudder marked this pull request as ready for review November 19, 2026 16:02
@shekhar-rudder
shekhar-rudder requested review from a team as code owners November 19, 2026 16:02
@codecov

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.49%. Comparing base (b7adc40) to head (e0374f7).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

Copy link
Copy Markdown

@rudder-auto-approve rudder-auto-approve Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@shekhar-rudder
shekhar-rudder merged commit 6f95a09 into develop Nov 20, 2026
38 checks passed
@shekhar-rudder
shekhar-rudder deleted the feat/everflow-optional-transaction-id branch November 20, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants