Skip to content
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

fix: Dynamic duration was always overwritten with the default (30) #12444

Merged
merged 6 commits into from
Dec 11, 2023

Conversation

emrysal
Copy link
Contributor

@emrysal emrysal commented Nov 20, 2023

What does this PR do?

multipleDuration useEvent was never set in case of dynamic event - so couldn't be used in the booker store.

Copy link

vercel bot commented Nov 20, 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 Dec 5, 2023 0:08am
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 5, 2023 0:08am
dev ❌ Failed (Inspect) Dec 5, 2023 0:08am
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Dec 5, 2023 0:08am
cal-demo ⬜️ Ignored (Inspect) Visit Preview Dec 5, 2023 0:08am
qa ⬜️ Ignored (Inspect) Visit Preview Dec 5, 2023 0:08am
ui ⬜️ Ignored (Inspect) Visit Preview Dec 5, 2023 0:08am

Copy link
Contributor

github-actions bot commented Nov 20, 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!

Copy link
Contributor

github-actions bot commented Nov 20, 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! 🙌

Copy link

deploysentinel bot commented Nov 20, 2023

Current Playwright Test Results Summary

✅ 336 Passing - ⚠️ 25 Flaky

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

(Last updated on 12/05/2023 12:15:52pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 2267e07

Started: 12/05/2023 12:08:24pm UTC

⚠️ Flakes

📄   apps/web/playwright/booking-seats.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking with Seats User can create a seated event (2 seats as example)
Retry 1Initial Attempt
1.88% (5) 5 / 266 runs
failed over last 7 days
26.69% (71) 71 / 266 runs
flaked over last 7 days

📄   apps/web/playwright/locale.e2e.ts • 13 Flakes

Top 1 Common Error Messages

null

13 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
unauthorized user sees correct translations (de) should use correct translations and html attributes
Retry 2Retry 1Initial Attempt
-77.66% (-219) -219 / 282 runs
failed over last 7 days
77.66% (219) 219 / 282 runs
flaked over last 7 days
unauthorized user sees correct translations (ar) should use correct translations and html attributes
Retry 2Retry 1Initial Attempt
-77.30% (-218) -218 / 282 runs
failed over last 7 days
77.66% (219) 219 / 282 runs
flaked over last 7 days
unauthorized user sees correct translations (zh) should use correct translations and html attributes
Retry 2Retry 1Initial Attempt
-77.94% (-219) -219 / 281 runs
failed over last 7 days
77.94% (219) 219 / 281 runs
flaked over last 7 days
unauthorized user sees correct translations (zh-CN) should use correct translations and html attributes
Retry 2Retry 1Initial Attempt
-77.94% (-219) -219 / 281 runs
failed over last 7 days
77.94% (219) 219 / 281 runs
flaked over last 7 days
unauthorized user sees correct translations (zh-TW) should use correct translations and html attributes
Retry 2Retry 1Initial Attempt
-77.58% (-218) -218 / 281 runs
failed over last 7 days
77.94% (219) 219 / 281 runs
flaked over last 7 days
unauthorized user sees correct translations (pt) should use correct translations and html attributes
Retry 2Retry 1Initial Attempt
-78.21% (-219) -219 / 280 runs
failed over last 7 days
78.21% (219) 219 / 280 runs
flaked over last 7 days
unauthorized user sees correct translations (pt-br) should use correct translations and html attributes
Retry 2Retry 1Initial Attempt
-78.21% (-219) -219 / 280 runs
failed over last 7 days
78.21% (219) 219 / 280 runs
flaked over last 7 days
unauthorized user sees correct translations (es-419) should use correct translations and html attributes
Retry 2Retry 1Initial Attempt
-78.21% (-219) -219 / 280 runs
failed over last 7 days
78.21% (219) 219 / 280 runs
flaked over last 7 days
authorized user sees correct translations (de) should return correct translations and html attributes
Retry 2Retry 1Initial Attempt
-76.43% (-214) -214 / 280 runs
failed over last 7 days
78.21% (219) 219 / 280 runs
flaked over last 7 days
authorized user sees correct translations (pt-br) should return correct translations and html attributes
Retry 2Retry 1Initial Attempt
-79.27% (-218) -218 / 275 runs
failed over last 7 days
79.64% (219) 219 / 275 runs
flaked over last 7 days
authorized user sees correct translations (ar) should return correct translations and html attributes
Retry 2Retry 1Initial Attempt
-79.20% (-217) -217 / 274 runs
failed over last 7 days
79.93% (219) 219 / 274 runs
flaked over last 7 days
authorized user sees changed translations (de->ar) should return correct translations and html attributes
Retry 2Retry 1Initial Attempt
-22.79% (-62) -62 / 272 runs
failed over last 7 days
53.68% (146) 146 / 272 runs
flaked over last 7 days
authorized user sees changed translations (de->pt-BR) [locale1] should return correct translations and html attributes
Retry 2Retry 1Initial Attempt
-29.95% (-56) -56 / 187 runs
failed over last 7 days
56.68% (106) 106 / 187 runs
flaked over last 7 days

📄   apps/web/playwright/booking/checkboxGroupQuestion.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Checkbox Group Question and Each Other Question Booking With Checkbox Group Question and Address Question Booking With Checkbox Group Question and checkbox Question Checkbox Group required and checkbox required
Retry 1Initial Attempt
0% (0) 0 / 285 runs
failed over last 7 days
1.75% (5) 5 / 285 runs
flaked over last 7 days

📄   apps/web/playwright/booking/phoneQuestion.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Phone Question and Each Other Question Booking With Phone Question and Address Question Booking With Phone Question and Multi email Question Phone required and Multi email not required
Retry 1Initial Attempt
0.35% (1) 1 / 282 run
failed over last 7 days
1.42% (4) 4 / 282 runs
flaked over last 7 days

📄   apps/web/playwright/teams.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Teams - NonOrg Can create a private team
Retry 1Initial Attempt
0% (0) 0 / 294 runs
failed over last 7 days
22.45% (66) 66 / 294 runs
flaked over last 7 days

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

Top 1 Common Error Messages

null

4 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should be able to reschedule
Retry 2Retry 1Initial Attempt
6.08% (18) 18 / 296 runs
failed over last 7 days
88.85% (263) 263 / 296 runs
flaked over last 7 days
Popup Tests should open Routing Forms embed on click
Retry 1Initial Attempt
2.71% (8) 8 / 295 runs
failed over last 7 days
38.64% (114) 114 / 295 runs
flaked over last 7 days
Popup Tests should open embed iframe on click - Configured with light theme
Retry 1Initial Attempt
3.04% (9) 9 / 296 runs
failed over last 7 days
51.69% (153) 153 / 296 runs
flaked 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 1Initial Attempt
3.04% (9) 9 / 296 runs
failed over last 7 days
77.70% (230) 230 / 296 runs
flaked over last 7 days

📄   apps/web/playwright/change-username.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Change username on settings User can change username
Retry 1Initial Attempt
0.35% (1) 1 / 286 run
failed over last 7 days
16.08% (46) 46 / 286 runs
flaked over last 7 days

📄   apps/web/playwright/team/team-invitation.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
Team Invitation (non verified)
Retry 1Initial Attempt
2.05% (6) 6 / 293 runs
failed over last 7 days
34.81% (102) 102 / 293 runs
flaked over last 7 days
Team Invitation (verified)
Retry 1Initial Attempt
0.34% (1) 1 / 293 run
failed over last 7 days
5.12% (15) 15 / 293 runs
flaked over last 7 days

📄   apps/web/playwright/organization/organization-creation.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Organization should be able to create an organization and complete onboarding
Retry 1Initial Attempt
18.24% (54) 54 / 296 runs
failed over last 7 days
60.47% (179) 179 / 296 runs
flaked over last 7 days

View Detailed Build Results


@keithwillcode keithwillcode added booking-page area: booking page, public booking page, booker Medium priority Created by Linear-GitHub Sync labels Nov 21, 2023
@keithwillcode keithwillcode requested a review from a team November 21, 2023 15:46
Copy link
Contributor

@Udit-takkar Udit-takkar left a comment

Choose a reason for hiding this comment

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

@emrysal I am seeing wrong slots when i changed the duration from 30 to 60.

Screenshot 2023-11-22 at 9 40 42 PM Screenshot 2023-11-22 at 9 42 31 PM

and when I tried to book the slot (10:30Am-11:30AM 60min). I am getting error

Could not book the meeting.
Some of the hosts are unavailable for booking.

http://localhost:3000/pro+free

'pro' has a google calendar connected which has a busy event till 2:00 PM
'free' doesn't have any calendar connected.

Copy link
Member

@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.

We got some type check uh-ohs in there

ThyMinimalDev
ThyMinimalDev previously approved these changes Nov 29, 2023
Copy link
Contributor

@ThyMinimalDev ThyMinimalDev left a comment

Choose a reason for hiding this comment

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

I believe type errors were not linked to this pr, double checking Udit comment before approving

@ThyMinimalDev
Copy link
Contributor

@emrysal I am seeing wrong slots when i changed the duration from 30 to 60.

Screenshot 2023-11-22 at 9 40 42 PM Screenshot 2023-11-22 at 9 42 31 PM
and when I tried to book the slot (10:30Am-11:30AM 60min). I am getting error

Could not book the meeting. Some of the hosts are unavailable for booking.

http://localhost:3000/pro+free

'pro' has a google calendar connected which has a busy event till 2:00 PM 'free' doesn't have any calendar connected.

not sure to understand what you mean by wrong slots, it seems fine on my end ?

@Udit-takkar
Copy link
Contributor

not sure to understand what you mean by wrong slots, it seems fine on my end ?

Steps to reproduce this bug locally

http://localhost:3000/pro+free

  1. Connect google calendar in one of the account (pro )
  2. Create a busy event from 8:30AM - 2PM
Screenshot 2023-11-29 at 7 45 03 PM
  1. now go to http://localhost:3000/pro+free

When Duration is 30min slots start are 2:30, 3:00, 3:30 ..

Screenshot 2023-11-29 at 7 45 41 PM

Now change the duration to 60min and now the slots start at 9:30AM, 10:30AM .. and so on

Screenshot 2023-11-29 at 7 46 36 PM

It ignored the busy event in calendar till 2PM.

@ThyMinimalDev
Copy link
Contributor

ThyMinimalDev commented Dec 5, 2023

@Udit-takkar following the steps you describe, can't reproduce this error on both this branch and main branch, can you double check ?

@Udit-takkar
Copy link
Contributor

I tried again today with a new calendar connection and i am still getting the same slots as the screenshot above.

@supalarry
Copy link
Contributor

I also tried reproducing what Udit reported but could not. 30 and 60 minute slots start at the same time after booking event for the pro account on google calendar.

Before

30 minute slots

before-30 before-30-2

60 minute slots

before-60

After

I connected pro to google account and booked from 8:30am to 2pm
Screenshot 2023-12-07 at 10 10 02

30 minute slots

Screenshot 2023-12-07 at 10 10 07

60 minute slots

Screenshot 2023-12-07 at 10 10 11

/**
* Configures the selectable options for a multiDuration event type.
*/
durationConfig?: number[];
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we name it durationOptions instead ? I find that word config implies a more complex configuration than just a set of possible duration values.

@Udit-takkar
Copy link
Contributor

@supalarry Ok safe to merge then

Copy link
Member

@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.

Issues were addressed

@zomars zomars merged commit 565e21b into main Dec 11, 2023
41 of 42 checks passed
@zomars zomars deleted the bugfix/dynamic-duration-not-working branch December 11, 2023 23:07
hbjORbj pushed a commit to codemod-com/cal.com-demo that referenced this pull request Dec 21, 2023
…alcom#12444)

Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
booking-page area: booking page, public booking page, booker core area: core, team members only devops Medium priority Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants