Repository navigation
feat(shared,api): identityProvider and automationId scope on the shared dispatcher - #6599
Conversation
…ed dispatcher Two additions the provider agents needed the moment the shared dispatcher landed, both small enough to be one commit rather than two forks. identityProvider on BaseMatchableEvent: the dispatcher resolves `me` from user_identities where provider = event.provider. Google Calendar and Gmail are two trigger kinds behind one Google identity, so both set identityProvider: "google". Defaults to provider; every other provider leaves it unset. automationId on dispatchMatchingTriggers: provider webhooks fan out across the org because the provider does not know which automation cares. A raw webhook is addressed to one automation by its URL, so fanning out to every webhook trigger in the org would be wrong. Optional filter; unset means org-wide, which is what every other route wants.
|
Warning Review limit reached
Next review available in: 15 minutes Limit details: You’ve used all 10 included reviews currently available under your plan. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
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 |
🚀 Preview Deployment🔗 Preview Links
Preview updates automatically with new commits |
Two small additions the provider agents needed once #6594 landed.
identityProviderlets Google's two trigger kinds resolvemethrough onegoogleidentity.automationIdlets the raw-webhook route restrict candidates to the automation its URL names instead of fanning out org-wide. Optional, default-off, no behaviour change for existing callers. Typecheck + lint clean.Summary by cubic
Adds optional
identityProvideronBaseMatchableEventand optionalautomationIdscoping indispatchMatchingTriggers. Old behavior resolved "me" againstevent.providerand raw webhooks fanned out org‑wide; new behavior resolves "me" againstidentityProviderwhen set and allows raw webhooks to restrict dispatch to one automation. Defaults keep existing behavior.packages/shared:identityProviderdefaults toprovider; Google Calendar and Gmail should setidentityProvider: "google"to unify "me" resolution.apps/api: dispatcher usesidentityProvider ?? providerfor identity lookups and optionally filters byautomationId; omit it to keep org‑wide fan‑out. No migrations required.Written for commit 9dec333. Summary will update on new commits.