calcom / cal.com

Scheduling infrastructure for absolutely everyone.
https://cal.com
Other
31.77k stars 7.75k forks source link

Out of Office does not block booking times #14422

Closed Andrew-S-Rosen closed 5 months ago

Andrew-S-Rosen commented 6 months ago

Issue Summary

Using the cal.com web app, I have set several Out of Office time ranges. However, bookers can still book slots during those dates. This seems like unexpected behavior to me, but perhaps there is a toggle somewhere. If there is a toggle somewhere, its location is not immediately clear to me (which could potentially warrant an improvement).

I acknowledge that this very well could be a user (i.e. me!) problem, in which case hopefully I can help identify why I am clueless once I am redirected. πŸ‘

Steps to Reproduce

  1. Go to My Settings
  2. Click Out of Office
  3. Add a time range
  4. Click Create entry
  5. Go and try to book a time during that period

Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?

Actual Results

Users can book during the Out of Office period.

Expected Results

The Out of Office period should block booking (or give the users the option to set this).

Technical details

Evidence

Here are some Out of Office time ranges that I have set.

image

The blocks are still bookable.

dosubot[bot] commented 6 months ago

The issue you're experiencing with the Out of Office feature on cal.com, where bookers are still able to book slots during your designated Out of Office periods, could be attributed to several potential areas:

  1. Backend Handling: The enforcement of Out of Office entries to block slots might not be functioning as intended due to backend logic.
  2. Data Synchronization: There could be an issue with how the system synchronizes or caches Out of Office entries, leading to new entries not being recognized.
  3. Time Zone Handling: Discrepancies in time zone handling between different parts of the system could result in mismatches of expected Out of Office periods.
  4. Profile Redirect Feature: Although the UI manages the redirection of bookings during Out of Office periods, the effectiveness of this feature relies on backend logic that might not be set up correctly.

To further diagnose the issue, it's essential to inspect the backend logic that processes Out of Office entries and their integration with the booking system. Consistent handling of time zones across the application and verifying the correct storage and retrieval of Out of Office entries from the database are crucial troubleshooting steps.

Trying to reproduce the issue on a different browser or device could help rule out any browser-specific issues, considering you're using Microsoft Edge version 123.0.2420.65 (64-bit) on Windows 11. Additionally, checking for any console errors when creating an Out of Office entry or when a booking is made during such a period could provide further insights.

If there are any changes in behavior or additional information, please update the issue to assist in resolving it more effectively.

Sources

#### About Dosu This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a πŸ‘ if this is helpful and πŸ‘Ž if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot.
ciaranha commented 5 months ago

@Andrew-S-Rosen Thanks for reporting. This should be fixed now.