Skip to content

Conversation

@abhijeetsingh-22
Copy link
Contributor

What does this PR do?

This PR fixes an issue where availability ranges spilling over from the previous day were incorrectly persisting even when the next day had a specific "Date Override"

Visual Demo

Video Demo:

When a user has a schedule spanning midnight (e.g., Tue 9 PM - Wed 3 AM) and sets a specific Date Override for the next day (Wednesday), the system was incorrectly showing them as available from midnight to 3 AM. This happened because the Tuesday's availability "spilled over" into Wednesday

Availability settings:
image

Before

  • There are slots available on 28th and 31st but this is incorrect as these days are marked as unavailable via date overrides
before.mp4

After

  • The days with override ( 28th, 29th and 31st ) are correctly marked as unavailable
after.mp4

After

Image Demo :

image

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. N/A
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  • Configure availability Hours: Set Availability to span across midnight (e.g. 9:00 PM to 3:00 AM).
  • Apply this to all weekdays (Mon-Fri).
  • Add Date Override: Pick a specific date (e.g., coming Wednesday) and mark it as Unavailable.
  • Verify Booking Page:
    • Go to the public booking page.
    • Check the overridden date.
    • Expected: The day should be completely unavailable.
    • Before Fix: You would see slots from 00:00 to 03:00 (spillover from Tuesday night).

Checklist

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Jan 25, 2026
@github-actions github-actions bot added the 🐛 bug Something isn't working label Jan 25, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working community Created by Linear-GitHub Sync ready-for-e2e size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Date override is not functioning as expected

2 participants