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: attempting to book meeting in the past #12597

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

CarinaWolli
Copy link
Member

What does this PR do?

This PR fixes 'Attempting to booking meeting in the past error' in slots.getSchedule:

Screenshot 2023-11-29 at 2 45 24 PM

This happened when the minimum booking notice was set to 0 minutes. And the first available slot is on the exact same time as the current time.

Fixes #7230

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Copy link

vercel bot commented Nov 29, 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 30, 2023 5:22pm
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 30, 2023 5:22pm
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 30, 2023 5:22pm
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Nov 30, 2023 5:22pm
cal-demo ⬜️ Ignored (Inspect) Nov 30, 2023 5:22pm
qa ⬜️ Ignored (Inspect) Visit Preview Nov 30, 2023 5:22pm
ui ⬜️ Ignored (Inspect) Visit Preview Nov 30, 2023 5:22pm

@github-actions github-actions bot added bookings area: bookings, availability, timezones, double booking Low priority Created by Linear-GitHub Sync Stale 🐛 bug Something isn't working labels Nov 29, 2023
Copy link
Contributor

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

@zomars zomars added the core area: core, team members only label Nov 29, 2023
@CarinaWolli CarinaWolli requested a review from a team November 29, 2023 19:50
@CarinaWolli CarinaWolli removed Low priority Created by Linear-GitHub Sync Stale labels Nov 29, 2023
Copy link
Contributor

github-actions bot commented Nov 29, 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 29, 2023

Current Playwright Test Results Summary

✅ 336 Passing - ⚠️ 27 Flaky

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

(Last updated on 11/30/2023 05:30:26pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 0206220

Started: 11/30/2023 05:21:08pm 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
0.76% (2) 2 / 264 runs
failed over last 7 days
4.17% (11) 11 / 264 runs
flaked over last 7 days

📄   apps/web/playwright/booking/selectQuestion.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 Select Question and Phone Question Select required and select required
Retry 1Initial Attempt
0% (0) 0 / 265 runs
failed over last 7 days
3.02% (8) 8 / 265 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Long Text Question and Each Other Question Booking With Long Text Question and Phone Question Long Text and Phone required
Retry 1Initial Attempt
0.37% (1) 1 / 269 run
failed over last 7 days
0.74% (2) 2 / 269 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Radio Question and Each Other Question Booking With Radio Question and Address Question Booking With Radio Question and Long text Question Radio and Long text not required
Retry 1Initial Attempt
0.37% (1) 1 / 269 run
failed over last 7 days
2.23% (6) 6 / 269 runs
flaked over last 7 days

📄   apps/web/playwright/booking/addressQuestione2e/addressQuestion.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
Booking With Address Question and Each Other Question Booking With Address Question and Checkbox Question Address required and checkbox required
Retry 1Initial Attempt
3.16% (9) 9 / 285 runs
failed over last 7 days
0.35% (1) 1 / 285 run
flaked over last 7 days
Booking With Address Question and Each Other Question Booking With Address Question and Phone Question Address and Phone not required
Retry 1Initial Attempt
0% (0) 0 / 276 runs
failed over last 7 days
1.45% (4) 4 / 276 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 1Initial Attempt
-68.75% (-187) -187 / 272 runs
failed over last 7 days
68.75% (187) 187 / 272 runs
flaked over last 7 days
unauthorized user sees correct translations (ar) should use correct translations and html attributes
Retry 1Initial Attempt
-68.75% (-187) -187 / 272 runs
failed over last 7 days
68.75% (187) 187 / 272 runs
flaked over last 7 days
unauthorized user sees correct translations (zh) should use correct translations and html attributes
Retry 1Initial Attempt
-68.75% (-187) -187 / 272 runs
failed over last 7 days
68.75% (187) 187 / 272 runs
flaked over last 7 days
unauthorized user sees correct translations (zh-CN) should use correct translations and html attributes
Retry 1Initial Attempt
-68.75% (-187) -187 / 272 runs
failed over last 7 days
68.75% (187) 187 / 272 runs
flaked over last 7 days
unauthorized user sees correct translations (zh-TW) should use correct translations and html attributes
Retry 1Initial Attempt
-68.75% (-187) -187 / 272 runs
failed over last 7 days
68.75% (187) 187 / 272 runs
flaked over last 7 days
unauthorized user sees correct translations (pt) should use correct translations and html attributes
Retry 1Initial Attempt
-68.75% (-187) -187 / 272 runs
failed over last 7 days
68.75% (187) 187 / 272 runs
flaked over last 7 days
unauthorized user sees correct translations (pt-br) should use correct translations and html attributes
Retry 1Initial Attempt
-68.75% (-187) -187 / 272 runs
failed over last 7 days
68.75% (187) 187 / 272 runs
flaked over last 7 days
unauthorized user sees correct translations (es-419) should use correct translations and html attributes
Retry 1Initial Attempt
-68.75% (-187) -187 / 272 runs
failed over last 7 days
68.75% (187) 187 / 272 runs
flaked over last 7 days
authorized user sees correct translations (de) should return correct translations and html attributes
Retry 1Initial Attempt
-66.91% (-182) -182 / 272 runs
failed over last 7 days
68.75% (187) 187 / 272 runs
flaked over last 7 days
authorized user sees correct translations (pt-br) should return correct translations and html attributes
Retry 1Initial Attempt
-68.91% (-184) -184 / 267 runs
failed over last 7 days
70.04% (187) 187 / 267 runs
flaked over last 7 days
authorized user sees correct translations (ar) should return correct translations and html attributes
Retry 1Initial Attempt
-70.45% (-186) -186 / 264 runs
failed over last 7 days
70.83% (187) 187 / 264 runs
flaked over last 7 days
authorized user sees changed translations (de->ar) should return correct translations and html attributes
Retry 1Initial Attempt
-20.53% (-54) -54 / 263 runs
failed over last 7 days
47.53% (125) 125 / 263 runs
flaked over last 7 days
authorized user sees changed translations (de->pt-BR) [locale1] should return correct translations and html attributes
Retry 1Initial Attempt
-23.96% (-46) -46 / 192 runs
failed over last 7 days
47.40% (91) 91 / 192 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 checkbox group Question Phone required and checkbox group not required
Retry 2Retry 1Initial Attempt
0% (0) 0 / 273 runs
failed over last 7 days
2.56% (7) 7 / 273 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.38% (1) 1 / 266 run
failed over last 7 days
5.64% (15) 15 / 266 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 open embed iframe on click - Configured with light theme
Retry 1Initial Attempt
0.69% (2) 2 / 289 runs
failed over last 7 days
48.79% (141) 141 / 289 runs
flaked over last 7 days
Popup Tests should be able to reschedule
Retry 2Retry 1Initial Attempt
3.11% (9) 9 / 289 runs
failed over last 7 days
94.12% (272) 272 / 289 runs
flaked over last 7 days
Popup Tests should open Routing Forms embed on click
Retry 1Initial Attempt
3.10% (9) 9 / 290 runs
failed over last 7 days
32.76% (95) 95 / 290 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
0.34% (1) 1 / 290 run
failed over last 7 days
77.24% (224) 224 / 290 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Insights should test download button
Retry 1Initial Attempt
0.35% (1) 1 / 288 run
failed over last 7 days
6.25% (18) 18 / 288 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/inline.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Inline Iframe Inline Iframe - Configured with Dark Theme
Retry 1Initial Attempt
0.35% (1) 1 / 287 run
failed over last 7 days
31.71% (91) 91 / 287 runs
flaked over last 7 days

View Detailed Build Results


@Udit-takkar Udit-takkar enabled auto-merge (squash) November 30, 2023 17:11
@Udit-takkar Udit-takkar merged commit 56050b9 into main Nov 30, 2023
41 checks passed
@Udit-takkar Udit-takkar deleted the fix/attempt-booking-in-the-past branch November 30, 2023 17:32
jakazzy pushed a commit to jakazzy/cal.com that referenced this pull request Dec 5, 2023
Co-authored-by: CarinaWolli <wollencarina@gmail.com>
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
hbjORbj pushed a commit to codemod-com/cal.com-demo that referenced this pull request Dec 21, 2023
Co-authored-by: CarinaWolli <wollencarina@gmail.com>
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
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 🐛 bug Something isn't working core area: core, team members only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-1118] Availability not loading, throws BookingDateInPastError
5 participants