Hi, issue running flow in UI. optional parameter i...
# ask-community
p
Hi, issue running flow in UI. optional parameter is treated as empty string:
n
hi @Patrick Tan - how is your flow type hinted?
p
@flow def run_priceguide_etl( sale_date: str, visual_search_image_seqs: list[int], file_path: str, profile: str | None = None, ) -> None:
it defaults as None
It was working yesterday
n
interesting - so it seems that we are not correctly handling the 3.10+ optional syntax here. i reproduced your example, but then this works as expected for me
Copy code
@flow
def foo(
    x: int,
    y: int,
    z: Optional[int] = None,
) -> int:
resulting params if
z
not passed
Copy code
{
  "x": 24,
  "y": 24,
  "z": null
}
i will create an issue for this
ooh nevermind - looks like this is known https://github.com/PrefectHQ/prefect/issues/11607
and is related to a UI change that is being reverted
p
Are you saying it is reverted already? or I need to wait for the fix to be deployed
OK I saw the comment from 22 min ago, fix will be out soon...
@Nate how can I be notified when the fix is deployed?
k
it's out now!
also sorry @Nate for not checking back in here I was on my phone
n
there may be a lurking problem here related to our creation of the flow's openapi schema - @Patrick Tan could you confirm whether the UI fix has resolved your problem? if something changed in the last day for you, that is more likely to be the cause than any SDK problem, which we have not released since last week