-
Notifications
You must be signed in to change notification settings - Fork 5.5k
[ACTION] Google Sheets - Provide polling options as an alternative to current webhook based ones #19302
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
base: master
Are you sure you want to change the base?
Conversation
… current webhook based ones
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
WalkthroughThis PR introduces polling-based sources for Google Sheets as alternatives to webhook-based triggers. It adds a shared comment-processing module, two new polling sources (new comments and new updates), corresponding test fixtures, and bumps the package version to 0.13.0. Changes
Sequence Diagram(s)sequenceDiagram
participant Timer as Polling Timer
participant Source as Polling Source
participant DB as Local DB
participant API as Google Sheets API
participant Emit as Event Emitter
loop Every interval
Timer->>Source: trigger run()
Source->>DB: _getLastTs()
DB-->>Source: lastTs
Source->>API: listComments(sheetID, lastTs)
API-->>Source: comments array
alt New comments exist
Source->>DB: _setLastTs(newest.createdTime)
loop For each comment (reversed)
Source->>Source: generateMeta(comment)
Source->>Emit: emit(comment, meta)
end
else No new comments
Source->>Source: early exit
end
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (6)
🧰 Additional context used🧬 Code graph analysis (2)components/google_sheets/sources/new-updates-polling/new-updates-polling.mjs (1)
components/google_sheets/sources/new-comment-polling/new-comment-polling.mjs (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (13)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
WHY
Resolves #19119
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.