Status Updates part 7: Break some ReviewBoxView functionality out into ReviewView.

Review Request #8408 — Created Sept. 18, 2016 and submitted

Information

Review Board
release-3.0.x
581b9e0...

Reviewers

Since we're now going to be sticking reviews into things other than the
ReviewBoxView (namely, the change descriptions and a new "initial status
updates" entry), we need to break some functionality out.

This change does that, and moves/updates tests as appropriate.

  • Ran js-tests.
  • Created/discarded a draft reply and saw that banners were handled correctly.
Description From Last Updated

Extra stuff on this line.

chipx86chipx86

Let's move this function out into the body of the RB.ReviewView, so we only have one definition and not one …

chipx86chipx86

Same here about breaking out the function.

chipx86chipx86

Can we insert this more alphabetically grouped?

chipx86chipx86

Same here.

chipx86chipx86
chipx86
  1. 
      
  2. Extra stuff on this line.

  3. Let's move this function out into the body of the RB.ReviewView, so we only have one definition and not one per iteration of this loop.

    1. _.each is a mapping that calls a function, not a loop, so there's only one definition of the things inside it.

  4. reviewboard/static/rb/js/views/reviewView.es6.js (Diff revision 1)
     
     
     
     
     
     

    Same here about breaking out the function.

  5. reviewboard/staticbundles.py (Diff revision 1)
     
     

    Can we insert this more alphabetically grouped?

  6. reviewboard/staticbundles.py (Diff revision 1)
     
     

    Same here.

  7. 
      
david
reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/staticbundles.py
    
    Ignored Files:
        reviewboard/static/rb/js/views/tests/reviewViewTests.es6.js
        reviewboard/static/rb/js/views/tests/reviewBoxViewTests.js
        reviewboard/static/rb/js/views/reviewBoxView.es6.js
        reviewboard/static/rb/js/views/reviewView.es6.js
    
    
    
    Tool: Pyflakes
    Processed Files:
        reviewboard/staticbundles.py
    
    Ignored Files:
        reviewboard/static/rb/js/views/tests/reviewViewTests.es6.js
        reviewboard/static/rb/js/views/tests/reviewBoxViewTests.js
        reviewboard/static/rb/js/views/reviewBoxView.es6.js
        reviewboard/static/rb/js/views/reviewView.es6.js
    
    
  2. 
      
chipx86
  1. Ship It!
  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (bd3b107)
Loading...