-
Notifications
You must be signed in to change notification settings - Fork 166
Rerun on latest version creates a new run #1862
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?
Conversation
|
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.
Pull request overview
This PR fixes an issue where retrying a flow run on the latest version was incorrectly updating the existing run instead of creating a new one. The fix changes the backend logic to duplicate the flow run with the updated version and updates the frontend to refresh the runs list after retry.
Changes:
- Backend service now creates a new flow run instead of updating the existing one when retrying on latest version
- Frontend refetch functionality added to refresh runs table after retry operation
- Function renamed from
updateFlowRunToLatestFlowVersionIdAndReturnPayloadtoduplicateFlowRunWithUpdatedVersionto reflect new behavior
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/server/api/src/app/flows/flow-run/flow-run-service.ts | Changed retry logic to create a new flow run instead of updating existing one |
| packages/react-ui/src/app/routes/runs/index.tsx | Added refetch prop to runs table columns |
| packages/react-ui/src/app/features/home/runs-table/runs-table.tsx | Passed refetch function to table columns |
| packages/react-ui/src/app/features/home/lib/home-hooks.ts | Exposed refetchRuns function from dashboard data hook |
| packages/react-ui/src/app/features/home/components/home-operational-view.tsx | Passed refetch function to HomeRunsTable component |
| packages/react-ui/src/app/features/flow-runs/hooks/useRunsTableColumns.tsx | Updated retry success handler to refetch runs instead of updating row in place |
Comments suppressed due to low confidence (1)
packages/react-ui/src/app/features/flow-runs/hooks/useRunsTableColumns.tsx:239
- The useMemo dependency array should include 'durationEnabled' and 'refetch' since these values affect the memoized columns. Missing dependencies can lead to stale closures and incorrect behavior when these values change.
[mutate, stopRun],
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.



Fixes OPS-2602.