cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

Lauris/cal 3580 apiv2 schedules endpoints should be client agnostic

Open supalarry opened this issue 1 year ago • 7 comments

What does this PR do?

Fixes # (issue)

Requirement/Documentation

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

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Tests (Unit/Integration/E2E or any other test)
  • This change requires a documentation update

How should this be tested?

  • Are there environment variables that should be set?
  • What are the minimal test data to have?
  • What is expected (happy path) to have (input and output)?
  • Any other important info that could help to test that PR

Mandatory Tasks

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

Checklist

  • I haven't read the contributing guide
  • My code doesn't follow the style guidelines of this project
  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my PR needs changes to the documentation
  • I haven't checked if my changes generate no new warnings
  • 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

supalarry avatar May 03 '24 14:05 supalarry

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

github-actions[bot] avatar May 03 '24 14:05 github-actions[bot]

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

3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ai ⬜️ Ignored (Inspect) Visit Preview May 16, 2024 8:08am
cal ⬜️ Ignored (Inspect) Visit Preview May 16, 2024 8:08am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview May 16, 2024 8:08am

vercel[bot] avatar May 03 '24 14:05 vercel[bot]

📦 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! 🙌

github-actions[bot] avatar May 03 '24 14:05 github-actions[bot]

Current Playwright Test Results Summary

✅ 321 Passing - ⚠️ 24 Flaky

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

(Last updated on 05/16/2024 08:24:35am UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 2251f3ca482930a3195127e01c234ffa25d7a180

Started: 05/16/2024 08:20:02am UTC

⚠️ Flakes

📄   apps/web/playwright/integrations-stripe.e2e.ts • 3 Flakes

Top 1 Common Error Messages

null

3 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Stripe integration Can book a paid booking
Retry 1Initial Attempt
3.43% (7) 7 / 204 runs
failed over last 7 days
15.20% (31) 31 / 204 runs
flaked over last 7 days
Stripe integration Paid booking should be able to be rescheduled
Retry 1Initial Attempt
3.47% (7) 7 / 202 runs
failed over last 7 days
16.34% (33) 33 / 202 runs
flaked over last 7 days
Stripe integration Paid booking should be able to be cancelled
Retry 1Initial Attempt
2.49% (5) 5 / 201 runs
failed over last 7 days
11.94% (24) 24 / 201 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 -- future user can add multiple organizer address
Retry 1Initial Attempt
1.81% (4) 4 / 221 runs
failed over last 7 days
22.62% (50) 50 / 221 runs
flaked over last 7 days
Event Types tests -- future user Different Locations Tests can select 'display on booking page' option when multiple organizer input type are present
Retry 1Initial Attempt
0% (0) 0 / 219 runs
failed over last 7 days
10.96% (24) 24 / 219 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
-0.93% (-2) -2 / 214 runs
failed over last 7 days
61.68% (132) 132 / 214 runs
flaked over last 7 days
Popup Tests should be able to reschedule
Retry 1Initial Attempt
-157.14% (-132) -132 / 84 runs
failed over last 7 days
157.14% (132) 132 / 84 runs
flaked over last 7 days
Popup Tests should open Routing Forms embed on click
Retry 1Initial Attempt
-154.76% (-130) -130 / 84 runs
failed over last 7 days
154.76% (130) 130 / 84 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
-148.81% (-125) -125 / 84 runs
failed over last 7 days
151.19% (127) 127 / 84 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
-154.88% (-127) -127 / 82 runs
failed over last 7 days
154.88% (127) 127 / 82 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
-154.88% (-127) -127 / 82 runs
failed over last 7 days
154.88% (127) 127 / 82 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
-154.88% (-127) -127 / 82 runs
failed over last 7 days
154.88% (127) 127 / 82 runs
flaked over last 7 days
Popup Tests prendered embed should be loaded and apply the config given to it
Retry 1Initial Attempt
-154.88% (-127) -127 / 82 runs
failed over last 7 days
154.88% (127) 127 / 82 runs
flaked over last 7 days
Popup Tests should open on clicking child element
Retry 1Initial Attempt
-151.85% (-123) -123 / 81 runs
failed over last 7 days
151.85% (123) 123 / 81 runs
flaked over last 7 days

📄   apps/web/playwright/profile.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
Update Profile Can update a users email (verification enabled)
Retry 1Initial Attempt
39.92% (97) 97 / 243 runs
failed over last 7 days
31.28% (76) 76 / 243 runs
flaked over last 7 days
Update Profile Can verify the newly added secondary email
Retry 1Initial Attempt
2.45% (6) 6 / 245 runs
failed over last 7 days
21.63% (53) 53 / 245 runs
flaked over last 7 days

📄   packages/app-store/routing-forms/playwright/tests/basic.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Routing Forms Seeded Routing Form Test preview should return correct route
Retry 1Initial Attempt
0.94% (2) 2 / 212 runs
failed over last 7 days
32.55% (69) 69 / 212 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Teams - NonOrg -- legacy Can create a booking for Round Robin EventType
Retry 1Initial Attempt
6.31% (14) 14 / 222 runs
failed over last 7 days
29.73% (66) 66 / 222 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/namespacing.e2e.ts • 4 Flakes

Top 1 Common Error Messages

null

4 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Namespacing Inline Embed Double install Embed Snippet with inline embed using a namespace
Retry 1Initial Attempt
0% (0) 0 / 212 runs
failed over last 7 days
58.49% (124) 124 / 212 runs
flaked over last 7 days
Namespacing Inline Embed Add inline embed using a namespace without reload
Retry 1Initial Attempt
0.47% (1) 1 / 212 run
failed over last 7 days
58.96% (125) 125 / 212 runs
flaked over last 7 days
Namespacing Different namespaces can have different init configs
Retry 1Initial Attempt
0% (0) 0 / 210 runs
failed over last 7 days
58.57% (123) 123 / 210 runs
flaked over last 7 days
Namespacing Inline Embed Double install Embed Snippet with inline embed without a namespace(i.e. default namespace)
Retry 1Initial Attempt
0% (0) 0 / 212 runs
failed over last 7 days
62.26% (132) 132 / 212 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.59% (10) 10 / 218 runs
failed over last 7 days
31.65% (69) 69 / 218 runs
flaked over last 7 days

📄   apps/web/playwright/ab-tests-redirect.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
apps/ A/B tests -- future should render the /getting-started
Retry 1Initial Attempt
0.46% (1) 1 / 217 run
failed over last 7 days
0.92% (2) 2 / 217 runs
flaked over last 7 days

View Detailed Build Results


deploysentinel[bot] avatar May 03 '24 14:05 deploysentinel[bot]

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/[email protected] None 0 15.4 kB nicolo-ribaudo
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@calcom/[email protected] None 0 0 B
npm/@emotion/[email protected] environment 0 30.8 kB emotion-release-bot
npm/@emotion/[email protected] environment 0 7.05 kB emotion-release-bot
npm/@emotion/[email protected] environment 0 18.3 kB emotion-release-bot
npm/@types/[email protected] None 0 12 kB types
npm/@types/[email protected] None 0 9.56 kB types
npm/@types/[email protected] None 0 3 kB types
npm/@types/[email protected] None 0 862 kB types
npm/@types/[email protected] None 0 3.78 kB types
npm/@types/[email protected] None 0 2.95 kB types
npm/@types/[email protected] None 0 4.62 kB types
npm/@types/[email protected] None 0 7.65 kB types
npm/@types/[email protected] None 0 8.58 kB types
npm/@types/[email protected] None 0 6.74 kB types
npm/@webassemblyjs/[email protected] None 0 5.14 kB xtuc
npm/@webassemblyjs/[email protected] None 0 5.4 kB xtuc
npm/@webassemblyjs/[email protected] None 0 16 kB xtuc
npm/@webassemblyjs/[email protected] None 0 7.31 kB xtuc
npm/@xtuc/[email protected] None 0 8.57 kB xtuc
npm/@xtuc/[email protected] None 0 190 kB xtuc
npm/[email protected] environment, filesystem, shell 0 13 kB fengmk2
npm/[email protected] None 0 20.1 kB mahdyar
npm/[email protected] None 0 22.2 kB kevinbeaty
npm/[email protected] None 0 4.42 kB blakeembrey
npm/[email protected] None 0 63.9 kB mikemcl
npm/[email protected] None 0 99 kB fanatid
npm/[email protected] None 0 1.33 kB feedic
npm/[email protected] None 0 3.52 kB indutny
npm/[email protected] None 0 4.83 kB dcousens
npm/[email protected] unsafe 0 4.51 kB sindresorhus
npm/[email protected] None 0 12.3 kB dougwilson
npm/[email protected] None 0 4.05 kB stevenvachon
npm/[email protected] None 0 25.9 kB urthen
npm/[email protected] None 0 4.96 kB richienb
npm/[email protected] None 0 14.2 kB samccone
npm/[email protected] None 0 8.55 kB lukeed
npm/[email protected] None 0 16 kB jongleberry
npm/[email protected] unsafe 0 5.14 kB simenb
npm/[email protected] None 0 17 kB jorgebucaran
npm/[email protected] None 0 4.01 kB novemberborn
npm/[email protected] None 0 228 kB fatfisz
npm/[email protected] None 0 4.79 kB substack
npm/[email protected] None 0 3.94 kB natevw
npm/[email protected] None 0 23.1 kB dougwilson
npm/[email protected] None 0 3.93 kB sindresorhus
npm/[email protected] None 0 66 kB feedic
npm/[email protected] None 0 17.5 kB mathias
npm/[email protected] None 0 1.25 MB faddee
npm/[email protected] environment, eval 0 27.1 kB dougwilson
npm/[email protected] filesystem 0 9.02 kB dougwilson
npm/[email protected] None 0 3.77 kB sindresorhus
npm/[email protected] None 0 3.21 kB kashey
npm/[email protected] None 0 17.3 kB dcporter
npm/[email protected] None 0 5.8 kB developit
npm/[email protected] None 0 11.4 kB feedic
npm/[email protected] None 0 5.47 kB raynos
npm/[email protected] None 0 13.6 kB komagata
npm/[email protected] None 0 6.26 kB dougwilson
npm/[email protected] None 0 53.6 kB kikobeats
npm/[email protected] None 0 7.86 kB dougwilson
npm/[email protected] None 0 3.66 kB dougwilson
npm/[email protected] filesystem 0 10.8 kB dougwilson
npm/[email protected] None 0 59.8 kB cowboy
npm/[email protected] filesystem 0 5.27 kB jsdnxx
npm/[email protected] None 0 5.88 kB dougwilson
npm/[email protected] None 0 10.1 kB dougwilson
npm/[email protected] None 0 16.7 kB ljharb
npm/[email protected] None 0 18.1 kB nickfitzgerald
npm/[email protected] None 0 12.8 kB ljharb
npm/[email protected] None 0 124 kB mathias
npm/[email protected] None 0 13.1 kB webreflection
npm/[email protected] None 0 9.3 kB isaacs
npm/[email protected] None 0 42.1 kB whitequark
npm/[email protected] None 0 4.05 kB qix
npm/[email protected] None 0 28.9 kB ljharb
npm/[email protected] None 0 3.28 kB sindresorhus
npm/[email protected] None 0 2.88 kB jongleberry
npm/[email protected] None 0 4.41 kB hughsk
npm/[email protected] None 0 6.93 kB doowb
npm/[email protected] environment, filesystem, unsafe 0 1.91 MB pi0
npm/[email protected] None 0 26.1 kB kriszyp
npm/[email protected] None 0 23.2 kB lukeed
npm/[email protected] eval, filesystem 0 18.4 kB sokra
npm/[email protected] None 0 14 kB jdalton
npm/[email protected] None 0 20.1 kB jdalton
npm/[email protected] None 0 75.8 kB jdalton
npm/[email protected] None 0 176 kB pieroxy
npm/[email protected] None 0 11.1 kB dougwilson
npm/[email protected] None 0 4.89 kB dougwilson
npm/[email protected] network 0 5.29 kB dougwilson
npm/[email protected] environment, filesystem 0 51.7 kB broofa
npm/[email protected] None 0 1.55 kB cwmma
npm/[email protected] None 0 4.76 kB indutny
npm/[email protected] None 0 5.63 kB lauriro
npm/[email protected] None 0 27.4 kB dougwilson
npm/[email protected] None 0 298 kB suguru03
npm/[email protected] None 0 1.66 MB davidlehn
npm/[email protected] None 0 16.3 kB broofa
npm/[email protected] None 0 21.2 kB sindresorhus
npm/[email protected] None 0 97.2 kB ljharb
npm/[email protected] None 0 26.5 kB ljharb
npm/[email protected] None 0 19.1 kB indutny
npm/[email protected] None 0 7.54 kB dougwilson
npm/[email protected] None 0 10.3 kB dougwilson
npm/[email protected] None 0 11.3 kB meryn
npm/[email protected] unsafe 0 13.5 kB danez
npm/[email protected] None 0 27.2 kB evilebottnawi
npm/[email protected] None 0 3.17 kB cwmma
npm/[email protected] None 0 15.3 kB cwmma
npm/[email protected] None 0 6.96 kB lpinca
npm/[email protected] None 0 8.37 kB feross
npm/[email protected] None 0 8.46 kB dougwilson
npm/[email protected] None 0 49.2 kB mathias
npm/[email protected] None 0 9.48 kB ionicabizau
npm/[email protected] None 0 31.4 kB stevenvachon
npm/[email protected] None 0 18.9 kB tim-kos
npm/[email protected] None 0 9.44 kB matteo.collina
npm/[email protected] None 0 4.03 kB wesleytodd
npm/[email protected] None 0 45 kB ljharb
npm/[email protected] None 0 31.8 kB rich_harris
npm/[email protected] None 0 23.6 kB eriwen
npm/[email protected] None 0 12.1 kB dougwilson
npm/[email protected] None 0 46.9 kB sokra
npm/[email protected] filesystem 0 3.29 kB sindresorhus
npm/[email protected] None 0 2.77 kB daaku
npm/[email protected] None 0 4.68 kB dougwilson
npm/[email protected] None 0 68 kB dsagal2
npm/[email protected] None 0 5.01 kB google-wombot
npm/[email protected] None 0 25.7 kB google-wombot
npm/[email protected] None 0 5.98 kB google-wombot
npm/[email protected] None 0 4.31 kB dougwilson
npm/[email protected] None 0 24.2 kB ariaminaei
npm/[email protected] None 0 3.72 kB jaredhanson
npm/[email protected] None 0 8.75 kB dougwilson
npm/[email protected] None 0 91.3 kB sokra
npm/[email protected] network 0 57.4 kB jakechampion
npm/[email protected] None 0 0 B
npm/[email protected] None 0 667 kB colinmcd94

🚮 Removed packages: npm/@0no-co/[email protected], npm/@47ng/[email protected], npm/@achrinza/[email protected], npm/@achrinza/[email protected], npm/@achrinza/[email protected], npm/@adobe/[email protected], npm/@algora/[email protected], npm/@ampproject/[email protected], npm/@antfu/[email protected], npm/@anthropic-ai/[email protected], npm/@apidevtools/[email protected], npm/@apidevtools/[email protected], npm/@apidevtools/[email protected], npm/@apidevtools/[email protected], npm/@ardatan/[email protected], npm/@aw-web-design/[email protected], npm/@aws-crypto/[email protected], npm/@aws-crypto/[email protected], npm/@aws-crypto/[email protected], npm/@aws-crypto/[email protected], npm/@aws-crypto/[email protected], npm/@aws-crypto/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@azure/[email protected], npm/@azure/[email protected], npm/@azure/[email protected], npm/@azure/[email protected], npm/@azure/[email protected], npm/@azure/[email protected], npm/@azure/[email protected], npm/@azure/[email protected], npm/@azure/[email protected], npm/@azure/[email protected], npm/@azure/[email protected], npm/@azure/[email protected], npm/@azure/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@changesets/[email protected], npm/@daily-co/[email protected], npm/@deploysentinel/[email protected], npm/@deploysentinel/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@esbuild/[email protected], npm/@eslint-community/[email protected], npm/@faker-js/[email protected], npm/@humanwhocodes/[email protected], npm/@isaacs/[email protected], npm/@jest/[email protected], npm/@jest/[email protected], npm/@jest/[email protected], npm/@jridgewell/[email protected], npm/@jridgewell/[email protected], npm/@jridgewell/[email protected], npm/@jsdevtools/[email protected], npm/@ljharb/[email protected], npm/@manypkg/[email protected], npm/@manypkg/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@node-ipc/[email protected], npm/@nodelib/[email protected], npm/@nodelib/[email protected], npm/@oclif/[email protected], npm/@oclif/[email protected], npm/@oclif/[email protected], npm/@oclif/[email protected], npm/@oclif/[email protected], npm/@oclif/[email protected], npm/@paralleldrive/[email protected], npm/@playwright/[email protected], npm/@prisma/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@rollup/[email protected], npm/@sentry-internal/[email protected], npm/@sentry-internal/[email protected], npm/@sentry-internal/[email protected], npm/@sentry/[email protected], npm/@sentry/[email protected], npm/@sentry/[email protected], npm/@sentry/[email protected], npm/@sentry/[email protected], npm/@sentry/[email protected], npm/@sinclair/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@snaplet/[email protected], npm/@stablelib/[email protected], npm/@stablelib/[email protected], npm/@stablelib/[email protected], npm/@swc/[email protected], npm/@swc/[email protected], npm/@testing-library/[email protected], npm/@tootallnate/[email protected], npm/@trpc/[email protected], npm/@trpc/[email protected], npm/@tsconfig/[email protected], npm/@tsconfig/[email protected], npm/@tsconfig/[email protected], npm/@tsconfig/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@vitest/[email protected], npm/@vitest/[email protected], npm/@vitest/[email protected], npm/@vitest/[email protected], npm/@vitest/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

socket-security[bot] avatar May 10 '24 17:05 socket-security[bot]

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

socket-security[bot] avatar May 10 '24 17:05 socket-security[bot]

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.

"Add platform 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.

"Add consumer 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.

graphite-app[bot] avatar May 14 '24 15:05 graphite-app[bot]

schedules refactor: before & after

Creating schedule

1. Before

  1. availabilities days are numbers instead of names
  2. start and end times must be dates even though api only cares about hours and minutes
  3. no way to pass overrides - dates and times when availabilities change

Request body:

{
  "name": "working hours",
  "timeZone": "Europe/Rome",
  "availabilities": [
    {
      "days": [
        1,
        2,
        3,
        4,
        5
      ],
      "startTime": "1970-01-01T09:00:00.289Z",
      "endTime": "1970-01-01T17:00:00.289Z"
    }
  ],
  "isDefault": true
}

Response:

{
  "status": "success",
  "data": {
    "id": 256,
    "name": "working hours",
    "isManaged": false,
    "workingHours": [
      {
        "days": [
          1,
          2,
          3,
          4,
          5
        ],
        "startTime": 540,
        "endTime": 1020,
        "userId": 480
      }
    ],
    "schedule": [
      {
        "id": 462,
        "userId": 480,
        "eventTypeId": null,
        "days": [
          1,
          2,
          3,
          4,
          5
        ],
        "startTime": "1970-01-01T09:00:00.000Z",
        "endTime": "1970-01-01T17:00:00.000Z",
        "date": null,
        "scheduleId": 256
      }
    ],
    "availability": [
      [],
      [
        {
          "start": "2024-05-15T09:00:00.000Z",
          "end": "2024-05-15T17:00:00.000Z"
        }
      ],
      [
        {
          "start": "2024-05-15T09:00:00.000Z",
          "end": "2024-05-15T17:00:00.000Z"
        }
      ],
      [
        {
          "start": "2024-05-15T09:00:00.000Z",
          "end": "2024-05-15T17:00:00.000Z"
        }
      ],
      [
        {
          "start": "2024-05-15T09:00:00.000Z",
          "end": "2024-05-15T17:00:00.000Z"
        }
      ],
      [
        {
          "start": "2024-05-15T09:00:00.000Z",
          "end": "2024-05-15T17:00:00.000Z"
        }
      ],
      []
    ],
    "timeZone": "Europe/Rome",
    "dateOverrides": [],
    "isDefault": true,
    "isLastSchedule": true,
    "readOnly": false
  }
}

2. After

  1. availabilities body key has been renamed to availability
  2. Days are words e.g. Sunday instead of number e.g. 0
  3. Overrides can be passed.
Screenshot 2024-05-14 at 12 21 46

Updating schedule

1. Before

  1. To update availabilities they had to be passed under body.schedule in data format different than when creating a schedule.
  2. The response did not include schedule availabilities

Request body:

{
  "schedule": [
      [],
      [{ "start": "2022-01-01T10:00:00.000Z", "end": "2022-01-02T16:00:00.000Z" }],
      [],
      [],
      [],
      [],
      []
    ]
}

Response:

{
  "status": "success",
  "data": {
    "schedule": {
      "userId": 480,
      "name": "working hours",
      "id": 256
    },
    "isDefault": true
  }
}

2. After

  1. Shape is exactly the same as when creating schedule
  2. Response includes availabilities and is in same shape as when creating a schedule
Screenshot 2024-05-14 at 12 25 24

Fetching schedule

1. Before

Response is in same shape as when creating.

2. After

Response is in same shape as wen creating and updating. Screenshot 2024-05-14 at 12 23 35

supalarry avatar May 15 '24 10:05 supalarry