From: "Christian Hammond" <chip...@chipx86.com>
Date: Fri, 19 Oct 2012 08:02:00 -0000
Subject: Re: Review Request 3401: URL to diff comments returns 404 if at least one of diff-id and file-id are invalid.
-----------------------------------------------------------
So, I made some comments on style, since I think that'll be helpful, but I have a couple questions/comments about the change.
1) Does this do anything for accessing actual individual comments with fake diff revisions or review IDs? (Is that broken too?)
2) Can you go into more detail on the second part of the change involving the local IDs? This doesn't seem completely right to me...
3) There should be unit tests covering each failure case, and making sure the results are expected. These should fail before this change, and pass after.
reviewboard/webapi/resources.py
Needs to be < 80 columns.
reviewboard/webapi/resources.py
Put these in the parameter list to the function, defaulting to None.
reviewboard/webapi/resources.py
This is specific to FileDiffCommentResource, and so should live there.
reviewboard/webapi/resources.py
Is there a time when we would not have a review ID?
reviewboard/webapi/resources.py
Needs to be < 80 columns. Change *args, **kwargs to be on the next line.
reviewboard/webapi/resources.py
We should just reuse review_request_id.
reviewboard/webapi/resources.py
Blank line before this.
reviewboard/webapi/resources.py
Given the length of arguments and the wrapping, do one parameter per line, all aligned. That includes 'request' (on the next line).
- Christian Hammond
On Oct. 14, 2012, 7:19 p.m., Michelle Chuang wrote:
> -----------------------------------------------------------
> (Updated Oct. 14, 2012, 7:19 p.m.)
> Review request for Review Board.
> Description
> - Fixed URL to return 404.
> This addresses bug 2552.
> Diffs
> reviewboard/webapi/resources.py 7b40f4ea1b7e23787922071271def03500f463cc > Diff: http://reviews.reviewboard.org/r/3401/diff/
> Testing
> Tested on local development server against custom urls.
> Thanks,
> Michelle Chuang
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||