https://prefect.io logo
Title
t

Tim-Oliver

04/24/2023, 3:49 PM
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

nicholas

04/24/2023, 3:53 PM
Hi @Tim-Oliver - is this Prefect Cloud or is this the open source UI?
t

Tim-Oliver

04/24/2023, 3:57 PM
Cloud
It works if I remove the default parameters.
I have to run now. Will be back tomorrow ✌️
n

nicholas

04/24/2023, 4:02 PM
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

Nicolas Garcia Ospina

04/25/2023, 7:19 AM
Hi, I am also facing this issue. this is my deployment and code (using
conlist
and
List
are not working anymore)
👀 1
t

Tim-Oliver

04/25/2023, 3:08 PM
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:
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:
@flow()
def analysis_3D(
        preprocess: Preprocess3D,
):
    ...
n

nicholas

04/25/2023, 3:11 PM
This is helpful, thank you - I’ll look to reproduce and hopefully figure out what changed in this behavior
🙏 2
t

Tim-Oliver

04/25/2023, 3:14 PM
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

nicholas

04/26/2023, 4:41 PM
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

Tim-Oliver

04/27/2023, 1:34 PM
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

nicholas

04/27/2023, 2:06 PM
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)
:party-parrot: 1
t

Tim-Oliver

04/28/2023, 7:35 AM
Did this make it to the last release? Some of our flows can not be used at the moment and block our users.
n

nicholas

04/28/2023, 1:37 PM
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

Nicolas Garcia Ospina

04/28/2023, 1:37 PM
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

nicholas

04/28/2023, 1:42 PM
Correct - in order for lists to be properly supported (allowing duplicate values, for instance), those have been switched to JSON inputs:
["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

Tim-Oliver

04/28/2023, 1:42 PM
Is the new version already available via Prefect Cloud?
n

nicholas

04/28/2023, 1:43 PM
It should be - are you not seeing that @Tim-Oliver?
t

Tim-Oliver

04/28/2023, 1:44 PM
😞
n

Nicolas Garcia Ospina

04/28/2023, 1:44 PM
So what vanishes is the field, just like what Tim posted
s

Stéphan Taljaard

04/28/2023, 1:45 PM
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

nicholas

04/28/2023, 1:45 PM
!! 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

Justin Trautmann

04/28/2023, 1:53 PM