Ensure review request e-mails are from the correct user

Review Request #8100 — Created April 4, 2016 and submitted

Information

Review Board
master

Reviewers

We now ensure that the user who updated the review request is the one
who e-mails will be from. This is important when the owner of a review
request is changed. Previously, the e-mail would be from the new owner.
This issue has been corrected.

We also determine the correct user to supply when publishing if one is
not supplied by looking at the change description history.

Ran unit tests.

Description From Last Updated

This should just go at the top of the file.

daviddavid

Can we rename the parameter from_user?

daviddavid

undefined name 'user'

reviewbotreviewbot

local variable 'user' is assigned to but never used

reviewbotreviewbot

There's an extra blank line here.

daviddavid
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/notifications/email.py
        reviewboard/notifications/tests.py
        reviewboard/extensions/tests.py
        reviewboard/reviews/models/review_request_draft.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/notifications/email.py
        reviewboard/notifications/tests.py
        reviewboard/extensions/tests.py
        reviewboard/reviews/models/review_request_draft.py
    
    
  2. 
      
brennie
david
  1. 
      
  2. reviewboard/notifications/email.py (Diff revision 1)
     
     
    Show all issues

    This should just go at the top of the file.

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

    Can we rename the parameter from_user?

  4. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/notifications/email.py
        reviewboard/notifications/tests.py
        reviewboard/extensions/tests.py
        reviewboard/reviews/models/review_request_draft.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/notifications/email.py
        reviewboard/notifications/tests.py
        reviewboard/extensions/tests.py
        reviewboard/reviews/models/review_request_draft.py
    
    
  2. reviewboard/notifications/email.py (Diff revision 2)
     
     
    Show all issues
     undefined name 'user'
    
  3. reviewboard/notifications/email.py (Diff revision 2)
     
     
    Show all issues
     local variable 'user' is assigned to but never used
    
  4. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/notifications/email.py
        reviewboard/notifications/tests.py
        reviewboard/extensions/tests.py
        reviewboard/reviews/models/review_request_draft.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/notifications/email.py
        reviewboard/notifications/tests.py
        reviewboard/extensions/tests.py
        reviewboard/reviews/models/review_request_draft.py
    
    
  2. 
      
david
  1. 
      
  2. reviewboard/notifications/email.py (Diff revision 3)
     
     
    Show all issues

    There's an extra blank line here.

  3. 
      
brennie
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to feature/review-request-ownership (98f17e5)
Loading...