Project Member
Reported by
zaro0508,
Mar 31, 2015
Rest response for a work in progress change reports that the status is in 'DRAFT'. The status should be in 'WIP'.
Affected Version: master
What steps will reproduce the problem?
1. install the wip plugin
2. create a change and set it to WIP
3. use the REST api to get info on that change:
What is the expected output? What do you see instead?
I would expect "status": "WIP" in the response, but instead I get "status": "DRAFT"..
$ curl --digest --user jharden:HKMejqLVypM5vRLUZ/T8L+b/8bgjkOPs6uHNwawlYQ http://localhost:8080/a/changes/11
)]}'
{
"id": "sea~master~If7c19e65f28cbd011ca299b4526b3affa6abf4cf",
"project": "sea",
"branch": "master",
"hashtags": [],
"change_id": "If7c19e65f28cbd011ca299b4526b3affa6abf4cf",
"subject": "testing1",
"status": "DRAFT",
"created": "2015-03-31 22:05:39.695000000",
"updated": "2015-03-31 22:06:25.235000000",
"mergeable": true,
"insertions": 1,
"deletions": 0,
"_number": 11,
"owner": {
"_account_id": 1000000
}
}