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

SDK - Lightweight - Added support for "None" default values #1626

Conversation

Ark-kun
Copy link
Contributor

@Ark-kun Ark-kun commented Jul 16, 2019

Previously it was impossible to pass None to components since it was being converted to the string "None".
Fixes #1485


This change is Reviewable

Previously it was impossible to pass None to components since it was being converted to the string "None".
@Ark-kun Ark-kun force-pushed the SDK---Lightweight---Added-support-for-"None"-default-values-2 branch from 24a016b to 68a2767 Compare July 16, 2019 22:22
@gaoning777
Copy link
Contributor

/lgtm

@Ark-kun
Copy link
Contributor Author

Ark-kun commented Jul 26, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ark-kun

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit f6cf9c5 into kubeflow:master Jul 26, 2019
@Ark-kun Ark-kun deleted the SDK---Lightweight---Added-support-for-"None"-default-values-2 branch August 13, 2019 23:27
dpoulopoulos added a commit to dpoulopoulos/skin-cancer-detection that referenced this pull request Jul 18, 2024
Make the pipeline more dynamic by removing the static values in code.

There is a special case when passing default values: The pipeline's
compiler doesn't seem to handle `None` values correctly. Thus, in case
of a list, we're passing `list()` instead of `None` as the default
value.

Despite the claims of the following PR, `None` values don't seem to
work: kubeflow/pipelines#1626

Signed-off-by: Dimitris Poulopoulos <dimitris.a.poulopoulos@gmail.com>
dpoulopoulos added a commit to dpoulopoulos/skin-cancer-detection that referenced this pull request Jul 18, 2024
Make the pipeline more dynamic by removing the static values in code.

There is a special case when passing default values: The pipeline's
compiler doesn't seem to handle `None` values correctly. Thus, in case
of a list, we're passing `list()` instead of `None` as the default
value.

Despite the claims of the following PR, `None` values don't seem to
work: kubeflow/pipelines#1626

Signed-off-by: Dimitris Poulopoulos <dimitris.a.poulopoulos@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parameters with default value None are handled incorrectly by python components
3 participants