-
Notifications
You must be signed in to change notification settings - Fork 859
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
Add "description" field for each workload from ListWorkloads API #824
Conversation
Codecov Report
@@ Coverage Diff @@
## master #824 +/- ##
==========================================
+ Coverage 35.92% 35.98% +0.05%
==========================================
Files 99 99
Lines 8656 8656
==========================================
+ Hits 3110 3115 +5
+ Misses 5199 5196 -3
+ Partials 347 345 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Workload item doesn't have descriptin property, added it to help display the description in capability list on Dashboard
28b7ba6
to
37cb5cc
Compare
@@ -47,9 +47,9 @@ type WorkloadRunBody struct { | |||
|
|||
// WorkloadMeta store workload metadata for dashboard restful API server | |||
type WorkloadMeta struct { | |||
Name string `json:"name"` | |||
Parameters []types.Parameter `json:"parameters,omitempty"` | |||
AppliesTo []string `json:"appliesTo,omitempty"` |
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.
why delete appliesTo?
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.
BTW, it's better to have a unit test for it. Now, even we delete some field(which should be a break change) that the CI won't fail.
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.
Workload should not have AppliesTo
field. And I have confirmed all callers of this struct and it's only called by pkg/server/workloadHandler.go
.
Workload item doesn't have descriptin property, added it to help display
the description in capability list on Dashboard
Fix #821