Skip to content

feat(pushwoosh): add pushwoosh destination - #5645

Merged
maheshkutty merged 5 commits into
rudderlabs:developfrom
shaders:feat/pushwoosh-destination
Oct 22, 2026
Merged

maheshkutty merged 5 commits into
rudderlabs:developfrom
shaders:feat/pushwoosh-destination

Conversation

@shaders

@shaders shaders commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Router-only batching-framework destination: track batches to post-events (100 per request), identify sends user tags via setTags.

What are the changes introduced in this PR?

New PUSHWOOSH destination on the batching framework (router transform only, no processor):

  • track → Pushwoosh events endpoint, batched up to 100 events per request; properties become event attributes.
  • identify → Pushwoosh setTags by userId; traits become user tags (identity/PII traits like email, phone, name, address are excluded).
  • userId is required (Pushwoosh matches users by User ID); missing userId/event name → InstrumentationError.
  • Delivery handler maps Pushwoosh error responses; a 400 from a malformed event in a batch is retried unbatched.

What is the related Linear task?

N/A — partner contribution from Pushwoosh (no Linear task on our side).

Please explain the objectives of your changes below

Gives Pushwoosh customers a native RudderStack destination instead of a Webhook + custom transformation.
Dependent change: destination definition in rudderlabs/rudder-integrations-config#2809. The secret-paths CI check here will pass once that PR is on main.

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

N/A

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?

Endpoints currently point to Pushwoosh's EU region; other regions will follow in a separate PR.


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.

Router-only batching-framework destination: track batches to post-events (100 per request), identify sends user tags via setTags.
@shaders
shaders requested review from a team as code owners October 10, 2026 09:02
@contributor-support

Copy link
Copy Markdown

Thank you @shaders for contributing this PR.
Please sign the Contributor License Agreement (CLA) before merging.

@coderabbitai

coderabbitai Bot commented Oct 10, 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: cb68c503-b43e-4535-8660-adfc6e9a8ed6

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.

@shaders

shaders commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

Hi, just following up on rudder-integrations-config#2809 and rudder-transformer#5645 — could you assign a reviewer and approve the CI runs? Thanks!

Copilot AI 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.

🔵 Needs a closer look

Legacy setTags response handling and actual tag persistence need correction and live validation before approval.

2 open findings
What changed in this PR

Adds a native, router-only Pushwoosh destination using the batching framework.

Changes:

  • Batches track events and maps identify traits to user tags.
  • Adds delivery error handling and credential masking.
  • Adds unit, component, and live tests.
File Description
test/​integrations/​destinations/​pushwoosh/​router/​data.ts Router transformation fixtures.
test/​integrations/​destinations/​pushwoosh/​network.ts Mocked API responses.
test/​integrations/​destinations/​pushwoosh/​live.ts Live delivery scenarios.
test/​integrations/​destinations/​pushwoosh/​dataDelivery/​data.ts Delivery response fixtures.
test/​integrations/​destinations/​pushwoosh/​common.ts Shared test helpers.
src/​v0/​destinations/​pushwoosh/​utils.ts Payload mapping and sanitization.
src/​v0/​destinations/​pushwoosh/​utils.test.ts Utility tests.
src/​v0/​destinations/​pushwoosh/​types.ts Schemas and payload types.
src/​v0/​destinations/​pushwoosh/​routerTransform.ts Transformation and batching.
src/​v0/​destinations/​pushwoosh/​routerTransform.test.ts Batching tests.
src/​v0/​destinations/​pushwoosh/​delivery.ts Delivery response classification.
src/​v0/​destinations/​pushwoosh/​delivery.test.ts Response classification tests.
src/​v0/​destinations/​pushwoosh/​data/​PUSHWOOSHConfig.json Field mappings and exclusions.
src/​v0/​destinations/​pushwoosh/​config.ts Endpoints and batch limit.
src/​secretPaths/​secretPaths.json Authorization masking.
src/​features.ts Enables framework capabilities.
src/​features.test.ts Capability registration assertion.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/v0/destinations/pushwoosh/config.ts Resolved
Abort/retry legacy API errors inside HTTP 200, cap post-events batches at 10MB, and make the identify live scenario stateful.
@maheshkutty

maheshkutty commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Could you add integration docs for this destination? You can generate them with the generate-integration-docs skill.

@shaders

shaders commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

Could you add integration docs for this destination? You can generate them with the generate-integration-docs skill.

Added integration docs generated with the generate-integration-docs skill: src/v0/destinations/pushwoosh/README.md, docs/businesslogic.md, docs/retl.md (2b828f2, 039aa28).

@krishna2020

Copy link
Copy Markdown
Collaborator

@shaders For getting verification tests (github actions) passed in the PR, we need the test account credentials of pushwoosh so that live integration test suite can succeed. Can you help on setting up a test account for us ?
If you are on slack, please share your username, we can co-ordinate over slack for getting pushwoosh to release.

@krishna2020

Copy link
Copy Markdown
Collaborator

@shaders For getting verification tests (github actions) passed in the PR, we need the test account credentials of pushwoosh so that live integration test suite can succeed. Can you help on setting up a test account for us ? If you are on slack, please share your username, we can co-ordinate over slack for getting pushwoosh to release.

You can join #contributing-to-rudderstack channel & take it up from there

@codecov

codecov Bot commented Oct 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.05660% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 92.14%. Comparing base (25fca9d) to head (039aa28).
⚠️ Report is 32 commits behind head on develop.

Files with missing lines Patch % Lines
src/v0/destinations/pushwoosh/utils.ts 97.72% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5645      +/-   ##
===========================================
+ Coverage    92.11%   92.14%   +0.03%     
===========================================
  Files          708      718      +10     
  Lines        39526    39706     +180     
  Branches      9262     9225      -37     
===========================================
+ Hits         36409    36587     +178     
- Misses        2852     2934      +82     
+ Partials       265      185      -80     

☔ 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.

@shaders

shaders commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

Both remaining failures are expected: live (pushwoosh) needs the LIVE_SECRET_PUSHWOOSH secret on your side — we can share test app credentials via a private channel; Verify generated secret paths will pass once rudder-integrations-config#2809 is merged.

@shaders

shaders commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

@krishna2020 I wrote you in Slack channel.

@maheshkutty
maheshkutty merged commit f1dd798 into rudderlabs:develop Oct 22, 2026
85 of 109 checks passed
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.

4 participants