-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(sdk): Add description to upload_pipeline_version in kfp. Part of #6256 #6395
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
feat(sdk): Add description to upload_pipeline_version in kfp. Part of #6256 #6395
Conversation
Hi @casassg. Thanks for your PR. I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@@ -1137,7 +1139,8 @@ def upload_pipeline_version( | |||
response = self._upload_api.upload_pipeline_version( | |||
pipeline_package_path, | |||
name=pipeline_version_name, | |||
pipelineid=pipeline_id | |||
pipelineid=pipeline_id, | |||
description=description, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we are using an old version of kfp-server-api, will passing None to this description
field break, because there is no description
field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the code, I don't think so. It will be a noop really. It may also be reasonable to ask users to upgrade the server-api to use this as otherwise its pretty much not usable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As reported in #6256 (comment), this is actually a breaking change. I'd suggest constructing args to upload_pipeline_version using a dictionary, and then passing the dictionary to the method. In this way, when user does not provide their own description, we can omit the description key altogether.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, I missed the validation step on line 121. Opened #6472 to do the approach. Let's discuss there how to best handle this
Edited title format to conform with our routines |
/lgtm |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chensun 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 |
Description of your changes:
Part of #6256