-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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): CLI - Allow upload_version by the pipeline's name. Fixes #3901 #4087
Conversation
Thanks for the feedback @Bobgy. I have not used protobuff before but gave it a try and got it working at least :)! I am not sure where it would make the most sense to put |
Thanks for the feedback @Ark-kun, resolved the comments. |
/test kubeflow-pipeline-sample-test |
@Ark-kun I have updated but are getting some issues with ProtoBuf and it seems to be a issue related to versions for ProtoBuf. I have updated the packages in the requirement file but are builds/test using dependencies from somewhere else? This threads talks about the issue: https://stackoverflow.com/questions/61922334/how-to-solve-attributeerror-module-google-protobuf-descriptor-has-no-attribu |
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.
Great work! Thanks for figuring out how to generate a proper helper class for the filter!
updated title to better comply with our convention |
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.
thanks @NikeNano!
mostly good now. I added comments about some implementation details
sdk/python/kfp/_client.py
Outdated
Args: | ||
name: pipeline name | ||
page_token: token for starting of the page. | ||
page_size: size of the page. |
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.
reminder, also the docstring
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.
sorry, multi tasking while listening in to some meetings.
I agree proper helper is the preferred way, just that when it's hard to get it working. We can choose the practical path. |
Updated title to be more concise and indicates which issue it solved |
/lgtm /assign @Ark-kun @numerology I think this is good to go. |
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.
Thanks! @NikeNano
# Operators on scalar values. Only applies to one of |int_value|, | ||
# |long_value|, |string_value| or |timestamp_value|. | ||
"EQUALS" : 1, | ||
"NOT_EQUALS" : 2, |
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.
Just for my education, is the predicates other than 'EQUALS' being used now in the client?
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.
No, they are not I kept them on order to have a reference for the alternative since we don't have a proper helper file. Maybe we should remove it. Initially I only. set it to 1, but @Bobgy suggested that we added a mapping in order for readers of the code to understand what it meant.
Co-authored-by: Jiaxiao Zheng <jxzheng@google.com>
Co-authored-by: Jiaxiao Zheng <jxzheng@google.com>
/lgtm Thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Bobgy 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 |
@googlebot rescan |
…ubeflow#3901 (kubeflow#4087) * Update _client.py * Allow for passing name instead of only pipeline_id * fixed old rebase issue * protobuf fix * raise error and remove f-string * moved file * updated python proto packages versions * Update sdk/python/kfp/_client.py * restructured and added to build * changes structure of import * Updated the files * further updates of client and filter.proto * alternative * clean up * clean up * remove helperfiles * futher clean up * clean up or eaither name or id * update doc strings * remove page_size * Update sdk/python/kfp/_client.py Co-authored-by: Jiaxiao Zheng <jxzheng@google.com> * Update sdk/python/kfp/cli/pipeline.py Co-authored-by: Jiaxiao Zheng <jxzheng@google.com> * updated to classical string formattin Co-authored-by: Jiaxiao Zheng <jxzheng@google.com>
Description of your changes:
This pr updates the KFP cli to allow pipeline upload_version to accept name instead of id. This will make is easier for some users and allow for a larger flexibility.
This should fix PR: #3901
We could also the check that only one/and always one of pipeline_name and pipeline_is using click, whould this be prefered?