Skip to content
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

Merged
merged 1 commit into from May 9, 2019
Merged

Conversation

AlirieGray
Copy link
Contributor

@AlirieGray AlirieGray commented May 8, 2019

Closes #12386

This PR adds a Description property to Tasks in the Swagger definition as well as in the API.

  • CHANGELOG.md updated with a link to the PR (not the Issue)
  • Rebased/mergeable
  • Tests pass
  • http/swagger.yml updated (if modified Go structs or API)

@AlirieGray AlirieGray requested a review from a team as a code owner May 8, 2019 18:17
@AlirieGray AlirieGray force-pushed the add-description-to-tasks branch 3 times, most recently from c8294a2 to dcbf21a Compare May 8, 2019 19:45
@@ -137,7 +138,8 @@ func TestTaskHandler_handleGetTasks(t *testing.T) {
},
"id": "0000000000000001",
"name": "task1",
"labels": [
"description: "A little Task",
Copy link
Contributor

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

Copy link
Contributor

@imogenkinsman imogenkinsman left a 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.

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`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

json:"description,omitempty"

@AlirieGray AlirieGray force-pushed the add-description-to-tasks branch 3 times, most recently from 52e83e3 to 10a1c6e Compare May 8, 2019 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no description field on tasks
3 participants