-
Notifications
You must be signed in to change notification settings - Fork 3.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(tasks): add description field to tasks #13850
Conversation
c8294a2
to
dcbf21a
Compare
http/task_service_test.go
Outdated
@@ -137,7 +138,8 @@ func TestTaskHandler_handleGetTasks(t *testing.T) { | |||
}, | |||
"id": "0000000000000001", | |||
"name": "task1", | |||
"labels": [ | |||
"description: "A little Task", |
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.
"description
-> "description"
will fix the test failure
dcbf21a
to
d063dfa
Compare
d063dfa
to
dbb1f02
Compare
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.
Looks like tests are still failing.
dbb1f02
to
c4d3a84
Compare
task.go
Outdated
@@ -133,6 +134,7 @@ type TaskService interface { | |||
// TaskCreate is the set of values to create a task. | |||
type TaskCreate struct { | |||
Flux string `json:"flux"` | |||
Description string `json:description,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.
json:"description,omitempty"
52e83e3
to
10a1c6e
Compare
10a1c6e
to
77934b0
Compare
Closes #12386
This PR adds a
Description
property to Tasks in the Swagger definition as well as in the API.