perf: don't fetch all the hosts #18319 followup#19021
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (01/31/25)1 reviewer was added to this PR based on Keith Williams's automation. "Add platform team as reviewer" took an action on this PR • (01/31/25)1 reviewer was added to this PR based on Keith Williams's automation. |
E2E results are ready! |
Udit-takkar
left a comment
There was a problem hiding this comment.
FYI My original PR was just for the public get event type function.
So only @get("/:username/:eventSlug/public") has to be updated
| data: | ||
| data && data.length > 0 | ||
| ? transformApiEventTypeForAtom(data[0], props.entity, props.defaultFormValues) | ||
| ? transformApiEventTypeForAtom(data[0], props.entity, props.defaultFormValues, true) |
There was a problem hiding this comment.
transformApiEventTypeForAtom is always call with limitHostsToThree, shouldn't limitHostsToThree be controlled by a prop given to the booker platform wrapper ?
Hi @Udit-takkar the changes you made in the component -- using subsetOfUsers and subSetOfHosts instead of user and hosts broke our booker atom, so we are just adding these to the API's the the booker-atom calls. |
supalarry
left a comment
There was a problem hiding this comment.
Great job ! : ) Have just tiny comment below.
* perf: don't fetch all the hosts calcom#18319 followup * undo for user events * undo for regular user events * fix: limitHostsToThree -> hostsLimit * accepting hostLimit prop in <Booker /> * Update booking.tsx * hostLimit -> hostsLimit
What does this PR do?
https://www.loom.com/share/d4823e6d722d44fc86b7150297580b0a
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Checklist