What version are you running?
2.5.8
What's the URL of the page containing the problem?
http://my.reviewboard.server/reviewboard/api/review-requests/24/?api_format=json&force-text-type=html&include-text-types=raw
What steps will reproduce the problem?
- Setup default reviewers to assign one code path to a group
- Post a new review request, through the Web API or through the UI (the review ID is 24 in this case)
- Read back the review request through the Web API: http://my.reviewboard.server/reviewboard/api/review-requests/24/?api_format=json&force-text-type=html&include-text-types=raw
- "target_groups" is empty BUT the HTML version is showing the target group as expected ( http://my.reviewboard.server/reviewboard/r/24/ )
- Publish the review request
- Read back the review request through the Web API: the target group is assigned in the JSON response.
What is the expected output? What do you see instead?
Expected: the "target_groups" in the JSON response should be populated in the Draft version of the review request, as it is when querying the HTML version.
Actual: "target_groups" in the JSON response is empty.What operating system are you using? What browser?
Ubuntu 16.04 LTS / Firefox 51
Please provide any additional information below.
It does work as expected when requesting explicitely the draft: GET http://my.reviewboard.server/reviewboard/api/review-requests/24/draft/