-
-
Couldn't load subscription status.
- Fork 10.3k
Add link to edge function logs for cron history if cron is using edge function #37531
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
Add link to edge function logs for cron history if cron is using edge function #37531
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
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.
LGTM!
- Tested on preview
| const cronJobRuns = useMemo(() => data?.pages.flatMap((p) => p) || [], [data?.pages]) | ||
| useEffect(() => { | ||
| // Refetch only the first page | ||
| const timerId = setInterval(() => { |
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.
nit: could this be moved to the refetchInternal function of the query?
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.
opting to remove this instead actually - and letting staleTime from the query handle the refetching logic
cause this might be confusing if the user's not on the first page after the interval duration
… function (#37531) * Add link to edge function logs for cron history if cron is using edge function * Patch
Fixes FE-1340
RE Cron history page, if the cron job is using an edge function + the edge function is from the project
Adds a link to the respective edge function's logs page