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

refactor: v2 event types endpoint paths #14545

Merged
merged 9 commits into from Apr 13, 2024

Conversation

supalarry
Copy link
Contributor

@supalarry supalarry commented Apr 12, 2024

  1. Move "/public/" endpoint from the events.controller.ts to the event-types.controller.ts in commit refactor: move /events/public to /event-types/public/:username/:eventSlug.
    2.1 The signature of URL has changed from passing username and eventSlug as query params to query segments.
    2.2 This part of commit moves input DTO that events expected from platform types to v2 folder, because the type was not used outside of v2, and also now the input DTO does not have username and eventSlug in it because they are in URL.
    2.3 Update "useEventTypesPublic" to point to this endpoint.
    2.4 Document it's return in swagger in this commit.
  2. Fix: in this commit remove Permissions guard for public endpoint to fetch user public events.
  3. Added e2e tests for /event-types/:username/public and /event-types/:username/:eventSlug/public in commit tests: public event types endpoints

Besides e2e tests - confirmed that in the examples app and in cal web app can book and event and then see event in bokings.

@graphite-app graphite-app bot requested a review from a team April 12, 2024 10:57
@dosubot dosubot bot added 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 labels Apr 12, 2024
Copy link
Contributor

github-actions bot commented Apr 12, 2024

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

@graphite-app graphite-app bot requested a review from a team April 12, 2024 10:57
@supalarry supalarry changed the title V2 event types endpoints refactor refactor: v2 event types endpoint paths Apr 12, 2024
@supalarry supalarry removed the request for review from a team April 12, 2024 10:58
Copy link

graphite-app bot commented Apr 12, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (04/12/24)

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

"Add platform team as reviewer" took an action on this PR • (04/12/24)

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

Copy link

deploysentinel bot commented Apr 12, 2024

Current Playwright Test Results Summary

✅ 302 Passing - ⚠️ 13 Flaky

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

(Last updated on 04/13/2024 08:38:26am UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 2ce5f4f

Started: 04/13/2024 08:35:17am 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 -- legacy user Different Locations Tests can add single organizer address location without display location public option
Retry 1Initial Attempt
0.38% (1) 1 / 262 run
failed over last 7 days
2.67% (7) 7 / 262 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 Can manage single schedule
Retry 1Initial Attempt
0.37% (1) 1 / 273 run
failed over last 7 days
25.27% (69) 69 / 273 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
4.71% (12) 12 / 255 runs
failed over last 7 days
30.98% (79) 79 / 255 runs
flaked over last 7 days

📄   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
Retry 1Initial Attempt
0% (0) 0 / 263 runs
failed over last 7 days
40.68% (107) 107 / 263 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% (0) 0 / 263 runs
failed over last 7 days
65.40% (172) 172 / 263 runs
flaked over last 7 days
Popup Tests should be able to reschedule
Retry 1Initial Attempt
-190% (-171) -171 / 90 runs
failed over last 7 days
190% (171) 171 / 90 runs
flaked over last 7 days
Popup Tests should open Routing Forms embed on click
Retry 1Initial Attempt
-190% (-171) -171 / 90 runs
failed over last 7 days
190% (171) 171 / 90 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
-187.78% (-169) -169 / 90 runs
failed over last 7 days
190% (171) 171 / 90 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
-194.32% (-171) -171 / 88 runs
failed over last 7 days
194.32% (171) 171 / 88 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
-194.32% (-171) -171 / 88 runs
failed over last 7 days
194.32% (171) 171 / 88 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
-194.32% (-171) -171 / 88 runs
failed over last 7 days
194.32% (171) 171 / 88 runs
flaked over last 7 days
Popup Tests prendered embed should be loaded and apply the config given to it
Retry 1Initial Attempt
-194.32% (-171) -171 / 88 runs
failed over last 7 days
194.32% (171) 171 / 88 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Inline Iframe Inline Iframe - Configured with Dark Theme
Retry 1Initial Attempt
0.76% (2) 2 / 263 runs
failed over last 7 days
52.85% (139) 139 / 263 runs
flaked over last 7 days

View Detailed Build Results


Copy link
Contributor

github-actions bot commented Apr 12, 2024

📦 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

vercel bot commented Apr 12, 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 Apr 13, 2024 8:25am
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Apr 13, 2024 8:25am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Apr 13, 2024 8:25am
qa-not-in-use ⬜️ Ignored (Inspect) Visit Preview Apr 13, 2024 8:25am

@supalarry supalarry merged commit 8ad80f7 into main Apr 13, 2024
40 checks passed
@supalarry supalarry deleted the v2-event-types-endpoints-refactor branch April 13, 2024 09:47
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

2 participants