File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -5,18 +5,11 @@ const TASK_TYPE = {
5
5
} ;
6
6
7
7
const TASK_STATUS = {
8
- // old task workflow
9
- ACTIVE : "IN_PROGRESS" ,
10
- "HIGH PRIORITY" : "HIGH PRIORITY" ,
11
- PENDING : "IN_PROGRESS" ,
8
+ AVAILABLE : "AVAILABLE" ,
12
9
ASSIGNED : "ASSIGNED" ,
13
- BLOCKED : "BLOCKED" ,
14
10
COMPLETED : "COMPLETED" ,
15
-
16
- // new task workflow
17
11
IN_PROGRESS : "IN_PROGRESS" ,
18
- UNASSIGNED : "AVAILABLE" ,
19
- AVAILABLE : "AVAILABLE" ,
12
+ BLOCKED : "BLOCKED" ,
20
13
SMOKE_TESTING : "SMOKE_TESTING" ,
21
14
NEEDS_REVIEW : "NEEDS_REVIEW" ,
22
15
IN_REVIEW : "IN_REVIEW" ,
@@ -26,8 +19,10 @@ const TASK_STATUS = {
26
19
REGRESSION_CHECK : "REGRESSION_CHECK" ,
27
20
RELEASED : "RELEASED" ,
28
21
VERIFIED : "VERIFIED" ,
22
+ DONE : "DONE" ,
29
23
} ;
30
24
25
+ // TODO: convert this to new task status
31
26
const TASK_STATUS_OLD = {
32
27
OLD_ACTIVE : "active" ,
33
28
OLD_BLOCKED : "blocked" ,
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ describe("Tasks", function () {
37
37
type : "feature" ,
38
38
endsOn : 1234 ,
39
39
startedOn : 4567 ,
40
- status : "active " ,
40
+ status : "IN_PROGRESS " ,
41
41
percentCompleted : 10 ,
42
42
participants : [ ] ,
43
43
assignee : appOwner . username ,
@@ -402,7 +402,7 @@ describe("Tasks", function () {
402
402
it ( "Should return 200 when username is valid" , function ( done ) {
403
403
chai
404
404
. request ( app )
405
- . get ( `/tasks/${ appOwner . username } ?status=active` )
405
+ . get ( `/tasks/${ appOwner . username } ?status=IN_PROGRESS` ) // TODO: if status is passed in lowercase it fails, fix this
406
406
. end ( ( err , res ) => {
407
407
if ( err ) {
408
408
return done ( err ) ;
@@ -427,7 +427,7 @@ describe("Tasks", function () {
427
427
it ( "Should return 404 when username is invalid" , function ( done ) {
428
428
chai
429
429
. request ( app )
430
- . get ( "/tasks/dummyUser?status=active " )
430
+ . get ( "/tasks/dummyUser?status=in_progress " )
431
431
. end ( ( err , res ) => {
432
432
if ( err ) {
433
433
return done ( err ) ;
You can’t perform that action at this time.
0 commit comments