-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: ninetailed: modify page support #1677
Conversation
WalkthroughThe updates focus on enhancing the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (2)
- packages/analytics-js-integrations/tests/integrations/Ninetailed/browser.test.js (2 hunks)
- packages/analytics-js-integrations/src/integrations/Ninetailed/browser.js (2 hunks)
Additional comments (4)
packages/analytics-js-integrations/src/integrations/Ninetailed/browser.js (2)
- 17-17: The addition of
sendPageEvents
property based onconfig.sendPageInDevice
is correctly implemented.Ensure that
config.sendPageInDevice
is validated upstream to avoid potential issues.
- 55-63: The conditional handling of page events based on
sendPageEvents
is implemented correctly. This change aligns with the PR's objective to reduce delays in page event processing.Consider adding a comment explaining the rationale behind this conditional logic for future maintainability.
packages/analytics-js-integrations/__tests__/integrations/Ninetailed/browser.test.js (2)
- 49-49: The updated instantiation of
Ninetailed
withsendPageInDevice: true
correctly reflects the new functionality for testing purposes.- 82-90: The test case for toggling off the sending of page events is correctly implemented and verifies the intended behavior.
Consider adding more descriptive comments to explain the purpose of this test for future maintainability.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1677 +/- ##
========================================
Coverage 53.90% 53.91%
========================================
Files 461 461
Lines 15611 15613 +2
Branches 3098 3110 +12
========================================
+ Hits 8415 8417 +2
+ Misses 5899 5861 -38
- Partials 1297 1335 +38 ☔ View full report in Codecov by Sentry. |
Quality Gate passedIssues Measures |
size-limit report 📦
|
PR Description
Modifying page support for ninetailed.
It is recommended to use ninetailed page calls directly and not via RS to avoid delays and hence a toggle is provided in the Rudderstack Destination Configuration UI on the same note.
Linear task (optional)
Linear task link
Resolves INT-1887
Cross Browser Tests
Please confirm you have tested for the following browsers:
Sanity Suite
Security
Summary by CodeRabbit