• 
      

    Bring back ReviewReply.deleteIfEmpty, and fix reply publishing.

    Review Request #4026 — Created April 6, 2013 and submitted

    Information

    Review Board
    master

    Reviewers

    Bring back ReviewReply.deleteIfEmpty, and fix reply publishing.
    
    When ReviewReply was ported over, deleteIfEmpty didn't come with it. It
    was still being called though, meaning that users couldn't cancel or
    delete comments.
    
    Even if it was brought over, though, it's been pretty broken for a long
    time. It didn't actually successfully delete the review reply (just the
    comment), and it didn't take into account file attachment comments.
    
    It's now ported over and rewritten to do that. Some stuff was cleaned up
    to better manage the comment ID and object for an editor to make this
    work better.
    
    There's also fixes for publishing. We set the attributes after knowing
    the reply is ready. Same when publishing a review, in case.
    Lots of manual testing.
    
    New unit tests pass.
    reviewbot
    1. This is a review from Review Bot.
        Tool: PEP8 Style Checker
        Processed Files:
          reviewboard/reviews/templatetags/reviewtags.py
        Ignored Files:
          reviewboard/static/rb/js/reviews.js
          reviewboard/static/rb/js/models/tests/reviewReplyModelTests.js
          reviewboard/templates/reviews/review_reply.html
          reviewboard/static/rb/js/models/reviewReplyModel.js
      
      
    2. 
        
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (837d472)