Repository navigation
chore(release): pull main into develop post release v1.97.0 - #4244
Conversation
Added validation in sourceTransformRoutine to ensure sourceEvents is an array. If not, it throws a TransformationError with message 'Invalid source events'. Updated the corresponding test to properly handle async error testing by using await expect().rejects.toThrow() instead of expect().toThrow(). This validation prevents unexpected errors when processing non-array inputs and provides a clear error message for debugging.
This fix ensures that the processMetadataForRouter function in marketo_static_list always returns metadata as an array, which is required by the router. Previously, it was not ensuring that the metadata was always an array, which could cause issues with the router transform.
* fix: handle invalid logincustomerId depending on subAccount * chore: address comment * chore: increase test coverage
Summary by CodeRabbit
WalkthroughThis pull request makes several changes across different modules. The ESLint configuration is updated to ignore a new Changes
Sequence Diagram(s)sequenceDiagram
participant C as Client
participant S as NativeIntegrationService
C->>S: Call sourceTransformRoutine(sourceEvents)
alt sourceEvents is not an array
S-->>C: Throw TransformationError("Invalid source events")
else Valid sourceEvents
S->>S: Process and transform events
S-->>C: Return transformed output
end
sequenceDiagram
participant C as Caller
participant G as gaecProxyRequest
participant SDK as GoogleAdsSDK.GoogleAds
C->>G: Call gaecProxyRequest(params)
alt params.subAccount exists
G->>SDK: Initialize with loginCustomerId = params.loginCustomerId
else params.subAccount missing
G->>SDK: Initialize with loginCustomerId = ""
end
SDK-->>G: Return instance
G-->>C: Return response
Suggestions for Improvements
📜 Recent review detailsConfiguration used: .coderabbit.yaml ⛔ Files ignored due to path filters (8)
📒 Files selected for processing (7)
🧰 Additional context used📓 Path-based instructions (1)`**/*.js`: Focus on ESLint errors (max 3) and warnings (max 5).
🧬 Code Graph Analysis (2)src/services/source/__tests__/nativeIntegration.test.ts (3)
src/v0/destinations/marketo_static_list/transform.js (2)
⏰ Context from checks skipped due to timeout of 90000ms (8)
🔇 Additional comments (9)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
Allure Test reports for this run are available at:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4244 +/- ##
===========================================
+ Coverage 91.06% 91.17% +0.11%
===========================================
Files 635 632 -3
Lines 33175 33079 -96
Branches 7833 7831 -2
===========================================
- Hits 30210 30160 -50
+ Misses 2748 2674 -74
- Partials 217 245 +28 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|



👑 An automated PR