Skip to content

fix: booking limits for team event types#14135

Merged
Udit-takkar merged 2 commits intomainfrom
fix/booking-limit-on-team-event
Mar 19, 2024
Merged

fix: booking limits for team event types#14135
Udit-takkar merged 2 commits intomainfrom
fix/booking-limit-on-team-event

Conversation

@CarinaWolli
Copy link
Copy Markdown
Member

What does this PR do?

This fixes a bug for team event types with booking limits enabled. Slots were shown as available even though the limit was already reached. When trying to book the slot it was throwing "Booking Limit for this event type has been reached"

Type of change

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

How should this be tested?

  • create round robin event type and assign hosts
  • add a limit of 1 booking per day
  • book one slot
  • go back to availabilities and see that the day is now blocked
    • before the day was still open, but when trying to book a slot it was throwing the error

@graphite-app graphite-app Bot requested a review from a team March 18, 2024 23:11
@keithwillcode keithwillcode added consumer core area: core, team members only labels Mar 18, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 18, 2024

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

@CarinaWolli CarinaWolli marked this pull request as draft March 18, 2024 23:13
@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented Mar 18, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (03/18/24)

1 reviewer was added to this PR based on Keith Williams's automation.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 18, 2024

📦 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! 🙌

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 18, 2024

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

4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ai ⬜️ Ignored (Inspect) Visit Preview Mar 18, 2024 11:23pm
cal ⬜️ Ignored (Inspect) Visit Preview Mar 18, 2024 11:23pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Mar 18, 2024 11:23pm
qa ⬜️ Ignored (Inspect) Visit Preview Mar 18, 2024 11:23pm

busyTimesFromLimitsBookings: busyTimesFromLimitsBookingsAllUsers.filter(
(b) => b.userId === currentUser.id
),
busyTimesFromLimitsBookings: busyTimesFromLimitsBookingsAllUsers,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The booking limit is event type wide and it doesn't matter which user was booked.

@CarinaWolli CarinaWolli added the 🐛 bug Something isn't working label Mar 18, 2024
@CarinaWolli CarinaWolli added this to the v4.0 milestone Mar 18, 2024
@CarinaWolli CarinaWolli marked this pull request as ready for review March 18, 2024 23:26
@deploysentinel
Copy link
Copy Markdown

deploysentinel Bot commented Mar 18, 2024

Current Playwright Test Results Summary

✅ 303 Passing - ⚠️ 15 Flaky

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

(Last updated on 03/18/2024 11:35:26pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: a7a5d2a

Started: 03/18/2024 11:31:55pm UTC

⚠️ Flakes

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
pro user -- future Time slots should be reserved when selected
Retry 1Initial Attempt
0% (0) 0 / 201 runs
failed over last 7 days
6.47% (13) 13 / 201 runs
flaked 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 -- legacy user can add multiple organizer address
Retry 1Initial Attempt
0% (0) 0 / 201 runs
failed over last 7 days
1.99% (4) 4 / 201 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Availablity Can manage single schedule
Retry 1Initial Attempt
0% (0) 0 / 97 runs
failed over last 7 days
10.31% (10) 10 / 97 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
user can login & logout succesfully -- future login flow user & logout using dashboard
Retry 2Retry 1Initial Attempt
4.06% (8) 8 / 197 runs
failed over last 7 days
25.38% (50) 50 / 197 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Organization Email not matching orgAutoAcceptEmail nonexisting user invited to a Team inside organization
Retry 1Initial Attempt
0.99% (2) 2 / 202 runs
failed over last 7 days
14.36% (29) 29 / 202 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Preview Preview - embed-core should load
Retry 1Initial Attempt
0% (0) 0 / 204 runs
failed over last 7 days
35.78% (73) 73 / 204 runs
flaked over last 7 days

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

Top 1 Common Error Messages

null

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 1Initial Attempt
0.97% (2) 2 / 206 runs
failed over last 7 days
45.15% (93) 93 / 206 runs
flaked over last 7 days
Popup Tests should be able to reschedule
Retry 1Initial Attempt
-83.78% (-93) -93 / 111 runs
failed over last 7 days
83.78% (93) 93 / 111 runs
flaked over last 7 days
Popup Tests should open Routing Forms embed on click
Retry 1Initial Attempt
-84.55% (-93) -93 / 110 runs
failed over last 7 days
84.55% (93) 93 / 110 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
-82.73% (-91) -91 / 110 runs
failed over last 7 days
83.64% (92) 92 / 110 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 configured with 'auto' theme using Embed API
Retry 1Initial Attempt
-84.40% (-92) -92 / 109 runs
failed over last 7 days
84.40% (92) 92 / 109 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(Booker Profile Page) with dark theme when configured with dark theme using Embed API
Retry 1Initial Attempt
-84.40% (-92) -92 / 109 runs
failed over last 7 days
84.40% (92) 92 / 109 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(Event Booking Page) with dark theme when configured with dark theme using Embed API
Retry 1Initial Attempt
-84.40% (-92) -92 / 109 runs
failed over last 7 days
84.40% (92) 92 / 109 runs
flaked over last 7 days
Popup Tests prendered embed should be loaded and apply the config given to it
Retry 1Initial Attempt
-84.40% (-92) -92 / 109 runs
failed over last 7 days
84.40% (92) 92 / 109 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
1.46% (3) 3 / 206 runs
failed over last 7 days
47.09% (97) 97 / 206 runs
flaked over last 7 days

View Detailed Build Results


Copy link
Copy Markdown
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.

LGTM. Tested and worked fine

@Udit-takkar Udit-takkar merged commit aaf630e into main Mar 19, 2024
@Udit-takkar Udit-takkar deleted the fix/booking-limit-on-team-event branch March 19, 2024 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working consumer core area: core, team members only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants