Skip to content

feat(rokt): map track conversion types from destination config - #5679

Merged
shekhar-rudder merged 1 commit into
developfrom
harness/RUD-3351-feat-rokt-map-track-conversion-e8293716
Oct 15, 2026
Merged

shekhar-rudder merged 1 commit into
developfrom
harness/RUD-3351-feat-rokt-map-track-conversion-e8293716

Conversation

@rudder-devbox

@rudder-devbox rudder-devbox Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

What are the changes introduced in this PR?

  • Restrict the Rokt destination to track messages with a required event name.
  • Resolve custom_attributes.conversiontype through exact, case-sensitive eventsMapping configuration.
  • Abort unmapped events with an instrumentation error.
  • Remove properties.conversiontype and the event name as conversion-type sources.
  • Update unit, component, and live test fixtures for the new behavior.

What is the related Linear task?

Resolves RUD-3351

Please explain the objectives of your changes below

This makes Rokt conversion types customer-configurable and prevents unconfigured events from being delivered with inferred conversion types.

A coordinated rudder-integrations-config change is required before rollout to expose eventsMapping, set the default mapping, and advertise only track as a supported cloud message type.

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

Rokt no longer accepts page, screen, or identify messages. Track events without an exact configured mapping now fail with a 400 instrumentation error. properties.conversiontype is ignored.

Any new dependencies introduced with this change?

N/A

Any new generic utility introduced or modified. Please explain the changes.

N/A

Any technical or performance related pointers to consider with the change?

Mapping resolution performs a linear lookup over the customer-configured event mapping. Existing configs without the new field behave as an empty mapping and therefore forward no events until configured.

Validation

  • npm run lint — passed.
  • Targeted Rokt router-transform unit tests — passed, 28 tests.
  • npm run test:ts -- component --destination=rokt — passed, 11 tests.
  • npm run build:test — passed.
  • Secret-path generation for Rokt — passed with no committed artifact change.

⚠️ Known Issues

Local mini integration verification was skipped because rudder-transformer is SHA-pinned and cannot run source from this checkout in the sandbox. No live transformer behavior was inferred from the stock image; the targeted unit and component suites above are the available source-level evidence.


Developer checklist

  • My code follows the style guidelines of this project

  • No breaking changes are being introduced.

  • All related docs linked with the PR?

  • All changes manually tested?

  • Any documentation changes needed with this change?

  • Is the PR limited to 10 file changes?

  • Is the PR limited to one linear task?

  • Are relevant unit and component test-cases added in new readability format?

Reviewer checklist

  • Is the type of change in the PR title appropriate as per the changes?

  • Verified that there are no credentials or confidential data exposed with the changes.

@rudder-devbox

rudder-devbox Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

👋 I'm rudder-devbox. I opened this PR from a Linear ticket.

Mention @devbox or @rudder-devbox and I'll act on it — on a top-level PR comment,
in a review summary, or on an inline comment on the diff. Without a mention I won't see it.

@coderabbitai

coderabbitai Bot commented Oct 15, 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
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3566caa3-2a61-42ba-9654-cb58fcfd12cb

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

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.12%. Comparing base (9124525) to head (ab991a0).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5679      +/-   ##
===========================================
- Coverage    92.12%   92.12%   -0.01%     
===========================================
  Files          713      713              
  Lines        39591    39597       +6     
  Branches      9276     9277       +1     
===========================================
+ Hits         36474    36478       +4     
- Misses        2852     2854       +2     
  Partials       265      265              

☔ 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

@shekhar-rudder
shekhar-rudder marked this pull request as ready for review October 15, 2026 14:01
@shekhar-rudder
shekhar-rudder requested review from a team as code owners October 15, 2026 14:01
@shekhar-rudder
shekhar-rudder merged commit 09ef263 into develop Oct 15, 2026
38 checks passed
@shekhar-rudder
shekhar-rudder deleted the harness/RUD-3351-feat-rokt-map-track-conversion-e8293716 branch October 15, 2026 14:01
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