-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Issue 18484 #18485
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?
Issue 18484 #18485
Conversation
WalkthroughVersion increments across Salesforce REST API package and multiple sources. Introduces skip-first-run behavior: guards initial historical emissions in common-updated-record deploy hook and early-exit logic for timer-driven runs in common.mjs. Adds a new boolean prop skipFirstRun to record-updated-instant. No other functional changes. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User as User
participant Src as Source (record-updated-instant)
participant Common as Common Logic
participant SF as Salesforce API
participant Store as State Storage
participant Timer as Timer
participant Hook as Webhook
User->>Src: Activate with skipFirstRun=[true|false]
alt Webhook-enabled
Note over Src,Hook: Webhook path unchanged
Hook-->>Src: Update event
Src->>Common: process update
Common->>SF: Fetch details
SF-->>Common: Data
Common->>Store: Update cursor/metadata
Common-->>Src: Emit event
else Timer-based polling
Timer-->>Src: Tick
Src->>Common: run(event=timer)
alt First run AND skipFirstRun=true
Common->>Store: Initialize latest timestamp = now
Common-->>Src: Exit (no emit)
else Subsequent runs or skipFirstRun=false
Common->>Store: Read last timestamp
Common->>SF: Query updates since cursor
SF-->>Common: Records
Common->>Store: Update cursor
Common-->>Src: Emit events
end
end
sequenceDiagram
autonumber
participant Src as Source (updated-record variants)
participant Deploy as deploy()
participant SF as Salesforce API
participant Store as State Storage
Deploy->>Src: On activation
alt skipFirstRun=true
Note over Src: Historical backfill skipped
Deploy-->>Src: Complete without emits
else skipFirstRun=false
Src->>SF: List recent items
SF-->>Src: Recent items
loop last 25 items
Src->>Store: Generate metadata
Src-->>Deploy: Emit historical event
end
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (13)
🧰 Additional context used🧠 Learnings (3)📚 Learning: 2024-10-08T15:33:38.240Z
Applied to files:
📚 Learning: 2024-10-10T19:18:27.998Z
Applied to files:
📚 Learning: 2024-07-24T02:05:59.531Z
Applied to files:
🧬 Code graph analysis (2)components/salesforce_rest_api/sources/common/common-updated-record.mjs (2)
components/salesforce_rest_api/sources/common/common.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 (1)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal). Please share your feedback with us on this Discord post. 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 |
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Thank you so much for submitting this! We've added it to our backlog to review, and our team has been notified. |
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.
Thanks for your contribution @choeqq , this looks good to me!
WHY
#18484
Summary by CodeRabbit
New Features
Chores