Skip to content

[frontend] Optional pipeline inputs are required input fields #11632

@mprahl

Description

@mprahl

Steps to reproduce

Create a pipeline with optional parameters such as:

from typing import Optional
from kfp import dsl
from kfp import compiler

@dsl.component()
def printOutputLocation(outputLocation: str = None):
    print(outputLocation)


@dsl.pipeline(name="my-pipeline")
def my_pipeline(
    outputLocation: Optional[str] = "",
):
    printOutputLocation(outputLocation=outputLocation)


compiler.Compiler().compile(
    pipeline_func=my_pipeline, package_path=__file__.replace(".py", ".yaml")
)

Image

Expected result

The pipeline input parameter for outputLocation should not be a required form field. The workaround is to add a value and then remove the value in the input field.

Materials and Reference


Impacted by this bug? Give it a 👍.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions