• 
      

    Fix up problems with text fields in the review dialog.

    Review Request #7449 — Created June 24, 2015 and submitted

    Information

    Review Board
    release-2.5.x
    923293a...

    Reviewers

    There were a few bugs present with body-top/body-bottom and comments in the
    header view. The fundamental issue seems to be that the raw value wasn't being
    set correctly, due to a couple different issues (we often had the Review object
    loaded but not with the right text types included, and then the data field
    wasn't properly plumbed in the ready method).

    There was also a problem in comments where we'd save the extraData field but
    not specify the specific attrs, which caused a <p> bug.

    While I was in here I cleaned up some obvious style and code-duplication issues.

    • Repeatedly tried adding a review, editing the header a few times, and then
      publishing the review. Previously I could very often cause the header to be
      surrounded in a <p> tag, and now I can't make it happen at all.
    • Ran unit tests.
    • Ran js-tests.
    reviewbot
    1. Tool: PEP8 Style Checker
      Ignored Files:
          reviewboard/static/rb/js/views/reviewDialogView.js
          reviewboard/static/rb/js/resources/models/baseCommentModel.js
          reviewboard/static/rb/js/resources/models/reviewModel.js
          reviewboard/static/rb/js/resources/models/baseResourceModel.js
      
      
      
      Tool: Pyflakes
      Ignored Files:
          reviewboard/static/rb/js/views/reviewDialogView.js
          reviewboard/static/rb/js/resources/models/baseCommentModel.js
          reviewboard/static/rb/js/resources/models/reviewModel.js
          reviewboard/static/rb/js/resources/models/baseResourceModel.js
      
      
    2. 
        
    brennie
    1. Ship It!
    2. 
        
    chipx86
    1. Do the unit tests pass?

    2. 
        
    david
    chipx86
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-2.5.x (0a81990)