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: trpc get schedule handler #13586

Merged
merged 2 commits into from
Feb 7, 2024
Merged

refactor: trpc get schedule handler #13586

merged 2 commits into from
Feb 7, 2024

Conversation

supalarry
Copy link
Contributor

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.

Copy link

vercel bot commented Feb 7, 2024

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

Name Status Preview Comments Updated (UTC)
api 🔄 Building (Inspect) Visit Preview Feb 7, 2024 3:12pm
cal 🔄 Building (Inspect) Visit Preview 💬 Add feedback Feb 7, 2024 3:12pm
5 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ai ⬜️ Ignored (Inspect) Visit Preview Feb 7, 2024 3:12pm
cal-demo ⬜️ Ignored (Inspect) Feb 7, 2024 3:12pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Feb 7, 2024 3:12pm
qa ⬜️ Ignored (Inspect) Visit Preview Feb 7, 2024 3:12pm
ui ⬜️ Ignored (Inspect) Visit Preview Feb 7, 2024 3:12pm

Copy link
Contributor

github-actions bot commented Feb 7, 2024

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

ThyMinimalDev
ThyMinimalDev previously approved these changes Feb 7, 2024
Copy link

deploysentinel bot commented Feb 7, 2024

Current Playwright Test Results Summary

✅ 69 Passing - ⚠️ 2 Flaky

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 Details

Running Workflow PR Update on Github Actions

Commit: 5d01d1d

Started: 02/07/2024 03:43:10pm UTC

⚠️ Flakes

📄   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
33.33% (7) 7 / 21 runs
failed over last 7 days
38.10% (8) 8 / 21 runs
flaked over last 7 days
Update Profile Cannot update a users email when existing user has same email (verification enabled)
Retry 1Initial Attempt
0% (0) 0 / 11 runs
failed over last 7 days
45.45% (5) 5 / 11 runs
flaked over last 7 days

View Detailed Build Results


Copy link
Contributor

github-actions bot commented Feb 7, 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
Member

@zomars zomars left a comment

Choose a reason for hiding this comment

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

LGTM

@zomars zomars merged commit 9df9f9b into main Feb 7, 2024
38 checks passed
@zomars zomars deleted the refactor-schedules-handler branch February 7, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core area: core, team members only High priority Created by Linear-GitHub Sync platform Anything related to our platform plan
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants