-
Notifications
You must be signed in to change notification settings - Fork 83
Fix the error message for the update cmd #411
Conversation
@katrogan updated, I think
|
Issue 3806 [Housekeeping] Inconsistent treatment of project id param in flytectl #3806 Signed-off-by: oliverhu <[email protected]>
Signed-off-by: oliverhu <[email protected]>
I think the issue is we also overwrite the project id to the global project flag: https://github.com/flyteorg/flytectl/blob/master/cmd/config/subcommand/project/project_config.go#L65 passed here: https://github.com/flyteorg/flytectl/blob/master/cmd/update/project.go#L87 Maybe we should only fallback to the global project flag when |
Yeah, I saw that. It is very confusing.. what about we change: So ProjectSpec will be a 1:1 mapping with the input. Then we always get Project from |
Signed-off-by: oliverhu <[email protected]>
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.
Thank you for this!
Co-authored-by: Katrina Rogan <[email protected]> Signed-off-by: Keqiu Hu <[email protected]>
Signed-off-by: oliverhu <[email protected]>
Signed-off-by: oliverhu <[email protected]>
mind fixing up the lint & unit test failures? |
Signed-off-by: oliverhu <[email protected]>
Signed-off-by: oliverhu <[email protected]>
Updated lint & unit tests, thanks for the patient reviews! |
Codecov Report
@@ Coverage Diff @@
## master #411 +/- ##
==========================================
+ Coverage 66.66% 67.64% +0.98%
==========================================
Files 145 145
Lines 6285 5230 -1055
==========================================
- Hits 4190 3538 -652
+ Misses 1815 1411 -404
- Partials 280 281 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Fix Flyte's #3806 [Housekeeping] Inconsistent treatment of project id param in flytectl
TL;DR
As project name is required rather than project id, check name instead.
Type
Are all requirements met?
Tracking Issue
https://github.com/flyteorg/flyte/issues/
Updated behavior