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

chore: more fields event-types api v2 #15031

Merged
merged 1 commit into from
May 14, 2024

Conversation

ThyMinimalDev
Copy link
Contributor

What does this PR do?

Chore: api v2 allows settings more fields when creating / updating event-types

  • slotInterval
  • afterEventBuffer
  • beforeEventBugger
  • minimumBookingNotice

@graphite-app graphite-app bot requested a review from a team May 14, 2024 15:48
@ThyMinimalDev ThyMinimalDev requested review from keithwillcode and supalarry and removed request for a team May 14, 2024 15:48
Copy link
Contributor

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

@ThyMinimalDev ThyMinimalDev requested a review from a team May 14, 2024 15:48
@keithwillcode keithwillcode added core area: core, team members only platform Anything related to our platform plan labels May 14, 2024
@dosubot dosubot bot added api area: API, enterprise API, access token, OAuth event-types area: event types, event-types labels May 14, 2024
Copy link

vercel bot commented May 14, 2024

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

Name Status Preview Comments Updated (UTC)
ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2024 3:49pm

Copy link

graphite-app bot commented May 14, 2024

Graphite Automations

"Add foundation team as reviewer" took an action on this PR • (05/14/24)

1 reviewer was added to this PR based on Keith Williams's automation.

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 May 14, 2024

Current Playwright Test Results Summary

✅ 321 Passing - ⚠️ 20 Flaky

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

(Last updated on 05/14/2024 04:02:16pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 5f101f0

Started: 05/14/2024 03:59:44pm UTC

⚠️ Flakes

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Preview Preview - embed-core should load if correct embedLibUrl is provided
Retry 1Initial Attempt
0% (0) 0 / 257 runs
failed over last 7 days
33.46% (86) 86 / 257 runs
flaked over last 7 days

📄   apps/web/playwright/hash-my-url.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
hash my url generate url hash
Retry 1Initial Attempt
5.99% (16) 16 / 267 runs
failed over last 7 days
26.97% (72) 72 / 267 runs
flaked over last 7 days

📄   apps/web/playwright/event-types.e2e.ts • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

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
2.19% (6) 6 / 274 runs
failed over last 7 days
4.74% (13) 13 / 274 runs
flaked over last 7 days
Event Types tests -- legacy user Different Locations Tests Can add Link Meeting as location and book with it
Retry 1Initial Attempt
0.37% (1) 1 / 273 run
failed over last 7 days
4.76% (13) 13 / 273 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Workflow Tab - Event Type Check the functionalities of the Workflow Tab Team Workflows Admin user
Retry 1Initial Attempt
0% (0) 0 / 271 runs
failed over last 7 days
1.48% (4) 4 / 271 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 9 Flakes

Top 1 Common Error Messages

null

9 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
1.09% (3) 3 / 274 runs
failed over last 7 days
56.93% (156) 156 / 274 runs
flaked over last 7 days
Popup Tests should be able to reschedule
Retry 1Initial Attempt
-135.65% (-156) -156 / 115 runs
failed over last 7 days
135.65% (156) 156 / 115 runs
flaked over last 7 days
Popup Tests should open Routing Forms embed on click
Retry 1Initial Attempt
-133.91% (-154) -154 / 115 runs
failed over last 7 days
133.91% (154) 154 / 115 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
-130.43% (-150) -150 / 115 runs
failed over last 7 days
131.30% (151) 151 / 115 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
-132.46% (-151) -151 / 114 runs
failed over last 7 days
132.46% (151) 151 / 114 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
-132.46% (-151) -151 / 114 runs
failed over last 7 days
132.46% (151) 151 / 114 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
-132.46% (-151) -151 / 114 runs
failed over last 7 days
132.46% (151) 151 / 114 runs
flaked over last 7 days
Popup Tests prendered embed should be loaded and apply the config given to it
Retry 1Initial Attempt
-132.46% (-151) -151 / 114 runs
failed over last 7 days
132.46% (151) 151 / 114 runs
flaked over last 7 days
Popup Tests should open on clicking child element
Retry 1Initial Attempt
-129.20% (-146) -146 / 113 runs
failed over last 7 days
129.20% (146) 146 / 113 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Namespacing Inline Embed Double install Embed Snippet with inline embed without a namespace(i.e. default namespace)
Retry 1Initial Attempt
0% (0) 0 / 272 runs
failed over last 7 days
59.56% (162) 162 / 272 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
MEETING_ENDED, MEETING_STARTED should create/remove scheduledWebhookTriggers for existing bookings
Retry 1Initial Attempt
3.53% (3) 3 / 85 runs
failed over last 7 days
40% (34) 34 / 85 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Users can impersonate App Admin can impersonate users with impersonation enabled
Retry 1Initial Attempt
0.74% (2) 2 / 271 runs
failed over last 7 days
17.34% (47) 47 / 271 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
3.99% (11) 11 / 276 runs
failed over last 7 days
31.88% (88) 88 / 276 runs
flaked over last 7 days

📄   packages/embeds/embed-react/playwright/tests/basic.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
React Embed Element Click Popup should verify that the iframe got created with correct URL - namespaced
Retry 2Retry 1Initial Attempt
14.54% (41) 41 / 282 runs
failed over last 7 days
40.78% (115) 115 / 282 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Update Profile Newly added secondary email should show as Unverified
Retry 2Retry 1Initial Attempt
1.30% (4) 4 / 308 runs
failed over last 7 days
27.60% (85) 85 / 308 runs
flaked over last 7 days

View Detailed Build Results


Copy link
Contributor

@emrysal emrysal left a comment

Choose a reason for hiding this comment

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

Approved, but would this mean it's theoretically possible to negative slotInterval/after/beforeEventBuffer? Because if a user tries that it may work.. but the results of that I can't predict; won't be nice.

@emrysal emrysal merged commit 0a0c5ef into main May 14, 2024
40 checks passed
@emrysal emrysal deleted the chore-slot-interval-api-v2-event-types branch May 14, 2024 21:51
@ThyMinimalDev
Copy link
Contributor Author

Approved, but would this mean it's theoretically possible to negative slotInterval/after/beforeEventBuffer? Because if a user tries that it may work.. but the results of that I can't predict; won't be nice.

hmm good point, the zod schema we use on web seems to not take this case into account either

here: packages/prisma/zod/eventtype.ts

ill make a follow up pr to change that

@emrysal
Copy link
Contributor

emrysal commented May 14, 2024

Exactly, that's primarily why I approved it anyway but it was good to voice that concern imo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api area: API, enterprise API, access token, OAuth core area: core, team members only event-types area: event types, event-types platform Anything related to our platform plan
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants