Skip to content

Commit

Permalink
moved Task.progress description to Task model
Browse files Browse the repository at this point in the history
  • Loading branch information
Alino committed Aug 1, 2018
1 parent 747b81c commit d6661bc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
12 changes: 11 additions & 1 deletion api/models/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,17 @@ export = {

progress: {
type: 'string',
enum: ['pending', 'in progress', 'paused', 'canceled', 'finished']
enum: ['pending', 'in progress', 'paused', 'canceled', 'finished'],
defaultsTo: 'pending',
description: `pending - the Task has been created, and it's pending to be reviewed and assigned to someone.
in progress - the Task has been assigned to someone and is being worked on.
paused - the Task went from in progress, to paused, because something is blocking the Task, or the assignee has other priorities.
canceled - someone did cancel this Task.
finished - the work on this Task is done and deliverableLocation is filled with a path to deliverable.`
},

assignedTo: {
Expand Down
14 changes: 1 addition & 13 deletions config/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,19 +213,7 @@ module.exports.routes = {
action: 'create',
swagger: {
summary: 'Create a Task',
description: `Creates a Task which will belong to a specific job.
Task can have these statuses:
pending - the Task has been created, and it's pending to be reviewed and assigned to someone.
in progress - the Task has been assigned to someone and is being worked on.
paused - the Task went from in progress, to paused, because something is blocking the Task, or the assignee has other priorities.
canceled - someone did cancel this Task.
finished - the work on this Task is done and deliverableLocation is filled with a path to deliverable.
`,
description: `Creates a Task which will belong to a specific job.`,
tags: [
'Task'
]
Expand Down

0 comments on commit d6661bc

Please sign in to comment.