Skip to content

feat(splitio): add endpoint path details - #4627

Merged
koladilip merged 1 commit into
developfrom
feat/add-endpoint-path-splitio
Sep 15, 2025
Merged

koladilip merged 1 commit into
developfrom
feat/add-endpoint-path-splitio

Conversation

@koladilip

Copy link
Copy Markdown
Contributor

What are the changes introduced in this PR?

Added endpoint path details to Split.io destination configuration to support the top 15 destinations initiative. This change adds the endpointPath field to the configuration categories and ensures it's included in the response transformation.

What is the related Linear task?

Resolves INT-4102

Please explain the objectives of your changes below

This change is part of the initiative to add endpoint path details for the top 15 destinations in RudderStack. The endpointPath field provides additional metadata about the API endpoint being used, which can be useful for monitoring, debugging, and analytics purposes.

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

  • Added endpointPath: '/events' to the EVENT configuration category in Split.io config
  • Updated the transform function to include endpointPath in the response object
  • Updated test data files to include the new endpointPath field in expected outputs

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?

This is a non-breaking change that only adds additional metadata to the response. No performance impact is expected.

@coderabbitai review


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.

- Add endpointPath field to Split.io config categories
- Update transform.js to include endpointPath in response
- Update test data for processor and router tests
- Resolves INT-4102
@koladilip
koladilip requested review from a team and sivashanmukh as code owners September 11, 2025 10:13
@koladilip
koladilip requested review from a team, krishna2020 and manish339k September 11, 2025 10:13
@coderabbitai

coderabbitai Bot commented Sep 11, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Bug Fixes

    • Ensures Split.io event requests use the correct endpoint path, improving delivery reliability and compatibility.
  • Chores

    • Updated internal configuration to include an explicit endpoint path for Split.io events.
    • Request construction now propagates the endpoint path alongside the endpoint URL.

Walkthrough

Adds endpointPath '/events' to SplitIO EVENT config and propagates it in transform response by setting response.endpointPath from category.endpointPath alongside existing response.endpoint.

Changes

Cohort / File(s) Summary
SplitIO config
src/v0/destinations/splitio/config.js
Added endpointPath: '/events' to CONFIG_CATEGORIES.EVENT alongside existing endPoint and name.
SplitIO transform
src/v0/destinations/splitio/transform.js
In responseBuilderSimple, after response.endpoint = category.endPoint, added response.endpointPath = category.endpointPath; no other logic changes.

Sequence Diagram(s)

sequenceDiagram
  participant EventInput as Event Payload
  participant Config as SplitIO Config (EVENT)
  participant Transform as responseBuilderSimple
  participant Output as Destination Request Config

  EventInput->>Transform: Build request
  Transform->>Config: Read endPoint, endpointPath
  Note over Config,Transform: New: endpointPath '/events'
  Transform->>Output: Set endpoint = Config.endPoint
  Transform->>Output: Set endpointPath = Config.endpointPath
  Output-->>Destination: Use endpoint + endpointPath
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • sivashanmukh
  • chandumlg
  • krishna2020

Suggestions

  • Add unit tests validating endpointPath presence in SplitIO transform responses.
  • Search and align other SplitIO categories (if any) that require endpointPath for consistency.
  • Update any downstream consumers or request builders to utilize endpointPath if not already.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/add-endpoint-path-splitio

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 and usage tips.

Pre-merge checks

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed The PR description follows the repository template and includes a clear summary, the related Linear task (INT-4102), objectives, specific changes (config, transform, and test updates), and developer checklist statuses, so it is largely complete and aligned with expectations. It documents the addition of endpointPath, that tests were updated, and states the change is non-breaking.
Title Check ✅ Passed The title "feat(splitio): add endpoint path details" is concise, follows conventional commit style, and accurately summarizes the primary change—adding an endpointPath to Split.io configuration and including it in the transform output—so it clearly communicates the PR's purpose to reviewers.

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@codecov

codecov Bot commented Sep 11, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.78%. Comparing base (63bd4e3) to head (83c4697).
⚠️ Report is 24 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4627   +/-   ##
========================================
  Coverage    91.78%   91.78%           
========================================
  Files          642      642           
  Lines        33941    33942    +1     
  Branches      8035     8044    +9     
========================================
+ Hits         31152    31153    +1     
  Misses        2559     2559           
  Partials       230      230           

☔ View full report in Codecov by Sentry.
📢 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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
src/v0/destinations/splitio/transform.js (1)

29-29: Set endpointPath only when defined (minor).

Avoid adding an explicit undefined field to the response; gate the assignment.

-    response.endpointPath = category.endpointPath;
+    if (category.endpointPath) {
+      response.endpointPath = category.endpointPath;
+    }
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6b30364 and 83c4697.

⛔ Files ignored due to path filters (2)
  • test/integrations/destinations/splitio/processor/data.ts is excluded by !**/test/**
  • test/integrations/destinations/splitio/router/data.ts is excluded by !**/test/**
📒 Files selected for processing (2)
  • src/v0/destinations/splitio/config.js (1 hunks)
  • src/v0/destinations/splitio/transform.js (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.js

⚙️ CodeRabbit configuration file

Focus on ESLint errors (max 3) and warnings (max 5).

Files:

  • src/v0/destinations/splitio/transform.js
  • src/v0/destinations/splitio/config.js
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Code Coverage
  • GitHub Check: UT Tests
  • GitHub Check: test_and_publish
  • GitHub Check: Analyze (go)
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (1)
src/v0/destinations/splitio/config.js (1)

10-10: Confirm Split.io endpointPath matches API path (src/v0/destinations/splitio/config.js:10)
endPoint is "https://events.split.io/api/events" while endpointPath is "/events" — if endpointPath is meant to be the full path portion, change it to "/api/events"; otherwise confirm this convention and keep it consistent across destinations.

-  EVENT: { endPoint: endpoints.eventUrl, name: 'EventConfig', endpointPath: '/events' },
+  EVENT: { endPoint: endpoints.eventUrl, name: 'EventConfig', endpointPath: '/api/events' },

@maheshkutty maheshkutty changed the title feat(splitio): add endpoint path details for top 15 destinations feat(splitio): add endpoint path details Sep 15, 2025
Comment thread src/v0/destinations/splitio/config.js Resolved
@koladilip
koladilip merged commit 73c18df into develop Sep 15, 2025
@koladilip
koladilip deleted the feat/add-endpoint-path-splitio branch September 15, 2025 10:35
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