-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Notion Database Page - Support End Dates #14556
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Skipped Deployments
|
Warning Rate limit exceeded@michelle0927 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 8 minutes and 35 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. WalkthroughThis pull request primarily involves updating the version numbers across several Notion action files and the Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
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: 1
🧹 Outside diff range and nitpick comments (1)
components/notion/common/notion-page-properties.mjs (1)
67-67
: Consider improving the example format for better readability.The example effectively shows both formats but could be more intuitive with:
- More readable dates (e.g., showing a meaningful date range like a week)
- Unescaped quotes for better readability
- example: "2022-05-15T18:47:00.000Z or { \"start\": \"2022-05-15T18:47:00.000Z\", \"end\": \"2022-06-15T18:47:00.000Z\" }", + example: "2024-01-01T00:00:00.000Z or { 'start': '2024-01-01T00:00:00.000Z', 'end': '2024-01-07T00:00:00.000Z' }",
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (7)
components/notion/actions/append-block/append-block.mjs
(1 hunks)components/notion/actions/create-page-from-database/create-page-from-database.mjs
(1 hunks)components/notion/actions/create-page/create-page.mjs
(1 hunks)components/notion/actions/duplicate-page/duplicate-page.mjs
(1 hunks)components/notion/actions/update-page/update-page.mjs
(1 hunks)components/notion/common/notion-page-properties.mjs
(1 hunks)components/notion/package.json
(1 hunks)
✅ Files skipped from review due to trivial changes (6)
- components/notion/actions/append-block/append-block.mjs
- components/notion/actions/create-page-from-database/create-page-from-database.mjs
- components/notion/actions/create-page/create-page.mjs
- components/notion/actions/duplicate-page/duplicate-page.mjs
- components/notion/actions/update-page/update-page.mjs
- components/notion/package.json
🔇 Additional comments (1)
components/notion/common/notion-page-properties.mjs (1)
67-76
: Verify existing usage patterns of the date property.
Let's ensure this change doesn't break existing implementations and identify any places that need updates.
✅ Verification successful
Based on the analysis of the codebase, particularly the base-page-builder.mjs
implementation, I can now provide a final response:
The date property implementation is safe to use
The date property handling is well-isolated and the changes are safe because:
- The property conversion happens through a generic converter system in
base-page-builder.mjs
- Properties are processed individually through
_convertPropertiesToNotion()
method - The implementation is flexible enough to handle both string and object formats
- No direct dependencies on the specific date format were found in other components
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Search for usage patterns of the date property in Notion page creation/updates
echo "Checking for direct date property usage..."
rg -l "date.*property" --type js --type mjs
echo "\nChecking for date value assignments..."
rg -B 2 -A 2 "date['\"]?\s*:\s*[{\"]" --type js --type mjs
echo "\nChecking for potential test files that might need updates..."
fd -e test.js -e test.mjs -e spec.js -e spec.mjs
Length of output: 535
Script:
#!/bin/bash
# Let's modify the commands to work without file type specifications
echo "Checking for direct date property usage..."
rg -l "date.*property"
echo -e "\nChecking for date value assignments..."
rg -B 2 -A 2 'date["\']?\s*:\s*[{\"]'
echo -e "\nChecking for files importing or using notion-page-properties..."
rg -l "notion-page-properties"
Length of output: 882
Script:
#!/bin/bash
# Let's check specific usage patterns in relevant files
echo "Checking notion-page-properties usage and imports..."
rg -p "notion-page-properties" components/notion/
echo -e "\nChecking date property usage in update-page action..."
rg -p -B 2 -A 2 "date.*property" components/notion/actions/update-page/update-page.mjs
echo -e "\nChecking actual date value formats in tests or examples..."
rg -p "\"date\":\s*[{\"]" components/notion/
Length of output: 1123
Script:
#!/bin/bash
# Let's examine the base-page-builder.mjs since it imports the properties
echo "Checking base-page-builder.mjs implementation..."
cat components/notion/actions/common/base-page-builder.mjs
echo -e "\nChecking for any test files in notion component..."
find components/notion -type f -name "*test*"
echo -e "\nChecking for example usage in documentation..."
rg -p "date.*example" components/notion/
Length of output: 10314
* update data property * versions * update object detection
Resolves #14451
Summary by CodeRabbit
Release Notes
New Features
Version Updates
notion-append-block
: 0.2.15 → 0.2.16create-page-from-database
: 0.1.13 → 0.1.14create-page
: 0.2.11 → 0.2.12duplicate-page
: 0.0.7 → 0.0.8update-page
: 1.1.1 → 1.1.2