feat: platform endpoints to fetch/cancel/reschedule bookings and hooks#14164
feat: platform endpoints to fetch/cancel/reschedule bookings and hooks#14164
Conversation
|
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 4 Ignored Deployments
|
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Current Playwright Test Results Summary✅ 303 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 03/27/2024 09:45:53am UTC) Run DetailsRunning Workflow PR Update on Github Actions Commit: 8e9e08f Started: 03/27/2024 09:42:38am UTC
|
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
Availablity Can manage single schedule
Retry 2 • Retry 1 • Initial Attempt |
0% (0)0 / 182 runsfailed over last 7 days |
7.69% (14)14 / 182 runsflaked over last 7 days |
📄 apps/web/playwright/event-types.e2e.ts • 1 Flake
Test Case Results
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
Event Types tests -- future user Different Locations Tests Can add Link Meeting as location and book with it
Retry 1 • Initial Attempt |
0% (0)0 / 175 runsfailed over last 7 days |
5.71% (10)10 / 175 runsflaked over last 7 days |
📄 apps/web/playwright/integrations-stripe.e2e.ts • 1 Flake
Test Case Results
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
Stripe integration Can book a paid booking
Retry 1 • Initial Attempt |
1.66% (3)3 / 181 runsfailed over last 7 days |
36.46% (66)66 / 181 runsflaked over last 7 days |
📄 packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 8 Flakes
Top 1 Common Error Messages
|
|
8 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 1 • Initial Attempt |
0% (0)0 / 177 runsfailed over last 7 days |
59.89% (106)106 / 177 runsflaked over last 7 days |
|
Popup Tests should be able to reschedule
Retry 1 • Initial Attempt |
-149.30% (-106)-106 / 71 runsfailed over last 7 days |
149.30% (106)106 / 71 runsflaked over last 7 days |
|
Popup Tests should open Routing Forms embed on click
Retry 1 • Initial Attempt |
-149.30% (-106)-106 / 71 runsfailed over last 7 days |
149.30% (106)106 / 71 runsflaked over last 7 days |
|
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe according to system theme when no theme is configured through Embed API
Retry 1 • Initial Attempt |
-149.30% (-106)-106 / 71 runsfailed over last 7 days |
149.30% (106)106 / 71 runsflaked over last 7 days |
|
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe according to system theme when configured with 'auto' theme using Embed API
Retry 1 • Initial Attempt |
-149.30% (-106)-106 / 71 runsfailed over last 7 days |
149.30% (106)106 / 71 runsflaked over last 7 days |
|
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe(Booker Profile Page) with dark theme when configured with dark theme using Embed API
Retry 1 • Initial Attempt |
-149.30% (-106)-106 / 71 runsfailed over last 7 days |
149.30% (106)106 / 71 runsflaked over last 7 days |
|
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe(Event Booking Page) with dark theme when configured with dark theme using Embed API
Retry 1 • Initial Attempt |
-149.30% (-106)-106 / 71 runsfailed over last 7 days |
149.30% (106)106 / 71 runsflaked over last 7 days |
|
Popup Tests prendered embed should be loaded and apply the config given to it
Retry 1 • Initial Attempt |
-149.30% (-106)-106 / 71 runsfailed over last 7 days |
149.30% (106)106 / 71 runsflaked over last 7 days |
| // note(Rajiv): currently this endpoint is atoms only | ||
| @Get("/:bookingUid") | ||
| async getBooking(@Param("bookingUid") bookingUid: string): Promise<ApiResponse<unknown>> { | ||
| const { bookingInfo } = await getBookingInfo(bookingUid); |
There was a problem hiding this comment.
I see that "getBookingInfo" consists of "prisma.booking.findFirst" call from "apps/web/modules/bookings/views/bookings-single-view.getServerSideProps.tsx" - don't we also need to perform the rest of the operations e.g. eventType that is returned to frontend is transformed into final form in the get server side props:
const eventType = {
...eventTypeRaw,
periodStartDate: eventTypeRaw.periodStartDate?.toString() ?? null,
periodEndDate: eventTypeRaw.periodEndDate?.toString() ?? null,
metadata: EventTypeMetaDataSchema.parse(eventTypeRaw.metadata),
recurringEvent: parseRecurringEvent(eventTypeRaw.recurringEvent),
customInputs: customInputSchema.array().parse(eventTypeRaw.customInputs),
};
There was a problem hiding this comment.
I think this is done because next.js getServerSideProps can't serialize dates and other data structures
…king success page
…/cal.com into fetch-bookings-endpoint-and-hooks
What does this PR do?