-
Notifications
You must be signed in to change notification settings - Fork 9.3k
perf: server-side-data-fetching-for-workflows #20773
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
base: main
Are you sure you want to change the base?
perf: server-side-data-fetching-for-workflows #20773
Conversation
@TusharBhatt1 is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (04/19/25)1 reviewer was added to this PR based on Keith Williams's automation. "Add community label" took an action on this PR • (04/19/25)1 label was added to this PR based on Keith Williams's automation. |
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.
mrge found 1 issue across 4 files. View it in mrge.io
import WorkflowList from "../components/WorkflowListPage"; | ||
|
||
type PageProps = { | ||
filteredList?: Awaited<ReturnType<typeof WorkflowRepository.getFilteredList>>; | ||
hasValidLicense: boolean; |
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.
We are not using filteredList
anywhere here
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.
can you elaborate on what you mean?
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.
FilteringList
is just defined neither passed nor used
); | ||
const _searchParams = await searchParams; | ||
const context = buildLegacyCtx(await headers(), await cookies(), await params, _searchParams); | ||
const session = await getSession(context); |
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.
Q: Is getSession
working correctly? I know this is being used in a few places, but I am not sure if it's working properly. We should getServerSession
more often. Can you test?
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.
Checked ! Works well
import WorkflowList from "../components/WorkflowListPage"; | ||
|
||
type PageProps = { | ||
filteredList?: Awaited<ReturnType<typeof WorkflowRepository.getFilteredList>>; | ||
hasValidLicense: boolean; |
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.
can you elaborate on what you mean?
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.
mrge found 5 issues across 4 files. View them in mrge.io
…//github.com/TusharBhatt1/cal.com into perf/server-side-data-fetching-for-/webflows
</div> | ||
); | ||
}; | ||
|
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.
Unused
What does this PR do?
This PR moves data fetching for /workflows to server side, improving performance and load times.
Visual Demo (For contributors especially)
Before and after :
workflows.mp4
Mandatory Tasks (DO NOT REMOVE)