• 
      

    Fix replying to file attachment comments when the file attachment is removed.

    Review Request #4106 — Created May 6, 2013 and submitted

    Information

    Review Board
    release-1.7.x

    Reviewers

    Fix replying to file attachment comments when the file attachment is removed.
    
    Commenting on a file attachment, then removing the file attachment, then
    replying to the comment was broken. This was due to looking up the
    associated review_request only using the relationship for active file
    attachments. We now check the inactive_review_request relationship too.
    This is something that screenshot comments already do, but that fix
    never made it to file attachments.
    
    A unit test was added for this.
    Unit tests pass.
    
    I was able to reproduce the problem locally and can verify that it's fixed
    after this change.
    Description From Last Updated

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

    reviewbotreviewbot

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

    reviewbotreviewbot
    reviewbot
    1. This is a review from Review Bot.
        Tool: PEP8 Style Checker
        Processed Files:
          reviewboard/webapi/tests.py
          reviewboard/webapi/resources.py
        Ignored Files:
      
      
    2. reviewboard/webapi/tests.py (Diff revision 1)
       
       
      Show all issues
      Col: 80
       E501 line too long (137 > 79 characters)
      
    3. reviewboard/webapi/tests.py (Diff revision 1)
       
       
      Show all issues
      Col: 80
       E501 line too long (80 > 79 characters)
      
    4. 
        
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-1.7.x (b8efdaa)