Commit e237749
fix: gracefully handle calendar failures when bypassBusyCalendarTimes is enabled (calcom#23061)
* fix: gracefully handle calendar failures when bypassBusyCalendarTimes is enabled
- When _bypassCalendarBusyTimes parameter is true and third-party calendar fetching fails
- System now falls back to internal bookings only instead of throwing error
- Maintains existing error behavior when bypass is disabled
Co-Authored-By: morgan@cal.com <morgan@cal.com>
* feat: add _silentCalendarFailures parameter to handle calendar failures gracefully
- Add silentlyHandleCalendarFailures parameter to getBusyTimes service
- Add _silentCalendarFailures parameter to getUserAvailability schema
- Add _silentCalendarFailures parameter to tRPC slots endpoint
- Add _silentCalendarFailures parameter to API v2 slots/available endpoint
- Parameter attempts calendar calls first, falls back silently on failure
- Different from bypassCalendarBusyTimes which skips calendar calls entirely
Co-Authored-By: morgan@cal.com <morgan@cal.com>
* refactor: remove bypassBusyCalendarTimes logic from error handling
- Keep only silentlyHandleCalendarFailures logic in getBusyTimes error handling
- Remove redundant bypassBusyCalendarTimes condition from calendar failure handling
- Maintain existing bypassBusyCalendarTimes logic that skips calendar calls entirely
Co-Authored-By: morgan@cal.com <morgan@cal.com>
* feat: add silentlyHandleCalendarFailures prop to Booker atom
- Pass silentlyHandleCalendarFailures prop from BookerPlatformWrapper to useAvailableSlots
- Forward prop as _silentCalendarFailures parameter to API v2 slots/available endpoint
- Complete the parameter flow from Booker atom to underlying service layer
- Enables silent handling of calendar provider failures in Booker component
Co-Authored-By: morgan@cal.com <morgan@cal.com>
* chore: fix type and bump library
* chore: bump library
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: morgan@cal.com <morgan@cal.com>
Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com>
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com>1 parent 994a36d commit e237749
11 files changed
Lines changed: 99 additions & 299 deletions
File tree
- apps/api/v2
- docs/api-reference/v2
- packages
- lib
- platform
- atoms/booker
- examples/base/src/pages
- types/slots/slots-2024-04-15/inputs
- trpc/server/routers/viewer/slots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4264 | 4264 | | |
4265 | 4265 | | |
4266 | 4266 | | |
4267 | | - | |
4268 | | - | |
4269 | | - | |
| 4267 | + | |
4270 | 4268 | | |
4271 | 4269 | | |
4272 | 4270 | | |
| |||
4328 | 4326 | | |
4329 | 4327 | | |
4330 | 4328 | | |
4331 | | - | |
4332 | | - | |
4333 | | - | |
| 4329 | + | |
4334 | 4330 | | |
4335 | 4331 | | |
4336 | 4332 | | |
| |||
4402 | 4398 | | |
4403 | 4399 | | |
4404 | 4400 | | |
4405 | | - | |
4406 | | - | |
4407 | | - | |
| 4401 | + | |
4408 | 4402 | | |
4409 | 4403 | | |
4410 | 4404 | | |
| |||
4474 | 4468 | | |
4475 | 4469 | | |
4476 | 4470 | | |
4477 | | - | |
4478 | | - | |
4479 | | - | |
| 4471 | + | |
4480 | 4472 | | |
4481 | 4473 | | |
4482 | 4474 | | |
| |||
22121 | 22113 | | |
22122 | 22114 | | |
22123 | 22115 | | |
22124 | | - | |
22125 | | - | |
22126 | | - | |
22127 | | - | |
22128 | | - | |
22129 | | - | |
22130 | | - | |
| 22116 | + | |
22131 | 22117 | | |
22132 | 22118 | | |
22133 | 22119 | | |
| |||
22164 | 22150 | | |
22165 | 22151 | | |
22166 | 22152 | | |
22167 | | - | |
22168 | | - | |
22169 | | - | |
22170 | | - | |
22171 | | - | |
22172 | | - | |
22173 | | - | |
22174 | | - | |
| 22153 | + | |
22175 | 22154 | | |
22176 | 22155 | | |
22177 | 22156 | | |
| |||
22193 | 22172 | | |
22194 | 22173 | | |
22195 | 22174 | | |
22196 | | - | |
22197 | | - | |
22198 | | - | |
22199 | | - | |
| 22175 | + | |
22200 | 22176 | | |
22201 | 22177 | | |
22202 | 22178 | | |
| |||
22221 | 22197 | | |
22222 | 22198 | | |
22223 | 22199 | | |
22224 | | - | |
22225 | | - | |
22226 | | - | |
22227 | | - | |
| 22200 | + | |
22228 | 22201 | | |
22229 | 22202 | | |
22230 | 22203 | | |
| |||
22246 | 22219 | | |
22247 | 22220 | | |
22248 | 22221 | | |
22249 | | - | |
22250 | | - | |
22251 | | - | |
22252 | | - | |
| 22222 | + | |
22253 | 22223 | | |
22254 | 22224 | | |
22255 | 22225 | | |
| |||
22274 | 22244 | | |
22275 | 22245 | | |
22276 | 22246 | | |
22277 | | - | |
22278 | | - | |
22279 | | - | |
22280 | | - | |
| 22247 | + | |
22281 | 22248 | | |
22282 | 22249 | | |
22283 | 22250 | | |
| |||
26267 | 26234 | | |
26268 | 26235 | | |
26269 | 26236 | | |
26270 | | - | |
26271 | | - | |
26272 | | - | |
26273 | | - | |
26274 | | - | |
26275 | | - | |
26276 | | - | |
26277 | | - | |
26278 | | - | |
26279 | | - | |
26280 | | - | |
26281 | | - | |
26282 | | - | |
26283 | | - | |
26284 | | - | |
26285 | | - | |
26286 | | - | |
26287 | | - | |
26288 | | - | |
26289 | | - | |
26290 | | - | |
26291 | | - | |
26292 | | - | |
26293 | | - | |
26294 | | - | |
26295 | | - | |
26296 | | - | |
26297 | | - | |
26298 | | - | |
26299 | | - | |
26300 | | - | |
26301 | | - | |
26302 | | - | |
26303 | | - | |
26304 | | - | |
26305 | | - | |
26306 | | - | |
26307 | | - | |
26308 | | - | |
26309 | | - | |
26310 | | - | |
26311 | | - | |
26312 | | - | |
26313 | | - | |
26314 | | - | |
26315 | | - | |
26316 | | - | |
26317 | | - | |
26318 | | - | |
26319 | | - | |
26320 | | - | |
26321 | | - | |
26322 | | - | |
26323 | | - | |
26324 | | - | |
26325 | | - | |
26326 | | - | |
26327 | | - | |
26328 | | - | |
26329 | | - | |
26330 | | - | |
26331 | | - | |
26332 | | - | |
26333 | | - | |
26334 | | - | |
26335 | | - | |
26336 | | - | |
26337 | | - | |
26338 | | - | |
26339 | | - | |
26340 | | - | |
26341 | | - | |
26342 | | - | |
26343 | | - | |
26344 | | - | |
26345 | | - | |
26346 | | - | |
26347 | | - | |
26348 | | - | |
26349 | | - | |
26350 | | - | |
26351 | | - | |
26352 | | - | |
26353 | | - | |
26354 | | - | |
26355 | | - | |
26356 | | - | |
26357 | | - | |
26358 | | - | |
26359 | | - | |
26360 | | - | |
26361 | | - | |
26362 | | - | |
26363 | | - | |
26364 | | - | |
26365 | | - | |
26366 | | - | |
26367 | | - | |
26368 | | - | |
26369 | | - | |
26370 | | - | |
26371 | | - | |
26372 | | - | |
26373 | | - | |
26374 | | - | |
26375 | | - | |
26376 | | - | |
26377 | | - | |
26378 | | - | |
26379 | | - | |
26380 | | - | |
26381 | | - | |
26382 | | - | |
26383 | | - | |
26384 | | - | |
26385 | | - | |
26386 | | - | |
26387 | | - | |
26388 | | - | |
26389 | | - | |
26390 | | - | |
26391 | | - | |
26392 | | - | |
26393 | | - | |
26394 | | - | |
26395 | | - | |
26396 | | - | |
26397 | | - | |
26398 | | - | |
26399 | | - | |
26400 | | - | |
26401 | | - | |
26402 | | - | |
26403 | | - | |
26404 | | - | |
26405 | | - | |
26406 | | - | |
26407 | | - | |
26408 | | - | |
26409 | | - | |
26410 | | - | |
26411 | | - | |
26412 | | - | |
26413 | | - | |
26414 | | - | |
26415 | | - | |
26416 | | - | |
26417 | | - | |
26418 | | - | |
26419 | | - | |
26420 | | - | |
26421 | | - | |
26422 | | - | |
26423 | | - | |
26424 | | - | |
26425 | | - | |
26426 | | - | |
26427 | | - | |
26428 | | - | |
26429 | | - | |
26430 | | - | |
26431 | | - | |
26432 | | - | |
26433 | | - | |
26434 | | - | |
26435 | | - | |
26436 | | - | |
26437 | | - | |
26438 | | - | |
26439 | | - | |
26440 | | - | |
26441 | | - | |
26442 | | - | |
26443 | | - | |
26444 | | - | |
26445 | | - | |
26446 | | - | |
26447 | | - | |
26448 | | - | |
26449 | | - | |
26450 | | - | |
26451 | | - | |
26452 | | - | |
26453 | | - | |
26454 | | - | |
26455 | | - | |
26456 | | - | |
26457 | | - | |
26458 | | - | |
26459 | | - | |
26460 | | - | |
26461 | | - | |
26462 | | - | |
26463 | | - | |
26464 | | - | |
26465 | | - | |
26466 | | - | |
26467 | | - | |
26468 | | - | |
26469 | 26237 | | |
26470 | 26238 | | |
26471 | 26239 | | |
| |||
0 commit comments