Collective events are now considered from getBusyTimes booking query#6911
Collective events are now considered from getBusyTimes booking query#6911emrysal merged 4 commits intocalcom:mainfrom AaronPresley:bug/6374-collective-busy
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
|
@AaronPresley is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
|
@emrysal @PeerRich this one's ready for review 👍 It took a while to crawl through the schema to figure out the best way to gather this data, but I eventually figured out that the Also, I noticed there's some performance testing around this function (named @emrysal please let me know if you envisioned this lookup happening a different way. Thanks! |
There was a problem hiding this comment.
Cannot re-create the problem (assume I was just looking wrong) - Approved @AaronPresley 🙇
What does this PR do?
Fixes #6374
This PR updates the
getBusyTimesquery to consider a user busy within a given time period if:eventType.idin which this user is a hostEnvironment: Staging(main branch) / Production
Type of change
How should this be tested?
yarn db-nukefrom withinpackages/prismayarn dxteampro@example.com/teamproTeam ProuserCollective Seeded Team Event> Assignment > include the Team Pro user > SaveCollective Seeded Team EventIn Production you will see that the Team Pro user is considered available for the time slot booked in Step 6
In this PR you will see that the Team Pro user is considered unavailable for the time slot booked in Step 3
Checklist