-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
feat: round-robin priority ranking #13566
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Ignored Deployments
|
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link. |
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Current Playwright Test Results Summary✅ 112 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 02/08/2024 04:25:17pm UTC) Run DetailsRunning Workflow PR Update on Github Actions Commit: dadc2bf Started: 02/08/2024 04:19:13pm UTC
|
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Booking With Long Text Question and Each Other Question Booking With Long Text Question and Number Question Long Text and Number required
Retry 1 • Initial Attempt |
0% (0)0 / 323 runsfailed over last 7 days |
4.64% (15)15 / 323 runsflaked over last 7 days |
📄 apps/web/playwright/booking/checkboxGroupQuestion.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Booking With Checkbox Group Question and Each Other Question Booking With Checkbox Group Question and Address Question Booking With Checkbox Group Question and Short text question Checkbox Group required and Short Text required
Retry 1 • Initial Attempt |
0% (0)0 / 325 runsfailed over last 7 days |
5.23% (17)17 / 325 runsflaked over last 7 days |
📄 apps/web/playwright/booking/addressQuestione2e/addressQuestion.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Booking With Address Question and Each Other Question Booking With Address Question and Checkbox Question Address required and checkbox required
Retry 2 • Retry 1 • Initial Attempt |
1.73% (6)6 / 346 runsfailed over last 7 days |
4.62% (16)16 / 346 runsflaked over last 7 days |
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.
No that's currently not possible, all hosts will have medium priority. I can revisit that in a follow-up |
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.
codewise looks good, will test through ui tomorrow morning
@@ -41,6 +41,7 @@ model Host { | |||
eventType EventType @relation(fields: [eventTypeId], references: [id], onDelete: Cascade) | |||
eventTypeId Int | |||
isFixed Boolean @default(false) | |||
priority Int? |
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.
can we just add a default value of 2 here?
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.
@CarinaWolli LGTM. Awesome work
I'll wait for Alex review before merging
What does this PR do?
Adds priority ranking to round-robin: Every round-robin host has a priority, by default 'medium'. Until now round-robin booked the least recently booked available users. Now it will book the available user with the highest priority, if several users have the same priority it will choose the least recently booked user.
Also, adds some design changes to the assignment tab of event-type settings as it had several design issues. @ciaranha not sure if we have a final figma design, but I used this Figma Design. I am open for feedback, here's how it looks:
Clickable priority label on round-robin host (sorted hosts):
Dialog to change priority:
Activate fixed hosts on round-robin event
Collective Event
Enable 'Assign all team members'
Fixes #11545
Type of change