Fish Trophy

brennie got a fish trophy!

Fish Trophy

Send "Ship It!" e-mail headers

Review Request #7557 — Created July 28, 2015 and submitted

Information

Review Board
release-2.0.x

Reviewers

Review Board now sends special headers along with review e-mails
indicating if a review contains a "Ship It!" (in which case it will
contain the X-ReviewBoard-ShipIt header) or if it only contains a
"Ship It!" it (in which case both the X-ReviewBoard-ShipIt and
X-ReviewBoard-ShipIt-Only headers will be sent).

Test cases have been added that cover all possible review scenarios.

Ran unit tests.

Description From Last Updated

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

You can do assertIn and assertNotIn for these sorts of tests. (These came after the implementation of the older tests …

chipx86chipx86

We should also support the case of Ship It with no body text at all (such as going into the …

chipx86chipx86

Let's specifically say diff comments.

chipx86chipx86

"Return"

chipx86chipx86

As per above, let's support either SHIP_IT_TEXT or an empty body.

chipx86chipx86
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/testing/testcase.py
        reviewboard/notifications/email.py
        reviewboard/notifications/tests.py
        reviewboard/reviews/models/review.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/testing/testcase.py
        reviewboard/notifications/email.py
        reviewboard/notifications/tests.py
        reviewboard/reviews/models/review.py
    
    
  2. reviewboard/reviews/models/review.py (Diff revision 1)
     
     
    Show all issues
    Col: 80
     E501 line too long (80 > 79 characters)
    
  3. 
      
brennie
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/testing/testcase.py
        reviewboard/notifications/email.py
        reviewboard/notifications/tests.py
        reviewboard/reviews/models/review.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/testing/testcase.py
        reviewboard/notifications/email.py
        reviewboard/notifications/tests.py
        reviewboard/reviews/models/review.py
    
    
  2. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/testing/testcase.py
        reviewboard/notifications/email.py
        reviewboard/notifications/tests.py
        reviewboard/reviews/models/review.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/testing/testcase.py
        reviewboard/notifications/email.py
        reviewboard/notifications/tests.py
        reviewboard/reviews/models/review.py
    
    
  2. 
      
chipx86
  1. 
      
  2. reviewboard/notifications/tests.py (Diff revision 3)
     
     
     
    Show all issues

    You can do assertIn and assertNotIn for these sorts of tests. (These came after the implementation of the older tests in here.)

  3. reviewboard/notifications/tests.py (Diff revision 3)
     
     
     
    Show all issues

    We should also support the case of Ship It with no body text at all (such as going into the review dialog, clicking Ship It, and publishing).

  4. reviewboard/notifications/tests.py (Diff revision 3)
     
     
     
    Show all issues

    Let's specifically say diff comments.

  5. reviewboard/reviews/models/review.py (Diff revision 3)
     
     
    Show all issues

    "Return"

  6. reviewboard/reviews/models/review.py (Diff revision 3)
     
     
    Show all issues

    As per above, let's support either SHIP_IT_TEXT or an empty body.

  7. 
      
brennie
brennie
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/testing/testcase.py
        reviewboard/notifications/email.py
        reviewboard/notifications/tests.py
        reviewboard/reviews/models/review.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/testing/testcase.py
        reviewboard/notifications/email.py
        reviewboard/notifications/tests.py
        reviewboard/reviews/models/review.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
brennie
Review request changed
Status:
Completed
Change Summary:
Pushed to release-2.0.x (307e929)