Skip to content

fix: Legacy Routing Forms handling - Allow team Event in existing non-team Routing forms#9852

Merged
CarinaWolli merged 2 commits into
mainfrom
fix/allow-team-event-in-legacy-routing-form
Jun 30, 2023
Merged

fix: Legacy Routing Forms handling - Allow team Event in existing non-team Routing forms#9852
CarinaWolli merged 2 commits into
mainfrom
fix/allow-team-event-in-legacy-routing-form

Conversation

@hariombalhara
Copy link
Copy Markdown
Member

@hariombalhara hariombalhara commented Jun 29, 2023

What does this PR do?

Fixes #9853

Allow an existing User Routing Form to link to a Team EventType if it's already selected.

Type of change

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

How should this be tested?

  • Locally comment out the code that filters out eventTypes
  • Add a team EventType to a User Routing Form
  • Revert the change and then see that the selection is still there
  • Now select a User Event Type and save. Refresh and see that the team event type that was selected earlier has vanished from the list.

Mandatory Tasks

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

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 Jun 29, 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 Mar 19, 2024 3:06pm
cal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 19, 2024 3:06pm
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 19, 2024 3:06pm
web-staging 🔄 Building (Inspect) Visit Preview Mar 19, 2024 3:06pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
dev ⬜️ Ignored (Inspect) Mar 19, 2024 3:06pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 29, 2023

Thank you for following the naming conventions! 🙏

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 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! 🙌

@deploysentinel
Copy link
Copy Markdown

deploysentinel Bot commented Jun 29, 2023

Current Playwright Test Results Summary

✅ 108 Passing - ⚠️ 1 Flaky

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

(Last updated on 06/29/2023 06:25:29pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 6a23c9d

Started: 06/29/2023 06:12:39pm UTC

⚠️ Flakes

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Reschedule Tests -- old-booker Attendee should be able to reschedule a booking
Retry 1Initial Attempt
0% (0) 0 / 246 runs
failed over last 7 days
18.70% (46) 46 / 246 runs
flaked over last 7 days

View Detailed Build Results


const uniqueSlug = `${group.profile.slug}/${eventType.slug}`;
const isLegacy = isRouter(route) ? false : uniqueSlug === route.action.value;

if (!isLegacy && !eventTypeValidInContext) {
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.

If it's a legacy case where an existing team event might be selected, let that team event pass through.

@hariombalhara hariombalhara force-pushed the fix/allow-team-event-in-legacy-routing-form branch from 7450bf3 to 47590bd Compare June 29, 2023 17:24
@hariombalhara hariombalhara marked this pull request as ready for review June 29, 2023 17:30
@hariombalhara hariombalhara changed the title Legacy routing Forms handling fix: Legacy Routing Forms handling - Allow team Event in existing non-team Routing forms Jun 29, 2023
@hariombalhara hariombalhara requested a review from a team June 29, 2023 17:30
Copy link
Copy Markdown
Member

@CarinaWolli CarinaWolli left a comment

Choose a reason for hiding this comment

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

LGTM!

@CarinaWolli CarinaWolli merged commit be40e4b into main Jun 30, 2023
@CarinaWolli CarinaWolli deleted the fix/allow-team-event-in-legacy-routing-form branch June 30, 2023 14:58
@PeerRich PeerRich added the core area: core, team members only label Jul 24, 2023
fritterhoff pushed a commit to hm-edu/cal.com that referenced this pull request Jul 25, 2023
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

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

[CAL-2074] Existing User Routing Forms that are connected to Team EventTypes are broken

3 participants