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

feat: API: /bookings optional end property - default to event length #9296

Merged
merged 2 commits into from
Jun 2, 2023

Conversation

emrysal
Copy link
Contributor

@emrysal emrysal commented Jun 2, 2023

What does this PR do?

Allows not having to manually compute the end of the booking, instead use eventType settings.

@vercel
Copy link

vercel bot commented Jun 2, 2023

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

Name Status Preview Comments Updated (UTC)
cal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 2, 2023 7:04pm
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 2, 2023 7:04pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
api ⬜️ Ignored (Inspect) Jun 2, 2023 7:04pm

@@ -468,6 +468,13 @@ function getBookingData({
if (val.responses) {
const unwantedProps: string[] = [];
legacyProps.forEach((legacyProp) => {
if (typeof val[legacyProp as keyof typeof val] !== "undefined") {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unrelated, gives a warning when passing location or notes as a falsy value (but still present). Just log as this would be a breaking change.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 2, 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

deploysentinel bot commented Jun 2, 2023

Current Playwright Test Results Summary

✅ 90 Passing - ⚠️ 3 Flaky

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

(Last updated on 06/02/2023 07:06:40pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: fab5231

Started: 06/02/2023 07:04:18pm UTC

⚠️ Flakes

📄   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 user -- new-booker can add multiple organizer address
Retry 1Initial Attempt
2.26% (8) 8 / 354 runs
failed over last 7 days
11.86% (42) 42 / 354 runs
flaked over last 7 days

📄   apps/web/playwright/managed-event-types.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Managed Event Types tests Can create managed event type
Retry 1Initial Attempt
1.40% (5) 5 / 357 runs
failed over last 7 days
19.89% (71) 71 / 357 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% (0) 0 / 246 runs
failed over last 7 days
15.45% (38) 38 / 246 runs
flaked over last 7 days

View Detailed Build Results


@emrysal emrysal added this pull request to the merge queue Jun 2, 2023
Copy link
Contributor

@keithwillcode keithwillcode left a comment

Choose a reason for hiding this comment

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

Awesome work.

Copy link
Member

@zomars zomars left a comment

Choose a reason for hiding this comment

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

Ship it

Merged via the queue into main with commit 7fc0877 Jun 2, 2023
@emrysal emrysal deleted the feature/optional-reqBody-end-default-eventLength branch June 2, 2023 19:43
@PeerRich PeerRich added the core area: core, team members only label Jul 24, 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
None yet
Development

Successfully merging this pull request may close these issues.

4 participants