Hello, I noticed when I do the quick run of a depl...
# prefect-ui
q
Hello, I noticed when I do the quick run of a deployment, the override value of one of the parameters don't show anymore. Other parameters are not affected. The only difference between the affected parameter and the rest is that this one is
a list input.
I'm wondering what change has been made and how can UI show the override value of a list parameter
✅ 1
n
hi @Qiong Liu - can you show the signature of your flow?
c
Looks like there might be some error happening while generating the parameters form. Let us know what your flow parameters look like and I'll try and reproduce. I'm also curious if you have the same experience if you choose "Custom run" rather than "Quick run"
q
@Nate thank you for responding, how to find the signature of the flow? here is the screen shot of the
Parameter
tag . And my prefect.yaml configuration for the deployment. The override value here is more like a hint for users to use when they run the deployment. So we would like to show them if possible
n
by signature of the flow I just mean the top of your flow definition, e.g.
Copy code
class Plumbus(BaseModel):
    size: str
    color: str

@flow
def use_plumbus(plumbus: Plumbus, numbers: list[int]) -> None:
so we can see what types the UI is trying to represent in the form it looks like in your case its probably
Copy code
def reader(buckets: list[str], runner: str):
q
ah I see, here is the signature of the flow
Copy code
@flow(
    name="Bucket Reader",
    log_prints=True,
    flow_run_name="bucket-reader-{runner}-" + f"{get_time()}",
)
def reader(*buckets, runner: str):
    # create a logging object
    runner_logger = get_run_logger()
n
aha! i suspect the problem has to do with the fact you're splatting
buckets
like that with the
*
- let me try and repro
👀 1
😅 1
q
ah interesting 😆 it was showing just fine in the UI before. if this is the issue, what kinda change I should make
n
yeah so
Copy code
from prefect import flow


@flow
def foo(*buckets, runner: str) -> None:
    print(buckets)

if __name__ == "__main__":
    foo.serve("splat")
(first pic) whereas this
Copy code
from prefect import flow


@flow
def foo(buckets: list[str], runner: str) -> None:
    print(buckets)

if __name__ == "__main__":
    foo.serve("splat")
(second)
👀 1
@Craig Harshbarger I'll see if we've changed the openapi schema generation at all in these cases
thank you 1
q
Oh this is really cool. I can see the override values now. thank you
🙌 1
catjam 1