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

docs: add contribution guide for device mode integration #1979

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

gitcommitshow
Copy link
Collaborator

@gitcommitshow gitcommitshow commented Dec 19, 2024

PR Description

Add a comprehensive step-by-step guide to develop device mode integration as a new section in Contributing.md

Linear task (optional)

N/A

Cross Browser Tests

N/A

Sanity Suite

  • All sanity suite test cases pass locally

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive guide for developers on creating integrations in both Cloud Mode and Device Mode in the CONTRIBUTING.md file.
    • Included detailed instructions on setup, development steps, testing procedures, and deployment support.
    • Provided an overview of the RudderStack Event Specification and differences between integration modes, aiding informed decision-making.

Copy link
Contributor

coderabbitai bot commented Dec 19, 2024

📝 Walkthrough

Walkthrough

The pull request introduces a new section titled "Guide to develop your first RudderStack integration" in the CONTRIBUTING.md file. This section provides detailed guidance for developers on creating integrations in both Cloud Mode and Device Mode. It covers the RudderStack Event Specification, differences between integration modes, development environment setup, code structure, building and testing processes, UI configuration, and deployment best practices.

Changes

File Change Summary
CONTRIBUTING.md Added a new section "Guide to develop your first RudderStack integration" with detailed instructions for:
- Overview of integration types
- Development environment setup
- Core development steps
- Building and testing procedures
- Automated testing instructions
- UI configuration methods
- Deployment and support guidelines

Sequence Diagram

sequenceDiagram
    participant Dev as Developer
    participant Guide as CONTRIBUTING.md
    participant Env as Development Environment
    participant Integration as Device Mode Integration

    Dev->>Guide: Read integration development guide
    Dev->>Env: Set up development environment
    Dev->>Integration: Define core components
    Dev->>Integration: Implement integration code
    Dev->>Integration: Configure testing setup
    Dev->>Integration: Build and test integration
    Dev->>Integration: Prepare documentation
Loading

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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration 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/schema.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
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

🧹 Nitpick comments (3)
CONTRIBUTING.md (3)

54-64: LGTM! Consider adding a brief comparison of integration modes.

The introduction effectively sets the context and links to essential documentation. To enhance clarity, consider adding a brief comparison of when to use Cloud Mode vs Device Mode integration.

Add a brief comparison like:

 2. **Device Mode Integration**: Events are sent directly from the client to the destination in this mode
+
+Choose Device Mode when:
+- Real-time user interaction is required
+- Client-side features like user tracking or A/B testing are needed
+- Reduced server load is desired
🧰 Tools
🪛 LanguageTool

[uncategorized] ~55-~55: This verb may not be in the correct form. Consider using a different form for this context.
Context: ...ty/) channel.

---- # Guide to develop your first device mode RudderStack inte...

(AI_EN_LECTOR_REPLACEMENT_VERB_FORM)


127-136: Enhance testing setup documentation.

The testing setup section would benefit from:

  1. Examples of environment variable values
  2. Troubleshooting common issues
  3. Validation steps to confirm successful setup

Consider adding:

 2. Configure test environment:
    - Modify `public/index.html` for mock source config
    - Set environment variables (WRITE_KEY, DATAPLANE_URL)
+   Example:
+   ```bash
+   export WRITE_KEY=<your_write_key>
+   export DATAPLANE_URL=http://localhost:8080
+   ```
+   
+   Validation:
+   1. Check the network tab for successful SDK initialization
+   2. Verify events are being sent to your destination
+   
+   Common issues:
+   - If events aren't appearing, check browser console for errors
+   - Ensure dataplane URL is accessible

164-171: Expand best practices with security and performance guidelines.

Consider adding specific guidelines for:

  1. Security best practices (data handling, PII considerations)
  2. Performance optimization
  3. Error handling standards

Add these points:

 - Keep code modular and maintainable
+- Follow security best practices:
+  - Never log sensitive data or PII
+  - Use secure protocols for data transmission
+  - Implement rate limiting where appropriate
+- Optimize performance:
+  - Minimize SDK size and dependencies
+  - Implement proper error handling and retries
+  - Cache expensive operations when possible
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3cd77a1 and 65f4cc0.

📒 Files selected for processing (1)
  • CONTRIBUTING.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
CONTRIBUTING.md

[uncategorized] ~55-~55: This verb may not be in the correct form. Consider using a different form for this context.
Context: ...ty/) channel.

---- # Guide to develop your first device mode RudderStack inte...

(AI_EN_LECTOR_REPLACEMENT_VERB_FORM)


[uncategorized] ~148-~148: The preposition ‘to’ seems more likely in this position.
Context: ...l configuration** - Add config files in src/configurations/destinations - ...

(AI_HYDRA_LEO_REPLACE_IN_TO)

🔇 Additional comments (1)
CONTRIBUTING.md (1)

173-180: LGTM! Comprehensive reference section.

The references section provides valuable resources including community links, workshop recordings, and documentation.

CONTRIBUTING.md Show resolved Hide resolved
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.28%. Comparing base (3cd77a1) to head (6ea9d2d).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1979   +/-   ##
========================================
  Coverage    61.28%   61.28%           
========================================
  Files          484      484           
  Lines        16612    16612           
  Branches      3327     3352   +25     
========================================
  Hits         10181    10181           
+ Misses        5224     5166   -58     
- Partials      1207     1265   +58     

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

Copy link

github-actions bot commented Dec 19, 2024

size-limit report 📦

Name Size (Base) Size (Current) Size Limit Status
Cookies Utils - Legacy - NPM (ESM) 1.54 KB 1.54 KB (0%) 2 KB
Cookies Utils - Legacy - NPM (CJS) 1.75 KB 1.75 KB (0%) 2 KB
Cookies Utils - Legacy - NPM (UMD) 1.54 KB 1.54 KB (0%) 2 KB
Cookies Utils - Modern - NPM (ESM) 1.17 KB 1.17 KB (0%) 1.5 KB
Cookies Utils - Modern - NPM (CJS) 1.4 KB 1.4 KB (0%) 1.5 KB
Cookies Utils - Modern - NPM (UMD) 1.16 KB 1.16 KB (0%) 1.5 KB
Plugins Module Federation Mapping - Legacy - CDN 332 B 332 B (0%) 512 B
Plugins - Legacy - CDN 15.75 KB 15.75 KB (0%) 16 KB
Plugins Module Federation Mapping - Modern - CDN 331 B 331 B (0%) 512 B
Plugins - Modern - CDN 7.2 KB 7.2 KB (0%) 7.5 KB
Common - No bundling 17.8 KB 17.76 KB (-0.2% ▼) 18.4 KB
Load Snippet 762 B 762 B (0%) 1 KB
Core (v1.1) - NPM (ESM) 30.25 KB 30.25 KB (0%) 32 KB
Core (v1.1) - NPM (CJS) 30.47 KB 30.47 KB (0%) 32 KB
Core (v1.1) - NPM (UMD) 30.29 KB 30.29 KB (0%) 32 KB
Core (Content Script - v1.1) - NPM (ESM) 29.81 KB 29.81 KB (0%) 30.5 KB
Core (Content Script - v1.1) - NPM (CJS) 30 KB 30 KB (0%) 30.5 KB
Core (Content Script - v1.1) - NPM (UMD) 29.83 KB 29.83 KB (0%) 30 KB
Core - Legacy - CDN 48.96 KB 48.96 KB (0%) 49 KB
Core - Modern - CDN 25 KB 25 KB (0%) 25.5 KB
Service Worker - Legacy - NPM (ESM) 30.61 KB 30.61 KB (0%) 31 KB
Service Worker - Legacy - NPM (CJS) 30.85 KB 30.85 KB (0%) 31 KB
Service Worker - Legacy - NPM (UMD) 30.6 KB 30.6 KB (0%) 31 KB
Service Worker - Modern - NPM (ESM) 25.74 KB 25.74 KB (0%) 26 KB
Service Worker - Modern - NPM (CJS) 25.97 KB 25.97 KB (0%) 26.5 KB
Service Worker - Modern - NPM (UMD) 25.75 KB 25.75 KB (0%) 26 KB
Core - Legacy - NPM (ESM) 48.79 KB 48.79 KB (0%) 49 KB
Core - Legacy - NPM (CJS) 49.08 KB 49.08 KB (0%) 49.1 KB
Core - Legacy - NPM (UMD) 48.86 KB 48.86 KB (0%) 49 KB
Core - Modern - NPM (ESM) 24.77 KB 24.77 KB (0%) 25 KB
Core - Modern - NPM (CJS) 24.96 KB 24.96 KB (0%) 25.5 KB
Core - Modern - NPM (UMD) 24.78 KB 24.78 KB (0%) 25 KB
Core (Bundled) - Legacy - NPM (ESM) 48.79 KB 48.79 KB (0%) 49 KB
Core (Bundled) - Legacy - NPM (CJS) 49.09 KB 49.09 KB (0%) 49.1 KB
Core (Bundled) - Legacy - NPM (UMD) 48.86 KB 48.86 KB (0%) 49 KB
Core (Bundled) - Modern - NPM (ESM) 39.75 KB 39.75 KB (0%) 40 KB
Core (Bundled) - Modern - NPM (CJS) 39.97 KB 39.97 KB (0%) 40.5 KB
Core (Bundled) - Modern - NPM (UMD) 39.77 KB 39.77 KB (0%) 40 KB
Core (Content Script) - Legacy - NPM (ESM) 48.26 KB 48.26 KB (0%) 48.5 KB
Core (Content Script) - Legacy - NPM (CJS) 48.48 KB 48.48 KB (0%) 48.5 KB
Core (Content Script) - Legacy - NPM (UMD) 48.25 KB 48.25 KB (0%) 48.5 KB
Core (Content Script) - Modern - NPM (ESM) 39.25 KB 39.25 KB (0%) 39.5 KB
Core (Content Script) - Modern - NPM (CJS) 39.52 KB 39.52 KB (0%) 40 KB
Core (Content Script) - Modern - NPM (UMD) 39.25 KB 39.25 KB (0%) 39.5 KB
All Integrations - Legacy - CDN 94.82 KB 94.82 KB (0%) 95.3 KB
All Integrations - Modern - CDN 90.08 KB 90.08 KB (0%) 91 KB

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

🧹 Nitpick comments (3)
CONTRIBUTING.md (3)

16-16: Fix grammar: Add missing article

Add "the" before "list" for proper grammar.

-we can add you to list of approved contributors
+we can add you to the list of approved contributors
🧰 Tools
🪛 LanguageTool

[uncategorized] ~16-~16: Possible missing article found.
Context: ...to the [CLA][CLA] we can add you to list of approved contributors and review the...

(AI_HYDRA_LEO_MISSING_THE)


34-34: Fix subject-verb agreement

Correct the verb form to match the plural subject "folders".

-folders that contains the integration SDKs
+folders that contain the integration SDKs
🧰 Tools
🪛 LanguageTool

[uncategorized] ~34-~34: Loose punctuation mark.
Context: ...ntents. - npm run build:integrations: This outputs dist/cdn/legacy and **...

(UNLIKELY_OPENING_PUNCTUATION)


[grammar] ~34-~34: Possible subject-verb agreement error detected.
Context: ...** and dist/cdn/modern folders that contains the integration SDKs. > We use **rollu...

(PLURAL_THAT_AGREEMENT)


227-233: Expand the best practices section

Consider adding these important best practices:

  1. Error handling and logging strategies
  2. Performance optimization guidelines
  3. Testing strategies (unit, integration, e2e)
  4. Version compatibility considerations
  5. Security best practices
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 65f4cc0 and 6f0612a.

⛔ Files ignored due to path filters (1)
  • package.json is excluded by !**/*.json
📒 Files selected for processing (1)
  • CONTRIBUTING.md (3 hunks)
🧰 Additional context used
🪛 LanguageTool
CONTRIBUTING.md

[uncategorized] ~16-~16: Possible missing article found.
Context: ...to the [CLA][CLA] we can add you to list of approved contributors and review the...

(AI_HYDRA_LEO_MISSING_THE)


[uncategorized] ~32-~32: Loose punctuation mark.
Context: ...are: - npm run build:browser:modern: This outputs dist/cdn/modern folder...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~33-~33: Loose punctuation mark.
Context: ...contents. - npm run build:npm:modern: This outputs dist/npm/modern folder...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~34-~34: Loose punctuation mark.
Context: ...ntents. - npm run build:integrations: This outputs dist/cdn/legacy and **...

(UNLIKELY_OPENING_PUNCTUATION)


[grammar] ~34-~34: Possible subject-verb agreement error detected.
Context: ...** and dist/cdn/modern folders that contains the integration SDKs. > We use **rollu...

(PLURAL_THAT_AGREEMENT)


[style] ~42-~42: ‘prior to’ might be wordy. Consider a shorter alternative.
Context: ... are squashed when merged, but rebasing prior to merge gives you better control over the...

(EN_WORDINESS_PREMIUM_PRIOR_TO)

🪛 Markdownlint (0.37.0)
CONTRIBUTING.md

136-136: Expected: 2; Actual: 3
Unordered list indentation

(MD007, ul-indent)


138-138: Expected: 2; Actual: 3
Unordered list indentation

(MD007, ul-indent)

🔇 Additional comments (2)
CONTRIBUTING.md (2)

113-133: Add documentation and error handling to the integration class example

This is a critical example that needs more robust documentation and error handling.


53-243: Well-structured and comprehensive guide

The device mode integration guide is well-organized and provides clear, actionable steps for contributors. It effectively covers the entire development lifecycle from setup to deployment.

🧰 Tools
🪛 Markdownlint (0.37.0)

136-136: Expected: 2; Actual: 3
Unordered list indentation

(MD007, ul-indent)


138-138: Expected: 2; Actual: 3
Unordered list indentation

(MD007, ul-indent)

CONTRIBUTING.md Show resolved Hide resolved
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: 3

🧹 Nitpick comments (2)
CONTRIBUTING.md (2)

85-85: Fix typo in the word "integration".

-If _device mode_ integration does not seem suitable, go ahead with the _cloud mode_ inregration development instead
+If _device mode_ integration does not seem suitable, go ahead with the _cloud mode_ integration development instead
🧰 Tools
🪛 LanguageTool

[style] ~85-~85: To elevate your writing, consider using a more formal and concise alternative here.
Context: ...de_ integration does not seem suitable, go ahead with the cloud mode inregration devel...

(GO_AHEAD_PROCEED)


74-84: Enhance the device mode trade-offs section.

Consider adding performance impact metrics or examples to make the trade-offs more concrete. For example:

  • Bundle size impact
  • Typical load time differences
  • Common ad blockers that might affect the integration
🧰 Tools
🪛 LanguageTool

[style] ~82-~82: To elevate your writing, try using a synonym here.
Context: ...y by adding third-party SDKs * Makes it hard to collect first-party data * Prone...

(HARD_TO)


[misspelling] ~83-~83: Did you mean the verb “add” instead of the noun ‘ad’ (advertisement)?
Context: ...collect first-party data * Prone to ad blockers If device mode integration ...

(AD_ADD)

🪛 Markdownlint (0.37.0)

76-76: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


77-77: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


81-81: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


82-82: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


83-83: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6f0612a and ec26280.

📒 Files selected for processing (1)
  • CONTRIBUTING.md (3 hunks)
🧰 Additional context used
🪛 LanguageTool
CONTRIBUTING.md

[uncategorized] ~33-~33: Loose punctuation mark.
Context: ...are: - npm run build:browser:modern: This outputs dist/cdn/modern folder...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~34-~34: Loose punctuation mark.
Context: ...contents. - npm run build:npm:modern: This outputs dist/npm/modern folder...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~35-~35: Loose punctuation mark.
Context: ...ntents. - npm run build:integrations: This outputs dist/cdn/legacy and **...

(UNLIKELY_OPENING_PUNCTUATION)


[grammar] ~35-~35: Possible subject-verb agreement error detected.
Context: ...** and dist/cdn/modern folders that contains the integration SDKs. > We use **rollu...

(PLURAL_THAT_AGREEMENT)


[style] ~43-~43: ‘prior to’ might be wordy. Consider a shorter alternative.
Context: ... are squashed when merged, but rebasing prior to merge gives you better control over the...

(EN_WORDINESS_PREMIUM_PRIOR_TO)


[style] ~82-~82: To elevate your writing, try using a synonym here.
Context: ...y by adding third-party SDKs * Makes it hard to collect first-party data * Prone...

(HARD_TO)


[misspelling] ~83-~83: Did you mean the verb “add” instead of the noun ‘ad’ (advertisement)?
Context: ...collect first-party data * Prone to ad blockers If device mode integration ...

(AD_ADD)


[style] ~85-~85: To elevate your writing, consider using a more formal and concise alternative here.
Context: ...de_ integration does not seem suitable, go ahead with the cloud mode inregration devel...

(GO_AHEAD_PROCEED)


[uncategorized] ~104-~104: Loose punctuation mark.
Context: ... packages directory. * analytics-js: The main JavaScript SDK * `analytics-js...

(UNLIKELY_OPENING_PUNCTUATION)


[style] ~244-~244: Consider a shorter alternative to avoid wordiness.
Context: ... ### Configurations for the integration In order to allow user to configure your integratio...

(IN_ORDER_TO_PREMIUM)

🪛 Markdownlint (0.37.0)
CONTRIBUTING.md

76-76: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


77-77: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


81-81: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


82-82: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


83-83: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


104-104: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


105-105: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


106-106: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


107-107: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


111-111: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


112-112: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


113-113: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


114-114: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


115-115: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


116-116: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


125-125: Expected: 0; Actual: 3
Unordered list indentation

(MD007, ul-indent)


126-126: Expected: 0; Actual: 3
Unordered list indentation

(MD007, ul-indent)


127-127: Expected: 0; Actual: 3
Unordered list indentation

(MD007, ul-indent)


161-161: Expected: 2; Actual: 3
Unordered list indentation

(MD007, ul-indent)


163-163: Expected: 2; Actual: 3
Unordered list indentation

(MD007, ul-indent)

🔇 Additional comments (4)
CONTRIBUTING.md (4)

13-13: LGTM: Table of contents update is accurate.

The new section is properly added to the table of contents with correct formatting and link.


138-158: Add documentation and error handling to the integration class example.

This comment was previously made and remains valid. The integration class example needs parameter documentation, error handling, and return type information.


192-232: Enhance security in test configuration example.

This security concern was previously raised and remains valid. The test configuration example should include notes about using environment variables for sensitive values.


281-288: LGTM: References section is comprehensive.

The references section provides valuable resources for contributors, including community links, workshop recordings, and documentation.

CONTRIBUTING.md Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
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: 0

🧹 Nitpick comments (3)
CONTRIBUTING.md (3)

13-13: LGTM! Minor markdown formatting suggestions.

The new section is properly added to the TOC and matches the section title. Consider standardizing the unordered list style to use dashes (-) instead of asterisks (*) throughout the document for consistency.

Also applies to: 56-56


72-72: Fix typos and improve clarity.

  • Line 72: Add "the" before "Following information"
  • Line 85: Fix typo "inregration" to "integration"
-Should you choose device mode integration over cloud mode integration? Following information should help you make the decision.
+Should you choose device mode integration over cloud mode integration? The following information should help you make the decision.

-If _device mode_ integration does not seem suitable, go ahead with the _cloud mode_ inregration development instead
+If _device mode_ integration does not seem suitable, proceed with the _cloud mode_ integration development instead

Also applies to: 85-85

🧰 Tools
🪛 LanguageTool

[uncategorized] ~72-~72: Possible missing article found.
Context: ...ntegration over cloud mode integration? Following information should help you make the de...

(AI_HYDRA_LEO_MISSING_THE)


291-297: Enhance best practices with examples.

Consider adding concrete examples of good vs bad practices for each guideline to help developers better understand the recommendations.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ec26280 and 6ea9d2d.

📒 Files selected for processing (1)
  • CONTRIBUTING.md (3 hunks)
🧰 Additional context used
🪛 LanguageTool
CONTRIBUTING.md

[uncategorized] ~33-~33: Loose punctuation mark.
Context: ...are: - npm run build:browser:modern: This outputs dist/cdn/modern folder...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~34-~34: Loose punctuation mark.
Context: ...contents. - npm run build:npm:modern: This outputs dist/npm/modern folder...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~35-~35: Loose punctuation mark.
Context: ...ntents. - npm run build:integrations: This outputs dist/cdn/legacy and **...

(UNLIKELY_OPENING_PUNCTUATION)


[grammar] ~35-~35: Possible subject-verb agreement error detected.
Context: ...** and dist/cdn/modern folders that contains the integration SDKs. > We use **rollu...

(PLURAL_THAT_AGREEMENT)


[style] ~43-~43: ‘prior to’ might be wordy. Consider a shorter alternative.
Context: ... are squashed when merged, but rebasing prior to merge gives you better control over the...

(EN_WORDINESS_PREMIUM_PRIOR_TO)


[uncategorized] ~72-~72: Possible missing article found.
Context: ...ntegration over cloud mode integration? Following information should help you make the de...

(AI_HYDRA_LEO_MISSING_THE)


[style] ~82-~82: To elevate your writing, try using a synonym here.
Context: ...y by adding third-party SDKs * Makes it hard to collect first-party data * Prone...

(HARD_TO)


[misspelling] ~83-~83: Did you mean the verb “add” instead of the noun ‘ad’ (advertisement)?
Context: ...collect first-party data * Prone to ad blockers If device mode integration ...

(AD_ADD)


[style] ~85-~85: To elevate your writing, consider using a more formal and concise alternative here.
Context: ...de_ integration does not seem suitable, go ahead with the cloud mode inregration devel...

(GO_AHEAD_PROCEED)


[uncategorized] ~104-~104: Loose punctuation mark.
Context: ... packages directory. * analytics-js: The main JavaScript SDK * `analytics-js...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~170-~170: Possible missing article found.
Context: ...d, getUserId, etc. - rudderElement` object is a wrapper around the actual standard...

(AI_HYDRA_LEO_MISSING_THE)


[style] ~252-~252: Consider a shorter alternative to avoid wordiness.
Context: ...udder-integrations-config` repository) In order to allow user to configure your integratio...

(IN_ORDER_TO_PREMIUM)


[uncategorized] ~253-~253: Possible missing article found.
Context: ...-config` repository) In order to allow user to configure your integration via the R...

(AI_HYDRA_LEO_MISSING_A)


[grammar] ~268-~268: It seems that “to” is missing before the verb.
Context: ...immutable and should be intuitive * Include the integration's name, display name, s...

(MISSING_TO_BETWEEN_BE_AND_VB)


[uncategorized] ~274-~274: Possible missing preposition found.
Context: ...actices of configuration management:** Decide which configurations should be set via ...

(AI_HYDRA_LEO_MISSING_TO)

🪛 Markdownlint (0.37.0)
CONTRIBUTING.md

76-76: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


77-77: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


81-81: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


82-82: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


83-83: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


104-104: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


105-105: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


106-106: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


107-107: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


111-111: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


112-112: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


113-113: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


114-114: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


115-115: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


116-116: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


266-266: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


267-267: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


268-268: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


269-269: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


270-270: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


271-271: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


277-277: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


278-278: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


279-279: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


280-280: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


129-129: Expected: 0; Actual: 3
Unordered list indentation

(MD007, ul-indent)


130-130: Expected: 0; Actual: 3
Unordered list indentation

(MD007, ul-indent)


131-131: Expected: 0; Actual: 3
Unordered list indentation

(MD007, ul-indent)


167-167: Expected: 2; Actual: 3
Unordered list indentation

(MD007, ul-indent)


169-169: Expected: 2; Actual: 3
Unordered list indentation

(MD007, ul-indent)


197-197: Expected: 0; Actual: 3
Unordered list indentation

(MD007, ul-indent)


240-240: Expected: 0; Actual: 3
Unordered list indentation

(MD007, ul-indent)


241-241: Expected: 0; Actual: 3
Unordered list indentation

(MD007, ul-indent)


268-268: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


269-269: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


277-277: Expected: 0; Actual: 2
Unordered list indentation

(MD007, ul-indent)


278-278: Expected: 0; Actual: 2
Unordered list indentation

(MD007, ul-indent)


279-279: Expected: 0; Actual: 2
Unordered list indentation

(MD007, ul-indent)


280-280: Expected: 0; Actual: 2
Unordered list indentation

(MD007, ul-indent)


124-124: null
Emphasis used instead of a heading

(MD036, no-emphasis-as-heading)


139-139: null
Emphasis used instead of a heading

(MD036, no-emphasis-as-heading)

🔇 Additional comments (2)
CONTRIBUTING.md (2)

144-164: Add documentation and error handling to the integration class example.

The integration class example would benefit from parameter documentation and error handling as suggested in the previous review.


300-307: LGTM! Comprehensive references provided.

The references section includes valuable resources including documentation, community channels, and workshop recordings.

@gitcommitshow gitcommitshow marked this pull request as ready for review December 24, 2024 18:23
@gitcommitshow gitcommitshow requested a review from a team as a code owner December 24, 2024 18:23
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.

2 participants