Repository navigation
chore(release): pull main into develop post release v1.108.0 - #4647
Conversation
Also standardizing endpoint path with existing iterable. Co-authored-by: Dilip Kola <[email protected]>
* chore(release): 1.108.0 * feat(klaviyo): add unique_id support for create events APIs - Add unique_id field to track events in both v1 and v2 APIs - Use messageId as unique_id for event deduplication - Update test data to include unique_id validation - Resolves INT-4135 * chore: Update CHANGELOG.md --------- Co-authored-by: GitHub Actions <[email protected]>
Summary by CodeRabbit
WalkthroughNormalized endpoint path construction across multiple destinations by removing leading slashes from path constants and updating URL assembly. Introduced GA4 path constants and updated utils to use them. Added unique_id to Klaviyo event attributes. Centralized Split.io events path. No control-flow changes. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 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 |
|
Allure Test reports for this run are available at:
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4647 +/- ##
========================================
Coverage 91.78% 91.78%
========================================
Files 642 642
Lines 33970 33974 +4
Branches 8045 8037 -8
========================================
+ Hits 31180 31184 +4
- Misses 2538 2560 +22
+ Partials 252 230 -22 ☔ 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/klaviyo/transformV2.js (1)
100-101: Guard against undefined unique_id; set only when presentKlaviyo accepts unique_id, but avoid sending an explicit undefined. Add a safe assignment.
- attributes.unique_id = message.messageId; + if (message?.messageId) { + attributes.unique_id = String(message.messageId); + }
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (39)
CHANGELOG.mdis excluded by!**/*.mdpackage-lock.jsonis excluded by!**/package-lock.json,!**/*.jsonpackage.jsonis excluded by!**/*.jsontest/integrations/destinations/af/processor/data.tsis excluded by!**/test/**test/integrations/destinations/af/processor/validation.tsis excluded by!**/test/**test/integrations/destinations/af/router/data.tsis excluded by!**/test/**test/integrations/destinations/facebook_conversions/processor/data.tsis excluded by!**/test/**test/integrations/destinations/facebook_conversions/router/data.tsis excluded by!**/test/**test/integrations/destinations/facebook_pixel/processor/configLevelFeaturesTestData.tsis excluded by!**/test/**test/integrations/destinations/facebook_pixel/processor/ecommTestData.tsis excluded by!**/test/**test/integrations/destinations/facebook_pixel/processor/identifyTestData.tsis excluded by!**/test/**test/integrations/destinations/facebook_pixel/processor/pageScreenTestData.tsis excluded by!**/test/**test/integrations/destinations/facebook_pixel/processor/trackTestData.tsis excluded by!**/test/**test/integrations/destinations/facebook_pixel/processor/validationTestData.tsis excluded by!**/test/**test/integrations/destinations/facebook_pixel/router/data.tsis excluded by!**/test/**test/integrations/destinations/fb_custom_audience/dataDelivery/business.tsis excluded by!**/test/**test/integrations/destinations/fb_custom_audience/dataDelivery/data.tsis excluded by!**/test/**test/integrations/destinations/fb_custom_audience/dataDelivery/other.tsis excluded by!**/test/**test/integrations/destinations/fb_custom_audience/network.tsis excluded by!**/test/**test/integrations/destinations/fb_custom_audience/processor/data.tsis excluded by!**/test/**test/integrations/destinations/fb_custom_audience/router/data.tsis excluded by!**/test/**test/integrations/destinations/ga4/processor/ecomTestData.tsis excluded by!**/test/**test/integrations/destinations/ga4/processor/groupTestData.tsis excluded by!**/test/**test/integrations/destinations/ga4/processor/pageTestData.tsis excluded by!**/test/**test/integrations/destinations/ga4/processor/trackTestData.tsis excluded by!**/test/**test/integrations/destinations/ga4/processor/validationTestData.tsis excluded by!**/test/**test/integrations/destinations/ga4_v2/processor/customMappings.tsis excluded by!**/test/**test/integrations/destinations/klaviyo/processor/ecomTestData.tsis excluded by!**/test/**test/integrations/destinations/klaviyo/processor/trackTestData.tsis excluded by!**/test/**test/integrations/destinations/klaviyo/processor/trackTestDataV2.tsis excluded by!**/test/**test/integrations/destinations/klaviyo/router/dataV2.tsis excluded by!**/test/**test/integrations/destinations/splitio/processor/data.tsis excluded by!**/test/**test/integrations/destinations/splitio/router/data.tsis excluded by!**/test/**test/integrations/destinations/tiktok_ads/dataDelivery/business.tsis excluded by!**/test/**test/integrations/destinations/tiktok_ads/dataDelivery/data.tsis excluded by!**/test/**test/integrations/destinations/tiktok_ads/dataDelivery/other.tsis excluded by!**/test/**test/integrations/destinations/tiktok_ads/network.tsis excluded by!**/test/**test/integrations/destinations/tiktok_ads/processor/data.tsis excluded by!**/test/**test/integrations/destinations/tiktok_ads/router/data.tsis excluded by!**/test/**
📒 Files selected for processing (9)
src/v0/destinations/af/config.js(1 hunks)src/v0/destinations/facebook_conversions/config.js(1 hunks)src/v0/destinations/facebook_pixel/config.js(1 hunks)src/v0/destinations/fb_custom_audience/config.js(1 hunks)src/v0/destinations/ga4/config.js(2 hunks)src/v0/destinations/ga4/utils.js(2 hunks)src/v0/destinations/klaviyo/transformV2.js(1 hunks)src/v0/destinations/splitio/config.js(1 hunks)src/v0/destinations/tiktok_ads/config.js(2 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/ga4/utils.jssrc/v0/destinations/klaviyo/transformV2.jssrc/v0/destinations/ga4/config.jssrc/v0/destinations/splitio/config.jssrc/v0/destinations/facebook_conversions/config.jssrc/v0/destinations/facebook_pixel/config.jssrc/v0/destinations/fb_custom_audience/config.jssrc/v0/destinations/af/config.jssrc/v0/destinations/tiktok_ads/config.js
🧠 Learnings (1)
📚 Learning: 2025-07-15T06:27:07.528Z
Learnt from: ItsSudip
PR: rudderlabs/rudder-transformer#4497
File: src/v0/destinations/tiktok_ads/transformV2.js:686-691
Timestamp: 2025-07-15T06:27:07.528Z
Learning: For TikTok Ads destination in src/v0/destinations/tiktok_ads/transformV2.js, there are plans for a future enhancement to group events by eventSource when batching to ensure all events in a batch have the same event_source value, as acknowledged by ItsSudip in PR #4497.
Applied to files:
src/v0/destinations/klaviyo/transformV2.jssrc/v0/destinations/tiktok_ads/config.js
🧬 Code graph analysis (9)
src/v0/destinations/ga4/utils.js (1)
src/v0/destinations/ga4/config.js (3)
DEBUG_ENDPOINT_PATH(4-4)ENDPOINT(5-5)ENDPOINT_PATH(3-3)
src/v0/destinations/klaviyo/transformV2.js (2)
src/v0/destinations/klaviyo/util.js (1)
attributes(181-184)src/v0/destinations/klaviyo/transform.js (1)
attributes(171-171)
src/v0/destinations/ga4/config.js (5)
src/v0/destinations/af/config.js (2)
ENDPOINT_PATH(60-60)ENDPOINT(62-62)src/v0/destinations/facebook_conversions/config.js (1)
ENDPOINT_PATH(5-5)src/v0/destinations/facebook_pixel/config.js (1)
ENDPOINT_PATH(5-5)src/v0/destinations/fb_custom_audience/config.js (1)
ENDPOINT_PATH(3-3)src/v0/destinations/splitio/config.js (1)
ENDPOINT_PATH(4-4)
src/v0/destinations/splitio/config.js (3)
src/v0/destinations/af/config.js (1)
ENDPOINT_PATH(60-60)src/v0/destinations/facebook_conversions/config.js (1)
ENDPOINT_PATH(5-5)src/v0/destinations/facebook_pixel/config.js (1)
ENDPOINT_PATH(5-5)
src/v0/destinations/facebook_conversions/config.js (1)
src/v0/destinations/facebook_pixel/config.js (3)
ENDPOINT_PATH(5-5)getEndpointDetails(7-10)VERSION(3-3)
src/v0/destinations/facebook_pixel/config.js (1)
src/v0/destinations/facebook_conversions/config.js (3)
ENDPOINT_PATH(5-5)getEndpointDetails(7-10)VERSION(3-3)
src/v0/destinations/fb_custom_audience/config.js (5)
src/v0/destinations/af/config.js (1)
ENDPOINT_PATH(60-60)src/v0/destinations/facebook_conversions/config.js (1)
ENDPOINT_PATH(5-5)src/v0/destinations/facebook_pixel/config.js (1)
ENDPOINT_PATH(5-5)src/v0/destinations/ga4/config.js (1)
ENDPOINT_PATH(3-3)src/v0/destinations/splitio/config.js (1)
ENDPOINT_PATH(4-4)
src/v0/destinations/af/config.js (5)
src/v0/destinations/facebook_conversions/config.js (1)
ENDPOINT_PATH(5-5)src/v0/destinations/facebook_pixel/config.js (1)
ENDPOINT_PATH(5-5)src/v0/destinations/fb_custom_audience/config.js (1)
ENDPOINT_PATH(3-3)src/v0/destinations/ga4/config.js (2)
ENDPOINT_PATH(3-3)ENDPOINT(5-5)src/v0/destinations/splitio/config.js (1)
ENDPOINT_PATH(4-4)
src/v0/destinations/tiktok_ads/config.js (2)
src/v0/destinations/fb_custom_audience/config.js (1)
BASE_URL(1-1)src/v0/destinations/splitio/config.js (1)
BASE_URL(3-3)
⏰ 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). (7)
- GitHub Check: Code Coverage
- GitHub Check: test_and_publish
- GitHub Check: UT Tests
- GitHub Check: Analyze (go)
- GitHub Check: Analyze (javascript-typescript)
- GitHub Check: Analyze (go)
- GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (11)
src/v0/destinations/ga4/config.js (2)
3-6: Good extraction of GA4 pathsENDPOINT/DEBUG_ENDPOINT now derive from path constants; reduces duplication. No ESLint issues spotted.
180-185: Export additions align with utils usageExporting ENDPOINT_PATH and DEBUG_ENDPOINT_PATH is consistent with utils import. LGTM.
src/v0/destinations/ga4/utils.js (2)
19-26: Config destructuring updated correctlyImporting ENDPOINT_PATH/DEBUG_ENDPOINT_PATH is accurate and used below.
535-541: Verify leading-slash behavior when concatenating endpoint + endpointPathresponse.endpointPath is set from ENDPOINT_PATH / DEBUG_ENDPOINT_PATH (src/v0/destinations/ga4/utils.js, lines 535–541). Confirm whether those constants include a leading '/' or whether the network layer that composes the final URL tolerates/normalizes missing/extra slashes (avoid double-slash or missing-path bugs). Quick checks you can run locally:
- rg -n --hidden -S '\b(ENDPOINT_PATH|DEBUG_ENDPOINT_PATH|ENDPOINT|DEBUG_ENDPOINT)\b' src
- rg -n --hidden -S 'response.endpoint|endpointPath|endpoint\s*+' src
src/v0/destinations/splitio/config.js (1)
4-11: endpointPath 'events' is safe — no leading slash requiredCONFIG builds a full URL (
${BASE_URL}/api/${ENDPOINT_PATH}), transform assigns category.endPoint to response.endpoint and category.endpointPath to response.endpointPath, and src/adapters/network.js only uses endpointPath for logging/stats (no URL composition). Checked: src/v0/destinations/splitio/config.js, src/v0/destinations/splitio/transform.js, src/adapters/network.js. Optional: add a short comment or standardize leading-slash usage across configs to avoid future confusion.src/v0/destinations/facebook_conversions/config.js (1)
5-10: Path normalization OK — no callers require a leading slash.getEndpointDetails returns the full URL (endpoint includes "events") and endpointDetails.path ('events') is only copied to response.endpointPath for telemetry; I found no code concatenating a base URL + endpointPath for Facebook Pixel/Conversions.
Locations: src/v0/destinations/facebook_conversions/config.js (getEndpointDetails), src/v0/util/facebookUtils/index.js (formingFinalResponse -> response.endpointPath), src/adapters/network.js (endpointPath used in statTags/logging).src/v0/destinations/facebook_pixel/config.js (1)
5-10: No action required — 'events' path is safe (no leading-slash dependency)Verified: getEndpointDetails builds the full request URL (includes .../${pixelId}/events?... ) and endpointDetails.path ('events') is only copied to response.endpointPath for logging/metrics; no downstream code concatenates .path to form request URLs. Checked: src/v0/destinations/facebook_pixel/config.js and src/v0/util/facebookUtils/index.js.
Suggestion: optionally standardize endpointPath formatting (always include or exclude leading '/') across destinations to reduce metric/test variability.
src/v0/destinations/af/config.js (1)
59-64: Verify URL composition — avoid duplicated "inappevent" segmentconfig.js defines BASE_ENDPOINT_PATH = 'inappevent' and produces ENDPOINT = https://api2.appsflyer.com/inappevent/ while ENDPOINT_PATH = 'v1/inappevent'; transform sets response.endpoint = finalEndPoint (+ appId) and response.endpointPath = finalEndPointPath. If the request runner concatenates endpoint + endpointPath you will get a duplicated segment (…/inappevent/v1/inappevent). Confirm how the final request URL is assembled; either remove the duplicate from ENDPOINT or ENDPOINT_PATH, or ensure the caller treats response.endpoint as the full URL (and uses endpointPath only for metadata).
Locations: src/v0/destinations/af/config.js (lines ~59–63) and src/v0/destinations/af/transform.js (where finalEndPoint/finalEndPointPath and response.endpoint/response.endpointPath are set).
src/v0/destinations/fb_custom_audience/config.js (1)
3-7: OK — change is safe; no double/missing-slash detectedgetEndPoint builds a full URL including "/users" (src/v0/destinations/fb_custom_audience/config.js) and util sets response.endpoint = getEndPoint(audienceId) and response.endpointPath = config.ENDPOINT_PATH (src/v0/destinations/fb_custom_audience/util.js). adapters/network.js uses the endpoint as the request URL (prepareProxyRequest/proxyRequest) and treats endpointPath only for logging/stats — no code concatenates endpoint + endpointPath.
src/v0/destinations/tiktok_ads/config.js (2)
56-57: V2 endpoint assembly is consistent; confirm consumers prefix exactly one slash when using the path.
trackEndpointV2Pathnow omits the leading slash andtrackEndpointV2includes it via template interpolation. Ensure any utils building request paths do/${trackEndpointV2Path}and do not prepend an extra/.You can reuse the script above; pay attention to lines showing
trackEndpointV2Pathusage to verify a single leading slash is added.
4-7: Endpoint path normalization verified — no callers append extra slashes.I scanned the repo: no code concatenates a "/" onto TRACK_ENDPOINT, BATCH_ENDPOINT, or trackEndpointV2; transform/transformV2 and tests use the constants as endpoint/endpointPath without unsafe concatenation. Approving the change.



👑 An automated PR