prefect: Copy to New Run Request in UI shows inconsistent parameters
First check
- I added a descriptive title to this issue.
- I used the GitHub search to find a similar issue and didn’t find it.
- I searched the Prefect documentation for this issue.
- I checked that this issue is related to Prefect and not one of its dependencies.
Bug summary
In the UI when you select the three dots in the top right you have the option “Copy to new run”. When you do that presumably you are presented with a form to create a new flow run for the same deployment and presumably with the same parameters. The run form that is presented defaults to having the toggle for parameters set to ‘Custom’ and the parameters are each set to their default values as defined in the flow code and NOT the parameters from the run. I assume this IS NOT the expected behavior. If you change the toggle to JSON you WILL see the parameters from the run being copied. I assume this IS the expected behavior.
Reproduction
Create a flow with a parameter that has a default value defined in the flow code. Run that flow with a value for parameter other than the default value. Go to the page for that flow run. Click ‘Copy to new run’. Resulting page will show toggle in Parameter section set to ‘Custom’ and your parameter will be filled with the default value found in your flow code and NOT the value you ran the flow you copied this from. if you change the toggle to JSON you will see the other value that you copied from the other flow run.
Error
No response
Versions
Cloud
Additional context
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 18 (10 by maintainers)
@EmilRex I saw it resolved but I didn’t test it extensively. I can’t speak to datetime params specifically.
@mscanlon-exos - any chance you can provide an MRE or an example here so we can look into it?