-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
fix: rr-host booked outside of availability #12704
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
5 Ignored Deployments
|
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link to collect XP and win prizes! |
📦 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✅ 7 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 12/08/2023 01:30:10am UTC) Run DetailsRunning Workflow PR Update on Github Actions Commit: 2cd281f Started: 12/08/2023 01:29:31am UTC
|
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Organization should be able to create an organization and complete onboarding
Retry 1 • Initial Attempt |
33.61% (81)81 / 241 runsfailed over last 7 days |
50.21% (121)121 / 241 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.
LGTM, waiting on Alex to review before merging in. His context knowledge is essential 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.
Good to go 🔥
* correctly query overlapping bookings * remove console.log * fix getting busy bookings for getAvailableSlots --------- Co-authored-by: CarinaWolli <wollencarina@gmail.com>
* correctly query overlapping bookings * remove console.log * fix getting busy bookings for getAvailableSlots --------- Co-authored-by: CarinaWolli <wollencarina@gmail.com>
What does this PR do?
Fixes the follow issue:
I have two rr-hosts (teampro, teamfree). Got these two personal bookings for teampro in the db (see screenshot, first two bookings). If teamfree doesn't have any availability, the 10AM slot on dez 12 (Melbourne) is not showing (that's correct). If teamfree is available the slot shows (as it should) BUT if it is teampro's round robin turn, it books teampro
The issue was the getBusyTimes didn't return the bookings because we were filtering the bookings like that:
{
"startTime":{"gte":"2023-12-11T23:00:00.000Z"},
"endTime":{"lte":"2023-12-11T23:15:00.000Z"},
}
Type of change