Copy commit information to draft instead of review request

Review Request #8230 — Created June 10, 2016 and submitted

Information

Review Board
release-2.5.x
458085e...

Reviewers

When creating review requests from existing commits, we now copy the
data into a new review request draft instead of into the review request.
This has the effect of showing the draft banner when creating the review
request (previously, the review request would have to be edited to
create a draft) and allowing publishing immediately (if there are
default reviewers). Unit tests have been updated to reflect this new
behaviour.

  • Created a review request through post-commit UI. The banner appeared
    immediately and I was able to submit it.
  • Ran unit tests.
Description From Last Updated

Haven't we already set the commit_id and saved above?

daviddavid

Let's keep the asserts, but assert that they're empty. Same with the review request below.

chipx86chipx86
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. 
      
david
  1. 
      
  2. reviewboard/reviews/managers.py (Diff revision 1)
     
     
     
    Show all issues

    Haven't we already set the commit_id and saved above?

    1. No. We set it above if commit_id and not create_from_commit_id. This is the case of commit_id and create_from_commit_id where copying from the repository has failed.

  3. 
      
chipx86
  1. 
      
  2. reviewboard/webapi/tests/test_review_request.py (Diff revision 1)
     
     
     
     
     
    Show all issues

    Let's keep the asserts, but assert that they're empty.

    Same with the review request below.

  3. 
      
brennie
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. 
      
chipx86
  1. Ship It!
  2. 
      
brennie
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.5.x (65cc60b)
Loading...