Ensure that a draft is created when creating post-commit review requests.

Review Request #8091 — Created March 30, 2016 and submitted

Information

Review Board
release-2.5.x
3abed32...

Reviewers

When using the post-commit UI, a review request was created but no draft was
created. The UI therefore looked like the review request was public, and there
was no "Publish" button unless changes were made to the state.

This change adds the draft creation, and updates the post-commit unit test to
ensure we never hit this again.

Ran unit tests.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/webapi/tests/test_review_request.py
        reviewboard/reviews/managers.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/webapi/tests/test_review_request.py
        reviewboard/reviews/managers.py
    
    
  2. 
      
brennie
  1. Ship It!
  2. 
      
chipx86
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.0.x (b278c2c)