-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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: trpc get schedule handler #13586
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
5 Ignored Deployments
|
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link. |
Current Playwright Test Results Summary✅ 69 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 02/07/2024 03:45:43pm UTC) Run DetailsRunning Workflow PR Update on Github Actions Commit: 5d01d1d Started: 02/07/2024 03:43:10pm UTC
|
|
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 1 • Initial Attempt |
33.33% (7)7 / 21 runsfailed over last 7 days |
38.10% (8)8 / 21 runsflaked over last 7 days |
Update Profile Cannot update a users email when existing user has same email (verification enabled)
Retry 1 • Initial Attempt |
0% (0)0 / 11 runsfailed over last 7 days |
45.45% (5)5 / 11 runsflaked over last 7 days |
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In packages/trpc/server/routers/viewer/availability/schedule/get.handler.ts extract the logic that transforms schedule to return workingHours, availability and dateOverrides to the client into separate functions in packages/lib/schedules/client/transformers.ts.
Then re-use these functions. It is done because platform team needs functions from packages/lib/schedules/client/transformers.ts in order to transform schedule returned to the Availability atom.