-
Notifications
You must be signed in to change notification settings - Fork 10.4k
chore: Log availability snapshot when booking is created #22782
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
Conversation
WalkthroughThe changes update the booking handling logic to capture and log detailed user availability data at the time of booking creation. The Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🧰 Additional context used📓 Path-based instructions (2)**/*.ts📄 CodeRabbit Inference Engine (.cursor/rules/review.mdc)
Files:
**/*.{ts,tsx}📄 CodeRabbit Inference Engine (.cursor/rules/review.mdc)
Files:
🧠 Learnings (4)📓 Common learnings
packages/features/bookings/lib/handleNewBooking/types.ts (2)Learnt from: eunjae-lee Learnt from: vijayraghav-io packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.ts (2)Learnt from: eunjae-lee Learnt from: eunjae-lee packages/features/bookings/lib/handleNewBooking.ts (3)Learnt from: eunjae-lee Learnt from: eunjae-lee Learnt from: CarinaWolli 🧬 Code Graph Analysis (1)packages/features/bookings/lib/handleNewBooking/types.ts (1)
🔇 Additional comments (8)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (07/28/25)1 reviewer was added to this PR based on Keith Williams's automation. |
* Add userAvailability type * Add user availability to return value of getUsersAvailability * Log availabilitySnapshot when booking is created * Type fix
* Add userAvailability type * Add user availability to return value of getUsersAvailability * Log availabilitySnapshot when booking is created * Type fix
What does this PR do?
Adds a log statement to record the current availability of a booking organizer at the time of booking
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?