• 
      

    Rewrite the CommentReply objects to be based on Backbone.js.

    Review Request #3838 — Created Feb. 3, 2013 and submitted

    Information

    Review Board
    master

    Reviewers

    Rewrite the CommentReply objects to be based on Backbone.js.
    
    The new objects perform the same way the old ones did, but share much of
    the code and make use of the BaseResource model.
    
    There's a BaseCommentReply that does all the actual work, and subclasses
    for diffs, file attachments, and screenshots. All the actual logic is
    common, and the subclasses only provide the 'rspNamespace' key used to
    parse the payload from the server.
    
    Unit tests were added to cover the base serialization/deserialization
    and validation.
    Unit tests pass.
    
    I created a reply to all 3 types of comments (both with and without an
    existing draft) and published them.
    
    I also tested editing the comments. Verified they saved and loaded.
    
    Tested erasing the contents. Saw the comment delete.
    reviewbot
    1. This is a review from Review Bot.
        Tool: PEP8 Style Checker
        Processed Files:
          reviewboard/settings.py
        Ignored Files:
          reviewboard/static/rb/js/models/baseCommentModel.js
          reviewboard/static/rb/js/datastore.js
          reviewboard/static/rb/js/models/tests/baseCommentReplyModelTests.js
          reviewboard/static/rb/js/models/fileAttachmentCommentReplyModel.js
          reviewboard/static/rb/js/models/baseResourceModel.js
          reviewboard/static/rb/js/models/tests/baseCommentModelTests.js
          reviewboard/static/rb/js/models/baseCommentReplyModel.js
          reviewboard/static/rb/js/models/screenshotCommentReplyModel.js
          reviewboard/static/rb/js/reviews.js
          reviewboard/static/rb/js/models/diffCommentReplyModel.js
      
      
    2. 
        
    chipx86
    reviewbot
    1. This is a review from Review Bot.
        Tool: PEP8 Style Checker
        Processed Files:
          reviewboard/settings.py
        Ignored Files:
          reviewboard/static/rb/js/models/baseCommentModel.js
          reviewboard/static/rb/js/datastore.js
          reviewboard/static/rb/js/models/tests/baseCommentReplyModelTests.js
          reviewboard/static/rb/js/models/fileAttachmentCommentReplyModel.js
          reviewboard/static/rb/js/models/baseResourceModel.js
          reviewboard/static/rb/js/models/tests/baseCommentModelTests.js
          reviewboard/static/rb/js/models/baseCommentReplyModel.js
          reviewboard/static/rb/js/models/screenshotCommentReplyModel.js
          reviewboard/static/rb/js/reviews.js
          reviewboard/static/rb/js/models/diffCommentReplyModel.js
      
      
    2. 
        
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (a963f6d70cb72b23b4353e953d86c3744747eca7)