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: v2 API enable updating event type schedule #15803

Merged
merged 14 commits into from
Jul 22, 2024

Conversation

supalarry
Copy link
Contributor

What does this PR do?

Allows passing scheduleId to create-event-type.input.ts and update-event-type.input.ts that will connect the event-type to existing schedule.

Refactors event-type.output.ts - return scheduleId instead of a nested schedule object.

Preparation

platform-libraries have been published to version 0.0.20 and the changes are in commit chore: enable passing scheduleId to event-types create handler

Tests

event-types.controller.e2e-spec.ts has been updated to test creating and updating an event-type with scheduleId specified.

npx jest apps/api/v2/src/ee/event-types/event-types_2024_06_14/controllers/event-types.controller.e2e-spec.ts --config jest-e2e.json

@keithwillcode keithwillcode added core area: core, team members only platform Anything related to our platform plan labels Jul 16, 2024
@dosubot dosubot bot added api area: API, enterprise API, access token, OAuth ✨ feature New feature or request labels Jul 16, 2024
Copy link

vercel bot commented Jul 16, 2024

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

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ai ⬜️ Ignored (Inspect) Visit Preview Jul 22, 2024 11:16am
cal ⬜️ Ignored (Inspect) Visit Preview Jul 22, 2024 11:16am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Jul 22, 2024 11:16am

@supalarry supalarry requested a review from a team July 16, 2024 16:55
@graphite-app graphite-app bot requested review from a team July 16, 2024 16:57
@supalarry supalarry removed request for a team July 16, 2024 16:58
Copy link

graphite-app bot commented Jul 16, 2024

Graphite Automations

"Add foundation team as reviewer" took an action on this PR • (07/16/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 • (07/16/24)

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

Copy link

socket-security bot commented Jul 19, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Telemetry npm/next@13.5.6
  • Note: Can be disabled by setting the environment variable NEXT_TELEMETRY_DISABLED=1 . See https://nextjs.org/telemetry for more information
🚫
Install scripts npm/@nestjs/core@10.3.10
  • Install script: postinstall
  • Source: opencollective || exit 0
🚫
Telemetry npm/next@14.2.5
  • Note: Can be disabled by setting the environment variable NEXT_TELEMETRY_DISABLED=1 . See https://nextjs.org/telemetry for more information
🚫
Install scripts npm/@sentry/cli@2.32.2
  • Install script: postinstall
  • Source: node ./scripts/install.js
🚫

View full report↗︎

Next steps

What is telemetry?

This package contains telemetry which tracks how it is used.

Most telemetry comes with settings to disable it. Consider disabling telemetry if you do not want to be tracked.

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/next@13.5.6
  • @SocketSecurity ignore npm/@nestjs/core@10.3.10
  • @SocketSecurity ignore npm/next@14.2.5
  • @SocketSecurity ignore npm/@sentry/cli@2.32.2

ThyMinimalDev
ThyMinimalDev previously approved these changes Jul 22, 2024
Copy link
Contributor

github-actions bot commented Jul 22, 2024

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

Eighty-four Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/apps 277.25 KB 504.91 KB 144.26% (🟢 -1.98%)
/apps/[slug] 294.63 KB 522.29 KB 149.22% (🟢 -2.04%)
/apps/[slug]/[...pages] 587.05 KB 814.71 KB 232.77% (🟢 -1.59%)
/apps/categories 254.3 KB 481.96 KB 137.70% (🟢 -1.78%)
/apps/categories/[category] 259.11 KB 486.76 KB 139.08% (🟢 -2.06%)
/apps/installation/[[...step]] 467.13 KB 694.79 KB 198.51% (🔴 +85.56%)
/apps/installed/[category] 278.23 KB 505.89 KB 144.54% (🟢 -1.82%)
/auth/saml-idp 12.22 KB 239.88 KB 68.54% (🟢 -20.80%)
/availability 426.65 KB 654.31 KB 186.95% (🟢 -1.65%)
/availability/[schedule] 410.52 KB 638.18 KB 182.34% (🟢 -1.66%)
/booking/[uid] 236.51 KB 464.17 KB 132.62% (🟡 +0.15%)
/booking/[uid]/embed 236.52 KB 464.17 KB 132.62% (🟡 +0.15%)
/bookings/[status] 324.31 KB 551.96 KB 157.70% (🟢 -1.68%)
/enterprise 254.35 KB 482.01 KB 137.72% (🟢 -1.79%)
/event-types 559.66 KB 787.31 KB 224.95% (🟢 -1.63%)
/event-types/[type] 435.43 KB 663.09 KB 189.45% (🟢 -1.74%)
/getting-started/[[...step]] 448.15 KB 675.8 KB 193.09% (🟡 +10.72%)
/insights 474.3 KB 701.95 KB 200.56% (🟢 -1.79%)
/more 253.86 KB 481.52 KB 137.58% (🟢 -1.79%)
/settings/admin 260.33 KB 487.99 KB 139.42% (🟢 -1.76%)
/settings/admin/apps 273.71 KB 501.37 KB 143.25% (🟢 -1.75%)
/settings/admin/apps/[category] 273.7 KB 501.35 KB 143.24% (🟢 -1.75%)
/settings/admin/flags 264.16 KB 491.82 KB 140.52% (🟢 -1.76%)
/settings/admin/impersonation 260.72 KB 488.38 KB 139.54% (🟢 -1.76%)
/settings/admin/lockedSMS 281.82 KB 509.47 KB 145.56% (🟢 -1.73%)
/settings/admin/lockedSMS/lockedSMSView 119.52 KB 347.17 KB 99.19% (🟢 -0.15%)
/settings/admin/oAuth 272.44 KB 500.1 KB 142.88% (🟢 -1.75%)
/settings/admin/oAuth/oAuthView 95.41 KB 323.07 KB 92.30% (🟢 -0.20%)
/settings/admin/orgMigrations/_OrgMigrationLayout 249.11 KB 476.77 KB 136.22% (🟢 -1.80%)
/settings/admin/orgMigrations/moveTeamToOrg 299.03 KB 526.69 KB 150.48% (🟢 -1.73%)
/settings/admin/orgMigrations/moveUserToOrg 318.86 KB 546.52 KB 156.15% (🟢 -1.71%)
/settings/admin/orgMigrations/removeTeamFromOrg 298.8 KB 526.45 KB 150.42% (🟢 -1.74%)
/settings/admin/orgMigrations/removeUserFromOrg 298.81 KB 526.46 KB 150.42% (🟢 -1.74%)
/settings/admin/organizations 262.22 KB 489.87 KB 139.96% (🟢 -1.76%)
/settings/admin/organizations/[id]/edit 260.88 KB 488.53 KB 139.58% (🟢 -1.76%)
/settings/admin/users 262.99 KB 490.64 KB 140.18% (🟢 -1.76%)
/settings/admin/users/[id]/edit 392.19 KB 619.85 KB 177.10% (🟢 -1.72%)
/settings/admin/users/add 391.86 KB 619.52 KB 177.00% (🟢 -1.72%)
/settings/billing 260.54 KB 488.19 KB 139.48% (🟢 -1.76%)
/settings/developer/api-keys 264.93 KB 492.59 KB 140.74% (🟢 -1.76%)
/settings/developer/webhooks 265.11 KB 492.76 KB 140.79% (🟢 -1.76%)
/settings/developer/webhooks/[id] 266.09 KB 493.74 KB 141.07% (🟢 -1.74%)
/settings/developer/webhooks/new 266.11 KB 493.77 KB 141.08% (🟢 -1.75%)
/settings/my-account/appearance 313.55 KB 541.21 KB 154.63% (🟢 -1.75%)
/settings/my-account/calendars 271.96 KB 499.61 KB 142.75% (🟢 -1.80%)
/settings/my-account/conferencing 272.86 KB 500.52 KB 143.00% (🟢 -1.79%)
/settings/my-account/general 376.04 KB 603.7 KB 172.49% (🟢 -1.76%)
/settings/my-account/out-of-office 265.56 KB 493.22 KB 140.92% (🟢 -1.76%)
/settings/my-account/profile 408.56 KB 636.22 KB 181.78% (🟢 -1.73%)
/settings/organizations/[id]/about 159.7 KB 387.36 KB 110.67% (🟡 +0.49%)
/settings/organizations/[id]/add-teams 159.7 KB 387.35 KB 110.67% (🟡 +0.49%)
/settings/organizations/admin-api 260.49 KB 488.14 KB 139.47% (🟢 -1.76%)
/settings/organizations/appearance 122.37 KB 350.03 KB 100.01% (🟢 -48.01%)
/settings/organizations/billing 260.57 KB 488.23 KB 139.49% (🟢 -1.76%)
/settings/organizations/dsync 293.19 KB 520.85 KB 148.81% (🟢 -1.76%)
/settings/organizations/general 348.88 KB 576.54 KB 164.73% (🟢 -1.76%)
/settings/organizations/members 400.05 KB 627.71 KB 179.35% (🟢 -1.75%)
/settings/organizations/new 159.71 KB 387.36 KB 110.68% (🟡 +0.48%)
/settings/organizations/privacy 266.09 KB 493.75 KB 141.07% (🟢 -1.76%)
/settings/organizations/profile 417.1 KB 644.75 KB 184.22% (🟡 +2.84%)
/settings/organizations/sso 271.16 KB 498.82 KB 142.52% (🟢 -1.76%)
/settings/organizations/teams/other 261.4 KB 489.05 KB 139.73% (🟢 -1.76%)
/settings/organizations/teams/other/[id]/appearance 273.31 KB 500.96 KB 143.13% (🟢 -1.71%)
/settings/organizations/teams/other/[id]/members 268 KB 495.66 KB 141.62% (🟢 -1.76%)
/settings/organizations/teams/other/[id]/profile 471.78 KB 699.43 KB 199.84% (🟢 -1.74%)
/settings/platform 258.96 KB 486.62 KB 139.03% (🟢 -1.78%)
/settings/platform/new 120.72 KB 348.37 KB 99.53% (🟡 +0.52%)
/settings/platform/oauth-clients/[clientId]/edit 257.27 KB 484.92 KB 138.55% (🟢 -1.78%)
/settings/platform/oauth-clients/create 256.41 KB 484.06 KB 138.30% (🟢 -1.78%)
/settings/security/impersonation 265.74 KB 493.4 KB 140.97% (🟢 -1.76%)
/settings/security/password 303.93 KB 531.59 KB 151.88% (🟢 -1.73%)
/settings/security/sso 270.61 KB 498.27 KB 142.36% (🟢 -1.76%)
/settings/security/two-factor-auth 269.22 KB 496.88 KB 141.97% (🟢 -1.76%)
/settings/teams 260.07 KB 487.72 KB 139.35% (🟢 -1.76%)
/settings/teams/[id]/appearance 273.3 KB 500.95 KB 143.13% (🟢 -1.71%)
/settings/teams/[id]/billing 260.57 KB 488.23 KB 139.49% (🟢 -1.76%)
/settings/teams/[id]/members 378.12 KB 605.78 KB 173.08% (🟢 -1.75%)
/settings/teams/[id]/profile 472.61 KB 700.26 KB 200.08% (🟢 -1.73%)
/settings/teams/new 193.05 KB 420.71 KB 120.20% (🟢 -1.81%)
/teams 254.09 KB 481.74 KB 137.64% (🟢 -1.78%)
/upgrade 254.21 KB 481.87 KB 137.68% (🟢 -1.79%)
/video/[uid] 291.31 KB 518.97 KB 148.28% (🟢 -0.15%)
/workflows 286.11 KB 513.77 KB 146.79% (🟢 -1.73%)
/workflows/[workflow] 414.4 KB 642.06 KB 183.45% (🟢 -1.51%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

Copy link

socket-security bot commented Jul 22, 2024

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

Package New capabilities Transitives Size Publisher
npm/@calcom/platform-libraries@0.0.2 environment, network, unsafe 0 3.55 MB morgan-calcom
npm/@calcom/platform-libraries@0.0.20 environment, network, unsafe 0 3.66 MB lauris-cal
npm/@golevelup/ts-jest@0.4.0 None 0 20.1 kB wonderpanda
npm/@langchain/core@0.1.63 Transitive: environment, filesystem, network, shell +28 29 MB jacoblee93
npm/@langchain/openai@0.0.14 Transitive: environment, network +13 26.2 MB jacoblee93
npm/@microsoft/microsoft-graph-types-beta@0.42.0-preview None 0 3.41 MB microsoftgraph
npm/@nestjs/cli@10.4.2 Transitive: environment, eval, filesystem, network, shell, unsafe +35 4.42 MB nestjscore
npm/@nestjs/common@10.3.10 None +1 494 kB nestjscore
npm/@nestjs/config@3.2.3 environment, filesystem +1 63.4 kB nestjscore
npm/@nestjs/core@10.3.10 environment, unsafe Transitive: filesystem, network, shell +4 773 kB nestjscore
npm/@nestjs/jwt@10.2.0 None +12 220 kB nestjscore
npm/@nestjs/passport@10.0.3 None 0 21.2 kB nestjscore
npm/@nestjs/platform-express@10.3.10 network Transitive: environment, filesystem, unsafe +23 507 kB nestjscore
npm/@nestjs/schematics@10.1.2 Transitive: eval, network +11 2.36 MB nestjscore
npm/@nestjs/swagger@7.4.0 Transitive: environment, eval, filesystem +4 3.43 MB nestjscore
npm/@nestjs/testing@10.3.10 None 0 34.7 kB nestjscore
npm/@nestjs/throttler@5.2.0 None 0 203 kB nestjscore
npm/@sentry/nextjs@8.19.0 environment, filesystem, network Transitive: eval, shell, unsafe +221 139 MB sentry-bot
npm/@t3-oss/env-nextjs@0.6.1 environment +1 60.1 kB juliusmarminge
npm/@types/cookie-parser@1.4.7 None 0 5.67 kB types
npm/@types/fs-extra@11.0.4 None +1 42.5 kB types
npm/@types/jest@29.5.12 Transitive: environment +10 511 kB types
npm/@types/luxon@3.4.2 None 0 120 kB types
npm/@types/mailparser@3.4.4 None +3 2.52 MB types
npm/@types/passport-jwt@3.0.13 None +3 71.7 kB types
npm/@types/supertest@2.0.16 None +3 40.5 kB types
npm/bcryptjs@2.4.3 None 0 221 kB dcode
npm/body-parser@1.20.2 network Transitive: filesystem, unsafe +7 136 kB dougwilson
npm/class-transformer@0.5.1 None 0 776 kB typestack-release-bot
npm/class-validator@0.14.1 None +2 13.5 MB typestack-release-bot
npm/connect@3.7.0 environment, network Transitive: filesystem +11 229 kB dougwilson
npm/cookie-parser@1.4.6 None +2 34.1 kB dougwilson
npm/dotenv@16.4.5 environment, filesystem 0 79.1 kB motdotla
npm/fs-extra@11.2.0 Transitive: filesystem +1 74.7 kB ryanzim
npm/googleapis@84.0.0 Transitive: environment, filesystem, network, shell +18 93.7 MB google-wombot
npm/helmet@7.1.0 None 0 102 kB evanhahn
npm/http-proxy-middleware@2.0.6 network +3 314 kB chimurai
npm/http@0.0.1-security None 0 464 B andreeleuterio
npm/ioredis@5.4.1 network +4 805 kB ioredis-robot
npm/jest@29.7.0 Transitive: environment, eval, filesystem, network, shell, unsafe +93 3.46 MB simenb
npm/langchain@0.1.37 Transitive: environment, filesystem, network, shell +60 42.6 MB basproul
npm/luxon@3.4.4 None 0 4.33 MB icambron
npm/mailparser@3.7.1 Transitive: environment, filesystem, network, shell +28 4.58 MB andris
npm/nest-winston@1.10.0 environment +1 71.3 kB gremo
npm/nestjs-throttler-storage-redis@0.4.4 None +1 363 kB kkoomen
npm/next-api-middleware@1.0.1 Transitive: environment +2 85.9 kB htunnicliff
npm/next-auth@4.24.7 environment, network Transitive: filesystem, shell, unsafe +22 1.2 GB thvu
npm/next-axiom@0.17.0 environment, network +1 428 kB lukasmalkmus
npm/next-swagger-doc@0.3.6 Transitive: environment, filesystem, network, shell +23 4.85 MB jellydn
npm/next-validations@0.2.1 eval 0 273 kB jellydn
npm/next@13.5.6 environment, filesystem, network, shell, unsafe +25 1.12 GB vercel-release-bot
npm/node-mocks-http@1.15.0 environment, network Transitive: eval, filesystem +21 374 kB eugef
npm/supports-color@8.1.1 None 0 8.45 kB sindresorhus
npm/tzdata@1.0.40 None 0 444 kB rogierschouten

🚮 Removed packages: npm/@types/detect-port@1.3.5, npm/@types/mime-types@2.1.4, npm/@types/node@16.9.1, npm/typescript@5.5.3

View full report↗︎

@ThyMinimalDev ThyMinimalDev merged commit de2f51e into main Jul 22, 2024
36 of 37 checks passed
@ThyMinimalDev ThyMinimalDev deleted the enable-schedule-id-for-event-type branch July 22, 2024 17:09
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 ✨ feature New feature or request platform Anything related to our platform plan ready-for-e2e
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants