Provide ReviewRequests and Reviews to reviewables and comment blocks.

Review Request #4263 — Created June 26, 2013 and submitted

Information

Review Board
master

Reviewers

Provide ReviewRequests and Reviews to reviewables and comment blocks.

Reviewables and CommentBlocks now take 'reviewRequest' and 'review'
attributes, instead of having to call out to gReviewRequest.

The 'reviewRequest' attribute is required, but 'review' is not. If not
provided, AbstractReviewable will get/create a draft Review object from
the ReviewRequest. These two parameters are now required.

Reviewables also now have a convenience function for creating
CommentBlock and adding them. This will do the work of passing along the
ReviewRequest and Review to the CommentBlock instance.

Existing Reviewables and CommentBlocks have been updated to work with
these changes. External ones will need to be changed.
Unit tests pass.

Manually tested file attachments, screenshots and diffs.
Description From Last Updated

Can you make these two error messages consistent?

daviddavid

Indentation doesn't look right here.

daviddavid
david
  1. 
      
  2. Show all issues
    Can you make these two error messages consistent?
    1. I wasn't sure what was best here. They're really two different things. The first is defined on the model, and the second is provided as an option. I think I'll try to just make them more specific.
  3. Show all issues
    Indentation doesn't look right here.
  4. 
      
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed