Skip to content

fix: phoneSchema missing async parsing#10929

Merged
kodiakhq[bot] merged 2 commits intomainfrom
hotfix/phone-schema
Aug 24, 2023
Merged

fix: phoneSchema missing async parsing#10929
kodiakhq[bot] merged 2 commits intomainfrom
hotfix/phone-schema

Conversation

@hariombalhara
Copy link
Copy Markdown
Member

@hariombalhara hariombalhara commented Aug 24, 2023

What does this PR do?

Fixes broken booking form if attendee phone number is chosen.

Demo that it works now

Type of change

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

How should this be tested?

  • Simply choose Attendee phone as location and try booking with a valid number

Checklist

  • I haven't added tests that prove my fix is effective or that my feature works

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 24, 2023

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 Aug 24, 2023 0:39am
cal-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 24, 2023 0:39am
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 24, 2023 0:39am
ui ❌ Failed (Inspect) Aug 24, 2023 0:39am
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Aug 24, 2023 0:39am
qa ⬜️ Ignored (Inspect) Visit Preview Aug 24, 2023 0:39am

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 24, 2023

Thank you for following the naming conventions! 🙏

@zomars zomars added the core area: core, team members only label Aug 24, 2023
@Udit-takkar Udit-takkar changed the title phoneSchema missing async parsing fix: phoneSchema missing async parsing Aug 24, 2023
@hariombalhara hariombalhara marked this pull request as ready for review August 24, 2023 12:32
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

@github-actions
Copy link
Copy Markdown
Contributor

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

// `typeOfOptionInput` can be any of the main types. So, we the same validations should run for `optionValue`
if (typeOfOptionInput === "phone") {
if (!phoneSchema.safeParse(optionValue).success) {
if (!(await phoneSchema.safeParseAsync(optionValue)).success) {
Copy link
Copy Markdown
Member Author

@hariombalhara hariombalhara Aug 24, 2023

Choose a reason for hiding this comment

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

There was one occurrence earlier in the code for phoneSchema that has been handled. That triggered when a Phone number type field is chosen but this one is special location field handling.

@deploysentinel
Copy link
Copy Markdown

deploysentinel Bot commented Aug 24, 2023

Current Playwright Test Results Summary

✅ 120 Passing - ⚠️ 4 Flaky

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

(Last updated on 08/24/2023 12:42:58pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 79d9530

Started: 08/24/2023 12:41:06pm UTC

⚠️ Flakes

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Manage Booking Questions For Team EventType Do a booking with a user added question and verify a few thing in b/w
Retry 1Initial Attempt
1.17% (3) 3 / 256 runs
failed over last 7 days
0.78% (2) 2 / 256 runs
flaked over last 7 days

📄   packages/app-store/typeform/playwright/tests/basic.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Typeform App Typeform Redirect Link should copy link in editing area
Retry 1Initial Attempt
0% (0) 0 / 262 runs
failed over last 7 days
1.53% (4) 4 / 262 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
FORM_SUBMITTED can submit a form and get a submission event
Retry 1Initial Attempt
1.17% (3) 3 / 257 runs
failed over last 7 days
23.35% (60) 60 / 257 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should be able to reschedule
Retry 1Initial Attempt
2.33% (6) 6 / 258 runs
failed over last 7 days
97.29% (251) 251 / 258 runs
flaked over last 7 days

View Detailed Build Results


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge core area: core, team members only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants