Repository navigation
fix: userpilot response structure - #4253
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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
|
There was a problem hiding this comment.
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (3)
test/integrations/destinations/userpilot/processor/data.ts:108
- Ensure the separation of 'metadata' and 'output' properties conforms to the updated API contract and that any consuming services or tests have been adjusted accordingly.
metadata: {
src/cdk/v2/destinations/userpilot/procWorkflow.yaml:80
- Confirm that assigning the payload to 'response.body.JSON' aligns with the revised response structure and ensure validations are updated to accommodate the nested JSON payload.
response.body.JSON = $.context.payload;
test/integrations/destinations/userpilot/processor/data.ts:115
- [nitpick] Consider maintaining a consistent ordering of keys within the JSON block across endpoints to improve readability.
JSON: {
|
Allure Test reports for this run are available at:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## hotfix/20250414 #4253 +/- ##
================================================
Coverage 91.17% 91.17%
================================================
Files 632 632
Lines 33079 33079
Branches 7831 7831
================================================
Hits 30160 30160
Misses 2674 2674
Partials 245 245 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|



What are the changes introduced in this PR?
This pull request includes updates to the
procWorkflow.yamlfile and improvements to the test data indata.tsfor better handling of user and event tracking in the Userpilot integration. The most important changes include adding comments for API documentation, updating the response body format, and enhancing the test data structure.Documentation and comments:
procWorkflow.yaml.Response formatting:
$.context.payloadto$.context.payload.JSONinprocWorkflow.yamlto ensure the payload is correctly formatted as JSON.What is the related Linear task?
Resolves INT-XXX
Please explain the objectives of your changes below
Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here
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?
N/A
@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.