Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mprahl opened this issue Feb 14, 2025 · 1 comment · Fixed by #11657
Closed

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

mprahl opened this issue Feb 14, 2025 · 1 comment · Fixed by #11657

Comments

@mprahl
Copy link
Contributor

mprahl commented Feb 14, 2025

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 👍.

@mprahl mprahl changed the title [frontend] Optional pipeline inputs are are required fields [frontend] Optional pipeline inputs are required input fields Feb 14, 2025
@izuku-sds
Copy link
Contributor

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants