Skip to content

refactor: v2 GET bookings default date range #21080

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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

supalarry
Copy link
Contributor

@supalarry supalarry commented May 2, 2025

Linear CAL-5690


Summary by mrge

Refactored the v2 GET bookings endpoint to set a default date range of one month before to one month after today if no date filters are provided, and improved handling of "past" and "upcoming" status filters.

  • Refactors
    • Added logic to automatically apply default date ranges and convert status filters to date filters.
    • Updated tests to use new date utilities and a consistent UTC time zone.

@supalarry supalarry requested review from a team as code owners May 2, 2025 09:57
Copy link

linear bot commented May 2, 2025

Copy link

vercel bot commented May 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview May 2, 2025 2:32pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview May 2, 2025 2:32pm

@graphite-app graphite-app bot requested a review from a team May 2, 2025 09:57
@keithwillcode keithwillcode added core area: core, team members only platform Anything related to our platform plan labels May 2, 2025
@dosubot dosubot bot added bookings area: bookings, availability, timezones, double booking 💻 refactor labels May 2, 2025
Copy link

graphite-app bot commented May 2, 2025

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (05/02/25)

1 reviewer was added to this PR based on Keith Williams's automation.

Copy link

@mrge-io mrge-io bot left a comment

Choose a reason for hiding this comment

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

mrge found 9 issues across 11 files. View them in mrge.io

Copy link
Contributor

github-actions bot commented May 2, 2025

E2E results are ready!

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 core area: core, team members only platform Anything related to our platform plan ready-for-e2e 💻 refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants