https://prefect.io logo
Title
f

Felix Sonntag

08/08/2022, 7:46 AM
Hey, I was wondering on how to deal/set more complex parameter structures in Prefect Orion. E.g. when I have lists ore nested models, I can’t set them on the UI at all.
1
Building this via
prefect deployment build ./param_example.py:example_flow -n example_flow -o example_flow-deployment.yaml
And then applying via:
prefect deployment apply 'example_flow-deployment.yaml'
It seems for lists the UI is buggy, it looks like it’s supposed to be able to select lists, but in the end it only takes a string value
a

Anna Geller

08/08/2022, 9:14 AM
great example to reproduce and I was indeed able to reproduce -- thanks for raising that and I'll open an issue @Marvin open "UI interprets parameters of type list as strings"
a

Anna Geller

08/08/2022, 9:18 AM
for now as a workaround, when you set those on the deployment YAML, it should work
parameters: {}
f

Felix Sonntag

08/08/2022, 10:23 AM
Thaaaanks!
yep, it works setting them in the YAML. I also realized doing this:
def example_flow(params: ExampleParams = ExampleParams()):
sets up the default params directly, so also a good workaround for now
🙌 1
💯 2
a

Anna Geller

08/08/2022, 11:37 AM
nice work and thanks again for reporting that UI bug