Skip to content
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

Merged
merged 21 commits into from
Feb 9, 2024
Merged

feat: round-robin priority ranking #13566

merged 21 commits into from
Feb 9, 2024

Conversation

CarinaWolli
Copy link
Member

@CarinaWolli CarinaWolli commented Feb 6, 2024

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):

Screenshot 2024-02-07 at 10 38 44 AM

Dialog to change priority:

Screenshot 2024-02-07 at 10 35 24 AM

Activate fixed hosts on round-robin event

Screenshot 2024-02-07 at 10 32 49 AM

Collective Event

Screenshot 2024-02-07 at 10 33 13 AM

Enable 'Assign all team members'

Screenshot 2024-02-07 at 10 34 39 AM

Fixes #11545

Type of change

  • New feature (non-breaking change which adds functionality)

Copy link

vercel bot commented Feb 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api 🔄 Building (Inspect) Visit Preview Feb 8, 2024 3:02pm
6 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ai ⬜️ Ignored (Inspect) Visit Preview Feb 8, 2024 3:02pm
cal ⬜️ Ignored (Inspect) Visit Preview Feb 8, 2024 3:02pm
cal-demo ⬜️ Ignored (Inspect) Visit Preview Feb 8, 2024 3:02pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Feb 8, 2024 3:02pm
qa ⬜️ Ignored (Inspect) Visit Preview Feb 8, 2024 3:02pm
ui ⬜️ Ignored (Inspect) Visit Preview Feb 8, 2024 3:02pm

@github-actions github-actions bot added the ❗️ migrations contains migration files label Feb 6, 2024
Copy link
Contributor

github-actions bot commented Feb 6, 2024

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link.

Copy link
Contributor

github-actions bot commented Feb 6, 2024

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Copy link

deploysentinel bot commented Feb 6, 2024

Current Playwright Test Results Summary

✅ 112 Passing - ⚠️ 3 Flaky

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 Details

Running Workflow PR Update on Github Actions

Commit: dadc2bf

Started: 02/08/2024 04:19:13pm UTC

⚠️ Flakes

📄   apps/web/playwright/booking/longTextQuestion.e2e.ts • 1 Flake

Test Case Results

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 1Initial Attempt
0% (0) 0 / 323 runs
failed over last 7 days
4.64% (15) 15 / 323 runs
flaked 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 1Initial Attempt
0% (0) 0 / 325 runs
failed over last 7 days
5.23% (17) 17 / 325 runs
flaked 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 2Retry 1Initial Attempt
1.73% (6) 6 / 346 runs
failed over last 7 days
4.62% (16) 16 / 346 runs
flaked over last 7 days

View Detailed Build Results


@github-actions github-actions bot added Medium priority Created by Linear-GitHub Sync teams area: teams, round robin, collective, managed event-types labels Feb 7, 2024
Copy link
Contributor

@Udit-takkar Udit-takkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2024-02-08 at 10 39 19 PM

Can we set priority when this switch is turned on?

@CarinaWolli
Copy link
Member Author

Can we set priority when this switch is turned on?

No that's currently not possible, all hosts will have medium priority. I can revisit that in a follow-up

Copy link
Contributor

@emrysal emrysal left a 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?
Copy link
Contributor

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?

Copy link
Contributor

@Udit-takkar Udit-takkar left a 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

@PeerRich PeerRich merged commit 296a367 into main Feb 9, 2024
38 of 39 checks passed
@PeerRich PeerRich deleted the feat/rr-priorty-ranking branch February 9, 2024 12:12
@alishaz-polymath alishaz-polymath added the docs area: docs, documentation, cal.com/docs label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consumer core area: core, team members only docs area: docs, documentation, cal.com/docs ✨ feature New feature or request Medium priority Created by Linear-GitHub Sync ❗️ migrations contains migration files teams area: teams, round robin, collective, managed event-types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-2604] Priority Ranking for Members in Round Robin Events
6 participants