-
Notifications
You must be signed in to change notification settings - Fork 322
add short_description to Task and Workflow model #3224
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Niels Bantilan <[email protected]>
Code Review Agent Run #7f0c3aActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
@@ -70,13 +70,14 @@ def from_flyte_idl(cls, pb2_object): | |||
|
|||
|
|||
class Workflow(_common.FlyteIdlEntity): | |||
def __init__(self, id, closure): | |||
def __init__(self, id, closure, short_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.
does this need to be short_description = None
for backwards compat?
Changelist by BitoThis pull request implements the following key changes.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3224 +/- ##
=======================================
Coverage 52.15% 52.16%
=======================================
Files 214 214
Lines 22299 22307 +8
Branches 2924 2924
=======================================
+ Hits 11630 11636 +6
- Misses 9986 9988 +2
Partials 683 683 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Why are the changes needed?
Currently,
short_description
is defined in the Task and Workflow protos but are not being piped through in theflytekit
Task and Workflow models.What changes were proposed in this pull request?
flytekit.models.tasks.Task
now takes ashort_description
as inputflytekit.models.admin.workflow.Workflow
now takes ashort_description
as inputHow was this patch tested?
Unit tests were updates
Summary by Bito
This PR adds a new short_description parameter to Task and Workflow classes in flytekit models, including constructor modifications, property methods, and updated serialization for protocol buffer conversion. Tests have been updated to verify these new capabilities.Unit tests added: True
Estimated effort to review (1-5, lower is better): 2