Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: calcom/cal.com
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.5.11
Choose a base ref
...
head repository: calcom/cal.com
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.5.12
Choose a head ref
  • 7 commits
  • 36 files changed
  • 8 contributors

Commits on Aug 5, 2025

  1. feat: add cron job to cleanup old queued form responses (#22035)

    * feat: add cron job to cleanup old queued form responses
    
    - Add cleanup cron job for App_RoutingForms_QueuedFormResponse table
    - Delete records with null actualResponseId older than 1 hour
    - Schedule to run twice daily (every 12 hours) via vercel.json
    - Follow existing cron job patterns for authentication and structure
    
    Co-Authored-By: hariom@cal.com <hariom@cal.com>
    
    * fix: correct date comparison logic to delete older records
    
    - Change from lte to gte in createdAt comparison
    - Now properly deletes records older than 1 hour
    
    Co-Authored-By: hariom@cal.com <hariom@cal.com>
    
    * refactor: move cleanup logic to routing forms lib and import in API endpoint
    
    - Create cleanupExpiredQueuedFormResponses function in routing forms lib
    - Update API endpoint to import and use the new cleanup function
    - Follow established patterns for code organization in Cal.com
    - Maintain same functionality and authentication logic
    
    Co-Authored-By: hariom@cal.com <hariom@cal.com>
    
    * refactor: move entire cron logic to routing-forms cron folder
    
    - Create routing-forms/cron/queuedFormResponseCleanup.ts with complete handler
    - Move authentication, HTTP handling, and database operations to routing-forms
    - Update API endpoint to simply import and call the cron handler
    - Remove old lib cleanup function
    - Follow user's preferred organizational pattern
    
    Co-Authored-By: hariom@cal.com <hariom@cal.com>
    
    * fix: correct date comparison logic to delete records older than 1 hour
    
    - Change from gte (greater than or equal) to lt (less than) cutoffTime
    - Now properly deletes records where createdAt < cutoffTime (older than 1 hour)
    - Previous logic was deleting newer records instead of older ones
    
    Co-Authored-By: hariom@cal.com <hariom@cal.com>
    
    * fixes
    
    * refactor: reorganize queuedFormResponse into domain-driven structure
    
    - Move repository and service files to routingForm/queuedFormResponse subdirectory
    - Clean up unused methods and tests for better maintainability
    - Fix import paths and type definitions
    - Ensure all tests pass and maintain backward compatibility
    
    * fix: align QueuedFormResponse interface types with Prisma schema
    
    - Update actualResponseId type from string to number to match Prisma Int type
    - Make updatedAt nullable (Date | null) to match Prisma DateTime? type
    - Fix import path for QueuedFormResponseRepository interface
    
    Co-Authored-By: hariom@cal.com <hariombalhara@gmail.com>
    
    * refactor: reorganize queuedFormResponse into domain-driven structure
    
    - Move repository and service files to routingForm/queuedFormResponse subdirectory
    - Clean up unused methods and tests for better maintainability
    - Fix import paths and type definitions
    - Ensure all tests pass and maintain backward compatibility
    
    * test: add comprehensive where clause validation tests and missing test coverage
    
    * chore: update cron schedule to weekly for 7-day retention period
    
    * revert: restore 12-hour cron schedule for better batch management
    
    * Add integration tests
    
    * refactor: apply test data builder pattern to queuedFormResponse integration tests
    
    ---------
    
    Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
    Co-authored-by: hariom@cal.com <hariom@cal.com>
    Co-authored-by: Hariom <hariombalhara@gmail.com>
    3 people authored Aug 5, 2025
    Configuration menu
    Copy the full SHA
    a71d949 View commit details
    Browse the repository at this point in the history
  2. chore: Implement short-lived redis cache for slots (#22787)

    * chore: Implement short-lived redis cache for slots
    
    * chore: adapt apiv2 redis service to match with upstash redis
    
    * chore: safer redis service and ms ttl
    
    * fixup! chore: safer redis service and ms ttl
    
    * Wrap with timeout, currently doesn't work yet
    
    * Updated @upstash/redis for better signal support
    
    * Fix type errors, remove ts value
    
    * Inject NoopRedisService for NODE_ENV test
    
    * chore: bump platform libs
    
    * chore: bump platform libs
    
    * Upstash Redis upgrade no longer resulted in expected hard crash on init, so updated factory and our Upstash Redis Adapter to mimick old behaviour
    
    * Add SLOTS_CACHE_TTL variable for configurable ttl on slots cache
    
    * Update parseInt to use right types
    
    * chore: bump platform libs
    
    * chore: bump platform libs
    
    * chore: bump platform libs
    
    * update e2e api v2 action
    
    * set SLOTS_CACHE_TTL env var api v2 e2e
    
    ---------
    
    Co-authored-by: cal.com <morgan@cal.com>
    emrysal and ThyMinimalDev authored Aug 5, 2025
    Configuration menu
    Copy the full SHA
    b71d8ba View commit details
    Browse the repository at this point in the history
  3. perf: upgrade unkey to v2 (#22902)

    Unkey's v2 api runs on AWS (including us-east-2, where cal runs) and has
    significantly lower latency than v1.
    chronark authored Aug 5, 2025
    Configuration menu
    Copy the full SHA
    781d0d9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7987c9f View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2025

  1. Configuration menu
    Copy the full SHA
    a1bd8b6 View commit details
    Browse the repository at this point in the history
  2. feat: Sync timezone for users having delegation credentials for googl…

    …e/outlook (#22904)
    
    * feat: sync timezone with google/outlook for delegated credentials users
    
    * chore: dynamic sync timezone in get availble slots
    
    * redis cache for get delegated timezone
    
    * Update packages/lib/getUserAvailability.ts
    
    ---------
    
    Co-authored-by: Alex van Andel <me@alexvanandel.com>
    ThyMinimalDev and emrysal authored Aug 6, 2025
    Configuration menu
    Copy the full SHA
    e4baf15 View commit details
    Browse the repository at this point in the history
  3. chore: release v5.5.12

    emrysal committed Aug 6, 2025
    Configuration menu
    Copy the full SHA
    5d0dc3f View commit details
    Browse the repository at this point in the history
Loading