-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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] updated page trigger fix #14116
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Skipped Deployments
|
WalkthroughThis pull request includes updates to the Changes
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: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
- components/notion/package.json (1 hunks)
- components/notion/sources/updated-page/updated-page.mjs (4 hunks)
✅ Files skipped from review due to trivial changes (1)
- components/notion/package.json
🧰 Additional context used
🪛 Biome
components/notion/sources/updated-page/updated-page.mjs
[error] 91-91: Avoid the delete operator which can impact performance.
Unsafe fix: Use an undefined assignment instead.
(lint/performance/noDelete)
🔇 Additional comments (1)
components/notion/sources/updated-page/updated-page.mjs (1)
85-95
: Use ofdelete
operator is appropriate in this contextWhile static analysis warns about the performance impact of using the
delete
operator, deletingfile.file
is necessary here to remove the property entirely before serialization and hashing. Assigningundefined
would leave the property in the object, which could lead to incorrect hash computations. The performance impact is negligible in this context.🧰 Tools
🪛 Biome
[error] 91-91: Avoid the delete operator which can impact performance.
Unsafe fix: Use an undefined assignment instead.
(lint/performance/noDelete)
Related to #13773 |
When adding a Files & Media property in the database, Notion constantly updates the
url
andexpiry_time
values. This causes the trigger to emit multiple events for a page.According to Notion's documentation: Working with files and media
This PR makes the trigger ignore changes for
url
andexpiry_time
fields for Files & Media properties, but still exports the latesturl
andexpiry_time
values whenever there is a change.Summary by CodeRabbit
New Features
Version Updates
@pipedream/notion
from0.1.22
to0.1.23
.notion-updated-page
from0.0.17
to0.0.18
.