3735: review reply diff_comment URI template eclipses review diff_comment URI template in RBClient

mrc***@gmai***** (Google Code) (Is this you? Claim this profile.)
Jan. 22, 2015
3734
What version are you running?

2.0.12

What's the URL of the page containing the problem?

It's a problem with the RBClient package when calling root.get_diff_comments().

What steps will reproduce the problem?
1. Create a review request.
2. Create a review on that review request and open an issue.
3. Use RBClient to try to get the diff_comment for that review in order to get the issue_open_count via root.get_diff_comments().

What is the expected output? What do you see instead?

I should only have to provide review_request_id and review_id in order to get to the diff_comment.

Instead, I get

ValueError: Template was not provided a value for 'reply_id'

smacleod says this is because there are diff_comment resources for both reviews and review replies, and that there is only a URI template created for the latter.  So there is no direct way to get to the review's diff_comment; instead, I have to get the review and then call get_diff_comments() on the review resource.

What operating system are you using? What browser?

OS X, Python 2.7.9.