-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Notion - Comments #15200
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
Notion - Comments #15200
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
WalkthroughA new Notion comments feature has been implemented, introducing two primary components: a module for creating comments and a source for detecting new comments. The implementation includes a new action ( Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
Poem
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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration 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.
Actionable comments posted: 4
🧹 Nitpick comments (2)
components/notion/sources/new-comment-created/new-comment-created.mjs (2)
7-8
: Add rate limiting information to the documentation.The description should include information about Notion API rate limits and potential delays in comment detection, as this affects user expectations.
- description: "Emit new event when a new comment is created in a page or block. [See the documentation](https://developers.notion.com/reference/retrieve-a-comment)", + description: "Emit new event when a new comment is created in a page or block. Runs every 15 minutes by default. [See the documentation](https://developers.notion.com/reference/retrieve-a-comment)",
23-29
: Enhance metadata for better observability.The metadata could include more useful information for debugging and monitoring.
generateMeta(comment) { return { id: comment.id, - summary: `New Comment ID: ${comment.id}`, + summary: `New comment by ${comment.created_by?.name || 'unknown'} on page ${this.pageId}`, ts: comment.created_time, + user: comment.created_by, + parentId: this.pageId, }; },
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yaml
is excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (3)
components/notion/actions/create-comment/create-comment.mjs
(1 hunks)components/notion/package.json
(2 hunks)components/notion/sources/new-comment-created/new-comment-created.mjs
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (4)
- GitHub Check: pnpm publish
- GitHub Check: Publish TypeScript components
- GitHub Check: Verify TypeScript components
- GitHub Check: Lint Code Base
🔇 Additional comments (1)
components/notion/package.json (1)
3-3
: Verify platform dependency compatibility.The version bump to 0.3.0 is appropriate for the new feature additions. However, let's verify the compatibility of @pipedream/platform v3.0.3 with the codebase.
Also applies to: 14-14
✅ Verification successful
Platform dependency version is compatible
The @pipedream/platform v3.0.3 dependency is compatible with the codebase, as it aligns with the v3.x.x versions used across other components.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Check for any breaking changes in platform dependency usage # Search for platform imports and usages echo "Searching for platform dependency usage patterns..." rg -l "@pipedream/platform" # Check package-lock.json for any potential conflicts if [ -f package-lock.json ]; then echo "Checking package-lock.json for platform dependency conflicts..." jq '.dependencies["@pipedream/platform"]' package-lock.json fiLength of output: 66165
Script:
#!/bin/bash # Check platform dependency version in notion component and sample other components echo "Checking notion component platform version..." jq -r '.dependencies["@pipedream/platform"]' components/notion/package.json echo -e "\nSampling other components' platform versions..." for comp in components/*/package.json; do if [ -f "$comp" ]; then ver=$(jq -r '.dependencies["@pipedream/platform"]' "$comp" 2>/dev/null) if [ "$ver" != "null" ] && [ "$ver" != "" ]; then echo "$comp: $ver" fi fi done | head -n 5Length of output: 2424
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.
Hi @michelle0927, LGTM! Ready for QA!
Resolves #10465
Summary by CodeRabbit
New Features
Version Update
Dependencies
@pipedream/platform
dependency