Skip to content

Conversation

@KartikLabhshetwar
Copy link
Contributor

@KartikLabhshetwar KartikLabhshetwar commented Jan 10, 2026

What does this PR do?

Visual Demo (For contributors especially)

Video Demo (if applicable):

Screen.Recording.2026-01-10.at.4.06.45.PM.mov

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. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

Summary by cubic

Merges overlapping and adjacent working hours into single continuous ranges in the schedule builder. Fixes booking failures caused by overlapping slots (CAL-6173, #22808).

  • Bug Fixes
    • Added mergeDateRanges and applied it to both availability and OOO excluded ranges in buildDateRanges.
    • Merges intervals that overlap or touch after sorting by start time.
    • Added tests for overlapping and adjacent working hours.

Written for commit 28cd118. Summary will update on new commits.

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Jan 10, 2026
@github-actions github-actions bot added bookings area: bookings, availability, timezones, double booking Medium priority Created by Linear-GitHub Sync 🐛 bug Something isn't working labels Jan 10, 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

@KartikLabhshetwar KartikLabhshetwar marked this pull request as draft January 10, 2026 10:46
@KartikLabhshetwar KartikLabhshetwar marked this pull request as ready for review January 10, 2026 11:01
@KartikLabhshetwar
Copy link
Contributor Author

hi @emrysal can i get a review for this?

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

bookings area: bookings, availability, timezones, double booking 🐛 bug Something isn't working community Created by Linear-GitHub Sync Medium priority Created by Linear-GitHub Sync size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

An overlapping working hour results in "could not book the meeting"

1 participant