Skip to content

fix: Remove multiple durations for seated events#10910

Merged
keithwillcode merged 3 commits into
mainfrom
fix/disable-duration-on-seats
Aug 23, 2023
Merged

fix: Remove multiple durations for seated events#10910
keithwillcode merged 3 commits into
mainfrom
fix/disable-duration-on-seats

Conversation

@joeauyeung
Copy link
Copy Markdown
Contributor

What does this PR do?

This PR disables multiple durations for seated events.

Fixes # (issue)

Requirement/Documentation

  • If there is a requirement document, please, share it here.
  • If there is ab UI/UX design document, please, share it here.

Type of change

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

How should this be tested?

  • In an event type enable multiple durations
  • Now enable seats
  • Navigate back to the multiple durations. It should be back to a single duration and the toggle should be disabled

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
  • I haven't checked if new and existing unit tests pass locally with my changes

@joeauyeung joeauyeung self-assigned this Aug 23, 2023
@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 23, 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 23, 2023 6:07pm
cal-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2023 6:07pm
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2023 6:07pm
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2023 6:07pm
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Aug 23, 2023 6:07pm
qa ⬜️ Ignored (Inspect) Visit Preview Aug 23, 2023 6:07pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 23, 2023

Thank you for following the naming conventions! 🙏

@joeauyeung joeauyeung requested review from a team August 23, 2023 16:14
@zomars zomars added the core area: core, team members only label Aug 23, 2023
},
})),
multipleDurationEnabled: eventType.metadata?.multipleDuration || false,
seatsPerTimeSlotEnabled: eventType.seatsPerTimeSlot,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Enable this default value as you had to navigate to the "Advanced" tab for this value to appear

toggleGuests(false);
formMethods.setValue("requiresConfirmation", false);
setRequiresConfirmation(false);
formMethods.setValue("metadata.multipleDuration", undefined);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Remove all multiple durations when seats are enabled

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 23, 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 Aug 23, 2023

Current Playwright Test Results Summary

✅ 120 Passing - ⚠️ 3 Flaky

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

(Last updated on 08/23/2023 06:25:00pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: f095253

Started: 08/23/2023 06:12:08pm UTC

⚠️ Flakes

📄   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
1.51% (4) 4 / 265 runs
failed over last 7 days
23.40% (62) 62 / 265 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.65% (7) 7 / 264 runs
failed over last 7 days
96.97% (256) 256 / 264 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.15% (3) 3 / 261 runs
failed over last 7 days
21.46% (56) 56 / 261 runs
flaked over last 7 days

View Detailed Build Results


leog
leog previously approved these changes Aug 23, 2023
Copy link
Copy Markdown
Contributor

@leog leog left a comment

Choose a reason for hiding this comment

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

LGTM, any test to update for this?

Copy link
Copy Markdown
Contributor

@leog leog left a comment

Choose a reason for hiding this comment

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

LGTM

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

None yet

Development

Successfully merging this pull request may close these issues.

4 participants