Skip to content
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

chore(release): pulling release/3.5.0 into main #1681

Merged
merged 7 commits into from
Apr 3, 2024
Merged

Conversation

devops-github-rudderstack
Copy link
Contributor

@devops-github-rudderstack devops-github-rudderstack commented Apr 2, 2024

👑 An automated PR

Summary by CodeRabbit

  • Documentation
    • Updated README.md files across Ninetailed integration sample apps for better clarity on the purpose of each app and instructions.
  • New Features
    • Introduced a new configuration parameter sendPageInDevice in the Ninetailed integration to control page event sending behavior.
  • Bug Fixes
    • Fixed issues in @rudderstack/analytics-js-integrations related to Ninetailed page support and Mixpanel's readiness checks.
  • Tests
    • Added and updated tests for Mixpanel and Ninetailed integrations to cover new functionalities and bug fixes.
  • Chores
    • Updated sonar.projectVersion to reflect the new version increment.

Release ticket:
https://linear.app/rudderstack/issue/SDK-1526/release-sdk-js-3rd-apr

Copy link
Contributor

coderabbitai bot commented Apr 2, 2024

Walkthrough

The recent updates focus on enhancing clarity and functionality across Ninetailed integration sample apps and the @rudderstack/analytics-js-integrations package. Key revisions include clarifications in README.md files, adjustments in configuration settings, and bug fixes in both ninetailed and mixpanel integrations. Additionally, test enhancements for Mixpanel and Ninetailed integrations ensure better reliability and performance.

Changes

Files Change Summary
.../Ninetailed/sample-apps/README.md Updated to clarify sample app purposes, emphasizing NPM for production and SDK version distinctions.
.../app-using-v3-cdn/README.md
.../app-using-v3-cdn/src/config.js
Minor semantic adjustments; Updated WRITE_KEY and export formatting.
.../analytics-js-integrations/CHANGELOG.md
.../CHANGELOG_LATEST.md
Documented bug fixes in version 3.0.3 for ninetailed page support and mixpanel readiness.
.../__tests__/integrations/Mixpanel/browser.test.js
.../__tests__/integrations/Ninetailed/browser.test.js
Enhanced tests for Mixpanel and Ninetailed integrations.
.../src/integrations/Mixpanel/browser.js
.../src/integrations/Ninetailed/browser.js
Introduced new properties and updated methods for improved functionality.
sonar-project.properties Updated project version to 3.5.0.

"In the digital world's vast expanse,

A rabbit hopped, enhancing code's dance.

🌟 With tweaks and fixes, far and wide,

Ensuring that no bug could hide.

🐾 Through lines of code, it deftly leaps,

Crafting updates, in bytes it keeps.

🚀 To the future, our journey's set,

With a coderabbit you can bet!"

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?

Share

Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

codecov bot commented Apr 2, 2024

Codecov Report

Attention: Patch coverage is 93.33333% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 53.93%. Comparing base (08ab4c1) to head (cd08e3c).

Files Patch % Lines
...-integrations/src/integrations/Mixpanel/browser.js 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1681      +/-   ##
==========================================
+ Coverage   53.90%   53.93%   +0.02%     
==========================================
  Files         461      461              
  Lines       15611    15616       +5     
  Branches     3091     3097       +6     
==========================================
+ Hits         8415     8422       +7     
+ Misses       5907     5878      -29     
- Partials     1289     1316      +27     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented Apr 2, 2024

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 08ab4c1 and cd08e3c.
Files ignored due to path filters (4)
  • package-lock.json is excluded by !**/package-lock.json, !**/*.json
  • package.json is excluded by !**/*.json
  • packages/analytics-js-integrations/package.json is excluded by !**/*.json
  • packages/analytics-js-integrations/project.json is excluded by !**/*.json
Files selected for processing (10)
  • examples/integrations/Ninetailed/sample-apps/README.md (1 hunks)
  • examples/integrations/Ninetailed/sample-apps/app-using-v3-cdn/README.md (2 hunks)
  • examples/integrations/Ninetailed/sample-apps/app-using-v3-cdn/src/config.js (1 hunks)
  • packages/analytics-js-integrations/CHANGELOG.md (1 hunks)
  • packages/analytics-js-integrations/CHANGELOG_LATEST.md (1 hunks)
  • packages/analytics-js-integrations/tests/integrations/Mixpanel/browser.test.js (5 hunks)
  • packages/analytics-js-integrations/tests/integrations/Ninetailed/browser.test.js (2 hunks)
  • packages/analytics-js-integrations/src/integrations/Mixpanel/browser.js (2 hunks)
  • packages/analytics-js-integrations/src/integrations/Ninetailed/browser.js (2 hunks)
  • sonar-project.properties (1 hunks)
Files skipped from review due to trivial changes (1)
  • sonar-project.properties
Additional comments not posted (17)
examples/integrations/Ninetailed/sample-apps/app-using-v3-cdn/src/config.js (2)

2-2: The update to WRITE_KEY with a placeholder value is appropriate for a sample app configuration.


3-8: The formatting adjustments to the exports improve readability and maintainability.

packages/analytics-js-integrations/CHANGELOG_LATEST.md (3)

1-1: The version update to 3.0.3 follows semantic versioning practices, indicating backward-compatible bug fixes.


6-6: The bug fix entry for Ninetailed is clear and includes relevant links. The spelling of 'ninetailed' is correct in this context.


7-7: The bug fix entry for Mixpanel is clear and includes relevant links. The spelling concerns flagged by the static analysis are false positives.

packages/analytics-js-integrations/src/integrations/Ninetailed/browser.js (2)

17-17: The introduction of sendPageEvents based on config.sendPageInDevice is a logical addition, allowing for flexible configuration of page event tracking.


55-63: The conditional logic using sendPageEvents in the page method is correctly implemented, ensuring that page events are sent only when sendPageEvents is true.

examples/integrations/Ninetailed/sample-apps/app-using-v3-cdn/README.md (1)

27-27: The semantic adjustments, including adding commas for clarity, enhance the readability of the documentation.

packages/analytics-js-integrations/__tests__/integrations/Ninetailed/browser.test.js (2)

49-49: The inclusion of the sendPageInDevice configuration parameter in the instantiation of Ninetailed for test cases is a necessary update to accurately test the new behavior.


82-90: The updated test cases effectively reflect the new behavior controlled by the sendPageInDevice parameter, ensuring comprehensive coverage.

packages/analytics-js-integrations/__tests__/integrations/Mixpanel/browser.test.js (2)

18-26: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [21-33]

The addition of loaded: expect.any(Function) to various test cases accurately reflects the Mixpanel integration's initialization process and ensures the tests simulate the SDK's loading behavior correctly.


81-117: The new tests for 'isLoaded' and 'isReady' functionalities are well-structured and necessary for verifying the updated behavior of the Mixpanel integration, ensuring comprehensive test coverage.

packages/analytics-js-integrations/src/integrations/Mixpanel/browser.js (4)

69-69: The addition of isNativeSDKLoaded is a clear way to track the loading state of the Mixpanel SDK, essential for accurately determining the SDK's readiness.


97-101: The modifications to the init method, including setting isNativeSDKLoaded to true when the SDK is loaded, accurately reflect the SDK's loading state.


105-105: The update to the isLoaded method to check isNativeSDKLoaded is a more reliable way to determine if the SDK is loaded.


109-109: The update to the isReady method to call isLoaded for determining readiness ensures consistency in how the integration checks for readiness.

packages/analytics-js-integrations/CHANGELOG.md (1)

5-11: The changelog entry for version 3.0.3 clearly outlines the bug fixes for Ninetailed and Mixpanel integrations. Please ensure that the implementation and tests for these changes are thoroughly verified.

Comment on lines 4 to 9
1. NPM package: This is for Production Use Case where rudderstack would be installed using npm install command and the app will initialise its instance.

3. V3 CDN: This app can be used for any environment either for dev, staging or prod by providing the right configurations in config.js file. This uses the V3 SDK.
2. V1.1 CDN: This app can be used for any environment either for dev, staging or prod by providing the right configurations in config.js file .This uses the legacy SDK.

For Customers: NPM one is advised and other ones are just testing purposes mainly for developers No newline at end of file
3. V3 CDN: This app can be used for any environment either for dev, staging or prod by providing the right configurations in config.js file . This uses the V3 SDK.

For Customers: The NPM package is recommended for production use. The other versions are intended primarily for testing and development purposes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updated descriptions for the sample apps are clear and helpful. Minor grammatical improvements could be made for better readability. For example, consider adding a space after periods and using "in" instead of "for" when referring to environments.

- ...for any environment either for dev, staging or prod by providing the right configurations in config.js file .This uses...
+ ...in any environment, either for dev, staging, or prod, by providing the right configurations in the config.js file. This uses...

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
1. NPM package: This is for Production Use Case where rudderstack would be installed using npm install command and the app will initialise its instance.
3. V3 CDN: This app can be used for any environment either for dev, staging or prod by providing the right configurations in config.js file. This uses the V3 SDK.
2. V1.1 CDN: This app can be used for any environment either for dev, staging or prod by providing the right configurations in config.js file .This uses the legacy SDK.
For Customers: NPM one is advised and other ones are just testing purposes mainly for developers
\ No newline at end of file
3. V3 CDN: This app can be used for any environment either for dev, staging or prod by providing the right configurations in config.js file . This uses the V3 SDK.
For Customers: The NPM package is recommended for production use. The other versions are intended primarily for testing and development purposes.
1. NPM package: This is for Production Use Case where rudderstack would be installed using npm install command and the app will initialise its instance.
2. V1.1 CDN: This app can be used in any environment, either for dev, staging, or prod, by providing the right configurations in the config.js file. This uses the legacy SDK.
3. V3 CDN: This app can be used in any environment, either for dev, staging, or prod, by providing the right configurations in the config.js file. This uses the V3 SDK.
For Customers: The NPM package is recommended for production use. The other versions are intended primarily for testing and development purposes.

Copy link

github-actions bot commented Apr 2, 2024

size-limit report 📦

Name Size (Base) Size (Current) Size Limit Status
Common Code - No bundling 15.78 KB 15.81 KB (+0.21% ▲) 16.5 KB
Remote Module Federation Mapping - CDN 330 B 330 B (0%) 512 B
Remote Module Federated Plugins - CDN 5.71 KB 5.71 KB (0%) 6 KB
Core ESM - NPM 7.64 KB 7.64 KB (0%) 8 KB
Core CJS - NPM 22.45 KB 22.45 KB (0%) 23 KB
Core - NPM 22.55 KB 22.55 KB (0%) 23 KB
Core Legacy - CDN 42.99 KB 42.99 KB (0%) 44 KB
Core - CDN 22.71 KB 22.71 KB (0%) 23 KB
Core (legacy build) - CDN - v1.1 31.55 KB 31.55 KB (0%) 32 KB
Core - NPM - v1.1 31.53 KB 31.53 KB (0%) 32 KB
Service Worker Module 22.64 KB 22.64 KB (0%) 24 KB
All Integrations (legacy build) - CDN 98.57 KB 98.45 KB (-0.13% ▼) 105 KB

@saikumarrs
Copy link
Member

@MoumitaM, can you link the release ticket in the description?

@MoumitaM
Copy link
Contributor

MoumitaM commented Apr 3, 2024

@MoumitaM, can you link the release ticket in the description?

Done

@MoumitaM MoumitaM merged commit 4fa8cbb into main Apr 3, 2024
13 checks passed
@MoumitaM MoumitaM deleted the release/3.5.0 branch April 3, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants