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: route always selects 'custom' after saving an event redirect #13665

Merged
merged 3 commits into from
Feb 13, 2024

Conversation

CarinaWolli
Copy link
Member

What does this PR do?

Fixes issue that an event redirect route always switches to custom after saving, even when an event type was picked in the select. Everything was saved correctly to the db, this is just a displaying issue.

Copy link
Contributor

github-actions bot commented Feb 13, 2024

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

Copy link

vercel bot commented Feb 13, 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 Feb 13, 2024 7:59pm
cal ⬜️ Ignored (Inspect) Visit Preview Feb 13, 2024 7:59pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Feb 13, 2024 7:59pm
qa ⬜️ Ignored (Inspect) Visit Preview Feb 13, 2024 7:59pm

useEffect(() => {
if (!isLoading) {
const isCustom = !eventOptions.find((eventOption) => eventOption.value === route.action.value);
setCustomEventTypeSlug(isCustom ? route.action.value.split("/").pop() ?? "" : "");
Copy link
Member Author

Choose a reason for hiding this comment

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

only set the CustomEventTypeSlug, when the event type doesn't exist in the eventOptions

@CarinaWolli CarinaWolli added the routing-forms area: routing forms, routing, forms label Feb 13, 2024
@CarinaWolli CarinaWolli added this to the v3.8 milestone Feb 13, 2024
Copy link
Contributor

📦 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 Feb 13, 2024

Current Playwright Test Results Summary

✅ 447 Passing - ⚠️ 18 Flaky

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

(Last updated on 02/13/2024 08:19:10pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: fb539fd

Started: 02/13/2024 08:08:55pm UTC

⚠️ Flakes

📄   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 checkbox Question Select required and checkbox required
Retry 1Initial Attempt
0% (0) 0 / 275 runs
failed over last 7 days
4% (11) 11 / 275 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.35% (1) 1 / 284 run
failed over last 7 days
5.63% (16) 16 / 284 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 1Initial Attempt
2.91% (8) 8 / 275 runs
failed over last 7 days
40% (110) 110 / 275 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 multiselect Question Radio required and multiselect text required
Retry 1Initial Attempt
0% (0) 0 / 281 runs
failed over last 7 days
5.69% (16) 16 / 281 runs
flaked over last 7 days

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

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 Multi email Question Address and Multi email not required
Retry 1Initial Attempt
0% (0) 0 / 287 runs
failed over last 7 days
7.32% (21) 21 / 287 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 Different Locations Tests Can add Cal video location and book with it
Retry 1Initial Attempt
0% (0) 0 / 291 runs
failed over last 7 days
2.06% (6) 6 / 291 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 Can manage single schedule
Retry 1Initial Attempt
0.35% (1) 1 / 285 run
failed over last 7 days
11.93% (34) 34 / 285 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% (0) 0 / 288 runs
failed over last 7 days
8.68% (25) 25 / 288 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 multiselect Question Phone required and multiselect text not required
Retry 2Retry 1Initial Attempt
0% (0) 0 / 285 runs
failed over last 7 days
5.26% (15) 15 / 285 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.68% (2) 2 / 292 runs
failed over last 7 days
53.08% (155) 155 / 292 runs
flaked over last 7 days
Popup Tests should be able to reschedule
Retry 1Initial Attempt
-114.81% (-155) -155 / 135 runs
failed over last 7 days
115.56% (156) 156 / 135 runs
flaked over last 7 days
Popup Tests should open Routing Forms embed on click
Retry 1Initial Attempt
-114.93% (-154) -154 / 134 runs
failed over last 7 days
114.93% (154) 154 / 134 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
-114.93% (-154) -154 / 134 runs
failed over last 7 days
114.93% (154) 154 / 134 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
-114.93% (-154) -154 / 134 runs
failed over last 7 days
114.93% (154) 154 / 134 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
-114.18% (-153) -153 / 134 runs
failed over last 7 days
114.18% (153) 153 / 134 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
-114.18% (-153) -153 / 134 runs
failed over last 7 days
114.18% (153) 153 / 134 runs
flaked over last 7 days
Popup Tests prendered embed should be loaded and apply the config given to it
Retry 1Initial Attempt
-115.04% (-153) -153 / 133 runs
failed over last 7 days
115.04% (153) 153 / 133 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Routing Forms Seeded Routing Form Routing Link should validate fields
Retry 1Initial Attempt
0% (0) 0 / 294 runs
failed over last 7 days
4.76% (14) 14 / 294 runs
flaked over last 7 days

View Detailed Build Results


@CarinaWolli CarinaWolli merged commit c99bb19 into main Feb 13, 2024
38 checks passed
@CarinaWolli CarinaWolli deleted the fix/routing-form-custom-slug branch February 13, 2024 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consumer core area: core, team members only routing-forms area: routing forms, routing, forms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants