• 
      

    Fix setting time_added when publishing a review request.

    Review Request #3800 — Created Jan. 27, 2013 and submitted

    Information

    Review Board
    release-1.7.x

    Reviewers

    Fix setting time_added when publishing a review request.
    
    The change added to set time_added to the publish time caused the
    creation time to always be the publish time for every publish, not just
    the first.
    
    We now only set this when there hasn't been any changes previously made
    to the review request and it's being published the first time.
    Tested updating review requests and publishing the changes. No creation time change.
    
    Tested closing a review request (tried submit and discard) and reopening, making changes,
    and publishing. No creation time change.
    
    Tested publishing a very old draft review request that was never published, and saw the
    creation time reflect the current time.
    reviewbot
    1. This is a review from Review Bot.
        Tool: PEP8 Style Checker
        Processed Files:
          reviewboard/reviews/models.py
        Ignored Files:
      
      
    2. 
        
    david
    1. Ship It!
    2. 
        
    RA
    1. 
        
    2. reviewboard/reviews/models.py (Diff revision 1)
       
       
      Sorry, I added this change earlier, should have thought about the subsequent publishes  to reviewrequest. I considered changes to reviews, but dint think about the review_request itself getting updated. 
      1. No prob. Thanks for the review!
    3. 
        
    chipx86
    Review request changed
    Status:
    Completed