Skip to content

fix: sync/async calls in getSchedule#13387

Merged
keithwillcode merged 5 commits intomainfrom
fix/sync-async-issues
Jan 24, 2024
Merged

fix: sync/async calls in getSchedule#13387
keithwillcode merged 5 commits intomainfrom
fix/sync-async-issues

Conversation

@keithwillcode
Copy link
Copy Markdown
Contributor

@keithwillcode keithwillcode commented Jan 24, 2024

What does this PR do?

Incorrect calls that are currently triggered using sync logic instead of async logic, which could cause very weird side effects for getting a user's schedule.

Related to #13358

Type of change

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

How should this be tested?

  • Ensure getSchedule tRPC endpoint retains correctly functionality

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

@keithwillcode keithwillcode added High priority Created by Linear-GitHub Sync core area: core, team members only foundation labels Jan 24, 2024
@keithwillcode keithwillcode added this to the v3.8 milestone Jan 24, 2024
@keithwillcode keithwillcode requested a review from a team January 24, 2024 14:12
@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 24, 2024

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

Name Status Preview Comments Updated (UTC)
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2024 2:56pm
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2024 2:56pm
6 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ai ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2024 2:56pm
cal ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2024 2:56pm
cal-demo ⬜️ Ignored (Inspect) Jan 24, 2024 2:56pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2024 2:56pm
qa ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2024 2:56pm
ui ⬜️ Ignored (Inspect) Visit Preview Jan 24, 2024 2:56pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 24, 2024

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

joeauyeung
joeauyeung previously approved these changes Jan 24, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 24, 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! 🙌

@deploysentinel
Copy link
Copy Markdown

deploysentinel Bot commented Jan 24, 2024

Current Playwright Test Results Summary

✅ 398 Passing - ⚠️ 18 Flaky

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

(Last updated on 01/24/2024 02:53:17pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 196926b

Started: 01/24/2024 02:47:07pm UTC

⚠️ Flakes

📄   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
-20% (-69) -69 / 345 runs
failed over last 7 days
20.29% (70) 70 / 345 runs
flaked over last 7 days
unauthorized user sees correct translations (ar) should use correct translations and html attributes
Retry 1Initial Attempt
-20.35% (-70) -70 / 344 runs
failed over last 7 days
20.35% (70) 70 / 344 runs
flaked over last 7 days
unauthorized user sees correct translations (zh) should use correct translations and html attributes
Retry 1Initial Attempt
-20.41% (-70) -70 / 343 runs
failed over last 7 days
20.41% (70) 70 / 343 runs
flaked over last 7 days
unauthorized user sees correct translations (zh-CN) should use correct translations and html attributes
Retry 1Initial Attempt
-20.41% (-70) -70 / 343 runs
failed over last 7 days
20.41% (70) 70 / 343 runs
flaked over last 7 days
unauthorized user sees correct translations (zh-TW) should use correct translations and html attributes
Retry 1Initial Attempt
-20.41% (-70) -70 / 343 runs
failed over last 7 days
20.41% (70) 70 / 343 runs
flaked over last 7 days
unauthorized user sees correct translations (pt) should use correct translations and html attributes
Retry 1Initial Attempt
-20.41% (-70) -70 / 343 runs
failed over last 7 days
20.41% (70) 70 / 343 runs
flaked over last 7 days
unauthorized user sees correct translations (pt-br) should use correct translations and html attributes
Retry 1Initial Attempt
-20.41% (-70) -70 / 343 runs
failed over last 7 days
20.41% (70) 70 / 343 runs
flaked over last 7 days
unauthorized user sees correct translations (es-419) should use correct translations and html attributes
Retry 1Initial Attempt
-20.41% (-70) -70 / 343 runs
failed over last 7 days
20.41% (70) 70 / 343 runs
flaked over last 7 days
authorized user sees correct translations (de) should return correct translations and html attributes
Retry 1Initial Attempt
-20.41% (-70) -70 / 343 runs
failed over last 7 days
20.41% (70) 70 / 343 runs
flaked over last 7 days
authorized user sees correct translations (pt-br) should return correct translations and html attributes
Retry 1Initial Attempt
-20.41% (-70) -70 / 343 runs
failed over last 7 days
20.41% (70) 70 / 343 runs
flaked over last 7 days
authorized user sees correct translations (ar) should return correct translations and html attributes
Retry 1Initial Attempt
-20.41% (-70) -70 / 343 runs
failed over last 7 days
20.41% (70) 70 / 343 runs
flaked over last 7 days
authorized user sees changed translations (de->ar) should return correct translations and html attributes
Retry 1Initial Attempt
-8.21% (-28) -28 / 341 runs
failed over last 7 days
18.77% (64) 64 / 341 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
-10.16% (-31) -31 / 305 runs
failed over last 7 days
20.66% (63) 63 / 305 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
2FA Tests should allow a user to enable 2FA and login using 2FA
Retry 1Initial Attempt
0.88% (3) 3 / 340 runs
failed over last 7 days
35% (119) 119 / 340 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
37.70% (46) 46 / 122 runs
failed over last 7 days
35.25% (43) 43 / 122 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 Radio group Question Long Text required and Radio group not required
Retry 1Initial Attempt
0.37% (1) 1 / 269 run
failed over last 7 days
3.72% (10) 10 / 269 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 Phone Question Checkbox Group and Phone not required
Retry 1Initial Attempt
0% (0) 0 / 301 runs
failed over last 7 days
1.99% (6) 6 / 301 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 tests Date Overrides
Retry 1Initial Attempt
0.26% (1) 1 / 391 run
failed over last 7 days
3.58% (14) 14 / 391 runs
flaked over last 7 days

View Detailed Build Results


@keithwillcode keithwillcode merged commit 24a4646 into main Jan 24, 2024
@keithwillcode keithwillcode deleted the fix/sync-async-issues branch January 24, 2024 15:05
@keithwillcode keithwillcode linked an issue Jan 25, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core area: core, team members only foundation High priority Created by Linear-GitHub Sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CAL-2994] Fix round robin perf issues

2 participants