Repository navigation
feat(splitio): add endpoint path details - #4627
Conversation
- 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
Summary by CodeRabbit
WalkthroughAdds endpointPath '/events' to SplitIO EVENT config and propagates it in transform response by setting response.endpointPath from category.endpointPath alongside existing response.endpoint. 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
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Suggestions
✨ Finishing touches
🧪 Generate unit tests
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. Comment Pre-merge checks❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
|
|
Allure Test reports for this run are available at:
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
|
There was a problem hiding this comment.
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
undefinedfield 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
⛔ Files ignored due to path filters (2)
test/integrations/destinations/splitio/processor/data.tsis excluded by!**/test/**test/integrations/destinations/splitio/router/data.tsis 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.jssrc/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' },



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
endpointPathfield 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
endpointPathfield 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 ?
endpointPath: '/events'to the EVENT configuration category in Split.io configendpointPathin the response objectendpointPathfield in expected outputsAny 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
Reviewer checklist