feat(salesforce): exclude Salesforce-assigned bookings from Round Robin calculations#26368
feat(salesforce): exclude Salesforce-assigned bookings from Round Robin calculations#26368JagjeevanAK wants to merge 4 commits intocalcom:mainfrom
Conversation
…in calculations Add option in Salesforce app settings to exclude bookings assigned via Salesforce owner lookup from Round Robin fairness calculations. When enabled, only bookings assigned through Round Robin logic will count towards host booking counts. Changes: - Add excludeSalesforceBookingsFromRR setting to Salesforce app schema - Add UI toggle in EventType > Apps > Salesforce settings - Modify BookingRepository to filter out SALESFORCE_ASSIGNMENT bookings - Update getLuckyUser to accept and pass the exclusion flag - Update all callers to extract and pass the flag from eventType metadata - Add i18n translation strings for the new toggle Closes calcom#18216
|
@JagjeevanAK is attempting to deploy a commit to the cal-staging Team on Vercel. A member of the Team first needs to authorize it. |
|
Hey @dhairyashiil this PR is ready from my side |
dhairyashiil
left a comment
There was a problem hiding this comment.
Could you please attach video showing the before and after of your changes? In the meantime, I'll mark this as a draft
|
Hey It eas already partially approved if you can see PR referenced to it will add video to it |
There was a problem hiding this comment.
1 issue found across 11 files
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="packages/app-store/salesforce/components/EventTypeAppCardInterface.tsx">
<violation number="1" location="packages/app-store/salesforce/components/EventTypeAppCardInterface.tsx:494">
P2: Use `htmlFor` instead of `for` to maintain proper label-input association in React.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
packages/app-store/salesforce/components/EventTypeAppCardInterface.tsx
Outdated
Show resolved
Hide resolved
|
Hey @dhairyashiil I dont have salseforce account for this can you just check the liked PR in description ? |
|
This PR has been marked as stale due to inactivity. If you're still working on it or need any help, please let us know or update the PR to keep it active. |
Devin AI is resolving merge conflictsThis PR has merge conflicts with the Devin will:
If you prefer to resolve conflicts manually, you can close the Devin session and handle it yourself. |
|
This PR has been marked as stale due to inactivity. If you're still working on it or need any help, please let us know or update the PR to keep it active. |
…face.tsx Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
|
hey @keithwillcode any change to get |
Summary
Add an option in Salesforce app settings to exclude bookings assigned via Salesforce owner lookup from Round Robin fairness calculations. When enabled, only bookings assigned through Round Robin logic will count towards host booking counts.
Fixes #18216
Changes
excludeSalesforceBookingsFromRRsetting to Salesforce app schemaBookingRepository.getAllBookingsForRoundRobinto filter outSALESFORCE_ASSIGNMENTbookingsgetLuckyUserservice to accept and pass the exclusion flagRelated PRs
This is a reopening of #21861 which was closed due to inactivity. The approach was changed based on reviewer feedback from @CarinaWolli - the setting is now stored in Salesforce app metadata (EventType > Apps tab) rather than as a separate EventType database field.
How it works
AssignmentReasonEnum.SALESFORCE_ASSIGNMENTas their assignment reasonTesting