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

perf: Remove tRPC event call from server-side props #17205

Merged
merged 2 commits into from
Oct 20, 2024

Conversation

keithwillcode
Copy link
Contributor

@keithwillcode keithwillcode commented Oct 20, 2024

What does this PR do?

This is broken off from #17194 (credit to @emrysal) since that PR is in draft and has a bunch of typing errors + it's more widespread changes. Keeping this isolated so we can test the difference in perf.

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • N/A - I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  • Test regular team event types and org event types

@keithwillcode keithwillcode added ready-for-e2e Urgent Created by Linear-GitHub Sync labels Oct 20, 2024
@dosubot dosubot bot added the performance area: performance, page load, slow, slow endpoints, loading screen, unresponsive label Oct 20, 2024
@keithwillcode keithwillcode added core area: core, team members only foundation labels Oct 20, 2024
@graphite-app graphite-app bot requested a review from a team October 20, 2024 19:21
): Promise<string | undefined> {
const eventTypeMetadataQuery = await prisma.eventType.findUnique({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed this extra roundtrip to the DB to get the metadata since we already had it.

Copy link

graphite-app bot commented Oct 20, 2024

Graphite Automations

"Add foundation team as reviewer" took an action on this PR • (10/20/24)

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

emrysal
emrysal previously approved these changes Oct 20, 2024
Copy link
Contributor

@emrysal emrysal left a comment

Choose a reason for hiding this comment

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

I know it works 😎

@keithwillcode keithwillcode enabled auto-merge (squash) October 20, 2024 19:48
Copy link
Contributor

github-actions bot commented Oct 20, 2024

E2E results are ready!

zomars
zomars previously approved these changes Oct 20, 2024
@zomars
Copy link
Member

zomars commented Oct 20, 2024

@emrysal emrysal dismissed stale reviews from zomars and themself via 2ad8839 October 20, 2024 20:45
Copy link

vercel bot commented Oct 20, 2024

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

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Oct 20, 2024 8:45pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Oct 20, 2024 8:45pm

@keithwillcode keithwillcode merged commit dcd07d1 into main Oct 20, 2024
37 checks passed
@keithwillcode keithwillcode deleted the perf/remove-server-side-trpc-get-event branch October 20, 2024 21:07
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 foundation performance area: performance, page load, slow, slow endpoints, loading screen, unresponsive ready-for-e2e Urgent Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants