Skip to content

Conversation

@Udit-takkar
Copy link
Contributor

@Udit-takkar Udit-takkar commented Nov 10, 2023

Fixes: #12297
Fixes #11234

  • Displaying error message and X-Vercel-Id( Unique Request Id ) to user on book event form
  • Improve error logging
  • Add Error codes

Few things to discuss

  1. How to handle calendar integration failures ?
    Currently if for example google integration is broken and someone is trying to book that person then we log the error but don't inform the user that the google calendar is broken and the meeting goes through.

Should I throw error when integration is broken ?

Screenshot 2023-11-12 at 12 52 36 AM
  1. How to handle conferencing app failures?
    We just default to Cal Video as location if we are unable to generated conferencing url and log the error and not inform the user(organizer).

@vercel
Copy link

vercel bot commented Nov 10, 2023

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

Name Status Preview Comments Updated (UTC)
ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2023 7:24pm
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2023 7:24pm
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2023 7:24pm
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Nov 15, 2023 7:24pm
cal-demo ⬜️ Ignored (Inspect) Visit Preview Nov 15, 2023 7:24pm
qa ⬜️ Ignored (Inspect) Visit Preview Nov 15, 2023 7:24pm
ui ⬜️ Ignored (Inspect) Visit Preview Nov 15, 2023 7:24pm

@github-actions
Copy link
Contributor

github-actions bot commented Nov 10, 2023

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link to collect XP and win prizes!

@github-actions
Copy link
Contributor

github-actions bot commented Nov 10, 2023

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@deploysentinel
Copy link

deploysentinel bot commented Nov 10, 2023

Current Playwright Test Results Summary

✅ 15 Passing - ⚠️ 2 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 11/15/2023 07:50:09pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 4fe5d0b

Started: 11/15/2023 07:48:59pm UTC

⚠️ Flakes

📄   packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should open embed iframe on click - Configured with light theme
Retry 1Initial Attempt
1.22% (4) 4 / 329 runs
failed over last 7 days
56.23% (185) 185 / 329 runs
flaked over last 7 days
Popup Tests should be able to reschedule
Retry 2Retry 1Initial Attempt
17.38% (57) 57 / 328 runs
failed over last 7 days
77.74% (255) 255 / 328 runs
flaked over last 7 days

View Detailed Build Results


Comment on lines 352 to 365
if (!updatedResult) {
logger.error(
"updateEvent failed",
safeStringify({
success,
bookingRefUid,
credential: getPiiFreeCredential(credential),
originalEvent: getPiiFreeCalendarEvent(calEvent),
calError,
})
);
throw new Error("update_calendar_event_error");
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This would throw error if it is unable to update calendar event and you would get the error message on the booking page

const fullName = getFullName(bookerName);

// Why are we only using "en" locale
const tGuests = await getTranslation("en", "common");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why are we only using "en" locale?

Copy link
Contributor

@zomars zomars left a comment

Choose a reason for hiding this comment

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

Huge improvement @Udit-takkar Nice work 🙏🏽

@zomars zomars merged commit 371a0f7 into main Nov 15, 2023
@zomars zomars deleted the feat/booking-error-logging branch November 15, 2023 19:52
@zomars
Copy link
Contributor

zomars commented Nov 15, 2023

Merge activity

jakazzy pushed a commit to jakazzy/cal.com that referenced this pull request Dec 5, 2023
Fixes: calcom#12297
Fixes calcom#11234

- Displaying error message and X-Vercel-Id( Unique Request Id ) to user on book event form
- Improve error logging 
- Add Error codes

Few things to discuss

1) How to handle calendar integration failures ?
   Currently if for example google integration is broken and someone is trying to book that person then we log the error but don't inform the user that the google calendar is broken and the meeting goes through.
   
 Should I throw error when integration is broken ?
   
<img width="758" alt="Screenshot 2023-11-12 at 12 52 36 AM" src="https://github.com/calcom/cal.com/assets/53316345/c4d921c4-9c8a-4b9b-82a2-bbe0fdbcb3d4">

   
2)  How to handle conferencing app failures? 
 We just default to Cal Video  as location if we are unable to generated conferencing url and log the error and not inform the user(organizer).
zomars pushed a commit that referenced this pull request Jan 29, 2024
Fixes: #12297
Fixes #11234

- Displaying error message and X-Vercel-Id( Unique Request Id ) to user on book event form
- Improve error logging 
- Add Error codes

Few things to discuss

1) How to handle calendar integration failures ?
   Currently if for example google integration is broken and someone is trying to book that person then we log the error but don't inform the user that the google calendar is broken and the meeting goes through.
   
 Should I throw error when integration is broken ?
   
<img width="758" alt="Screenshot 2023-11-12 at 12 52 36 AM" src="https://github.com/calcom/cal.com/assets/53316345/c4d921c4-9c8a-4b9b-82a2-bbe0fdbcb3d4">

   
2)  How to handle conferencing app failures? 
 We just default to Cal Video  as location if we are unable to generated conferencing url and log the error and not inform the user(organizer).
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 High priority Created by Linear-GitHub Sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CAL-2686] Surfacing actual error to the UI on the booking page [CAL-2428] better error message if user books seat from same slot again

7 participants