Hi, Did something change with the way ~array~list ...
# prefect-ui
t
Hi, Did something change with the way ~array~list parameters are displayed in the UI? I am unable to enter any values and it looks like this:
A deployment from last week looks like this:
n
Hi @Tim-Oliver - is this Prefect Cloud or is this the open source UI?
t
Cloud
It works if I remove the default parameters.
I have to run now. Will be back tomorrow ✌️
n
sounds good - thanks for the report. i’ll take a look and see what’s up
🙏 1
@Tim-Oliver (for when you’re back!) - I’m having some trouble reproducing the behavior you’re seeing; would you mind sharing how you’ve configured those parameters?
n
Hi, I am also facing this issue. this is my deployment and code (using
conlist
and
List
are not working anymore)
👀 1
t
I also found that
list[int]
is displayed different from
list[float]
. The first dialog with the json field allows to enter a list of numbers, where as the second dialog with the drop down menu only allows to enter numbers which are different from one another.
Adding 0.5 twice is not possible in the second version.
This is the parameter group code:
Copy code
class Preprocess3D(BaseModel):
    file_extension: Literal["tif", "stk", "nd", "czi"] = "nd"
    crop_start: int
    crop_end: int
    bin_axes: list[int] # or use list[float]
And here the flow signature:
Copy code
@flow()
def analysis_3D(
        preprocess: Preprocess3D,
):
    ...
n
This is helpful, thank you - I’ll look to reproduce and hopefully figure out what changed in this behavior
🙏 2
t
I think
list[str]
behaves the same. The issue with not being able to add the same item twice exists in the process infrastructure block, where the command is entered, as well.
n
Hey folks - I’ve found the cause of a couple of these issues, working through some solutions; hoping to have something out this week - I’ll keep the thread updated
🙌 2
schema-generated dynamic forms are complicated 😅
t
It looks like this issue (hidden input field) affects also deployments which worked in the past. Previously I thought this only affects new deployments.
n
I’ve got some updates moving through our lower environments - hoping to have them deployed this evening at the latest
🎉 2
(they’ll go out with today’s Prefect open source release as well)
🦜 1
t
Did this make it to the last release? Some of our flows can not be used at the moment and block our users.
n
Apologies for not following up - yes, the first set of updates went out; are you still seeing issues? If so I might need to grab some more specific information via DMs
n
Hi nicholas, does this update affects flows that were deployed before?
I found that now all types of lists have a "json" type of input field and fields of type
conlist(constr())
that have a default value have vanished in the UI
n
Correct - in order for lists to be properly supported (allowing duplicate values, for instance), those have been switched to JSON inputs:
Copy code
["1", "2", "1"]
should work, for instance - i’m surprised to hear the default values have vanished though, it sounds like there’s something unexpected going on
t
Is the new version already available via Prefect Cloud?
n
It should be - are you not seeing that @Tim-Oliver?
t
😞
n
So what vanishes is the field, just like what Tim posted
s
I also experienced that today - I also wasn't able to get a flow with an input as
UUID | list[UUID]
to run properly. On the array view, it also pre-populated as
[]
. I played around with input options, but it never correctly parsed for the flow run to accept it.
n
!! hm ok then unfortunately the issue different than i thought
Can i you all DM me the URLs for the deployments you’re seeing this impact?
👍 1
j