My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3268: WIP Plugin: REST response contains 'DRAFT' for the status
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Cc:  David.Os...@gmail.com


Sign in to add a comment
 
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
  }
}
Sign in to add a comment

Powered by Google Project Hosting