• 
      

    Add support for modifying close descriptions in ReviewRequestEditor.

    Review Request #4103 — Created May 4, 2013 and submitted

    Information

    Review Board
    master

    Reviewers

    Add support for modifying close descriptions in ReviewRequestEditor.
    
    The close description code has been removed from reviews.js and reworked
    for the new review request editor code. Now, each of the three types of
    change description inputs have their own fields registered.
    
    Since these all have the same IDs right now (we determine which to put
    into the page in the template), the elementID has been changed to a
    selector. Along with this, since they all work on the same field in the
    review request model, we're using an array of registered fields and not
    a map (which we made no use of anyway).
    Tested setting each type of change description and making sure it saved.
    
    Tested that only the draft change description auto-opened on load.
    
    Made sure all the other fields still work.
    
    Added new unit tests, which all pass.
    Description From Last Updated

    You have duplicate IDs here.

    daviddavid
    reviewbot
    1. This is a review from Review Bot.
        Tool: PEP8 Style Checker
        Processed Files:
        Ignored Files:
          reviewboard/static/rb/js/reviews.js
          reviewboard/static/rb/js/models/tests/reviewRequestEditorModelTests.js
          reviewboard/static/rb/js/views/tests/reviewRequestEditorViewTests.js
          reviewboard/static/rb/js/models/reviewRequestEditorModel.js
          reviewboard/static/rb/js/views/reviewRequestEditorView.js
      
      
    2. 
        
    david
    1. 
        
    2. Show all issues
      You have duplicate IDs here.
      1. It's a necessary evil for how the code and template are structured right now. While in theory IDs are unique, this isn't true in practice, certainly not in any way that effects our code or tests.
        
        I'm right now working on the next step in these changes which fixes the banners/changedescription fields. They'll be unique after that change.
    3. 
        
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (c994889)