Port various review request detail JS files to ES6.

Review Request #8316 — Created Aug. 2, 2016 and submitted

Information

Review Board
release-3.0.x
51b52cb...

Reviewers

This change ports over several of the pieces of the review request detail page,
including the page view itself, and the review and changedesc box views. This
is in preparation for some refactoring to make the creation and plumbing of all
of these boxes much simpler.

  • Smoke tested a page with multiple review and changedesc boxes.
  • Ran js-tests.
Description From Last Updated

Can we make this a const in the file and wrap everything in a block so we don't re-define this …

brenniebrennie

initialize(options)

brenniebrennie

render()

brenniebrennie

Should we use listenTo?

chipx86chipx86

Why the payload change? The original seemed fine, and this doesn't seem too related to the change.

chipx86chipx86

We probably should update this to use listenTo.

chipx86chipx86
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/staticbundles.py
    
    Ignored Files:
        reviewboard/static/rb/js/pages/views/reviewablePageView.es6.js
        reviewboard/static/rb/js/views/reviewBoxListView.es6.js
        reviewboard/static/rb/js/pages/views/reviewRequestPageView.es6.js
        reviewboard/static/rb/js/pages/views/reviewRequestPageView.js
        reviewboard/static/rb/js/views/changeBoxView.es6.js
        reviewboard/static/rb/js/views/collapsableBoxView.es6.js
        reviewboard/static/rb/js/views/reviewBoxListView.js
        reviewboard/static/rb/js/views/issueSummaryTableView.js
        reviewboard/static/rb/js/views/changeBoxView.js
        reviewboard/static/rb/js/views/reviewBoxView.es6.js
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/staticbundles.py
    
    Ignored Files:
        reviewboard/static/rb/js/pages/views/reviewablePageView.es6.js
        reviewboard/static/rb/js/views/reviewBoxListView.es6.js
        reviewboard/static/rb/js/pages/views/reviewRequestPageView.es6.js
        reviewboard/static/rb/js/pages/views/reviewRequestPageView.js
        reviewboard/static/rb/js/views/changeBoxView.es6.js
        reviewboard/static/rb/js/views/collapsableBoxView.es6.js
        reviewboard/static/rb/js/views/reviewBoxListView.js
        reviewboard/static/rb/js/views/issueSummaryTableView.js
        reviewboard/static/rb/js/views/changeBoxView.js
        reviewboard/static/rb/js/views/reviewBoxView.es6.js
    
    
  2. 
      
brennie
  1. 
      
  2. Show all issues

    Can we make this a const in the file and wrap everything in a block so we don't re-define this for every call?

  3. Show all issues

    initialize(options)

  4. Show all issues

    render()

  5. 
      
chipx86
  1. This would be a lot easier to review if you can convince git that the files are moved. Could play more with the -M argument to git diff for this. (Annoying for the posting, but would be really nice to help see what changed.)

  2. 
      
david
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/staticbundles.py
    
    Ignored Files:
        reviewboard/static/rb/js/pages/views/reviewablePageView.es6.js
        reviewboard/static/rb/js/views/reviewBoxListView.es6.js
        reviewboard/static/rb/js/pages/views/reviewRequestPageView.es6.js
        reviewboard/static/rb/js/views/changeBoxView.es6.js
        reviewboard/static/rb/js/views/collapsableBoxView.es6.js
        reviewboard/static/rb/js/views/issueSummaryTableView.js
        reviewboard/static/rb/js/views/reviewBoxView.es6.js
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/staticbundles.py
    
    Ignored Files:
        reviewboard/static/rb/js/pages/views/reviewablePageView.es6.js
        reviewboard/static/rb/js/views/reviewBoxListView.es6.js
        reviewboard/static/rb/js/pages/views/reviewRequestPageView.es6.js
        reviewboard/static/rb/js/views/changeBoxView.es6.js
        reviewboard/static/rb/js/views/collapsableBoxView.es6.js
        reviewboard/static/rb/js/views/issueSummaryTableView.js
        reviewboard/static/rb/js/views/reviewBoxView.es6.js
    
    
  2. 
      
chipx86
  1. 
      
  2. Show all issues

    Should we use listenTo?

  3. Show all issues

    Why the payload change? The original seemed fine, and this doesn't seem too related to the change.

    1. Mostly because as I was adding docs I was annoyed at how much more complex it would be to document an object with multiple keys rather than just plumbing the data through directly.

  4. Show all issues

    We probably should update this to use listenTo.

  5. 
      
david
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/staticbundles.py
    
    Ignored Files:
        reviewboard/static/rb/js/pages/views/reviewablePageView.es6.js
        reviewboard/static/rb/js/views/reviewBoxListView.es6.js
        reviewboard/static/rb/js/pages/views/reviewRequestPageView.es6.js
        reviewboard/static/rb/js/views/changeBoxView.es6.js
        reviewboard/static/rb/js/views/collapsableBoxView.es6.js
        reviewboard/static/rb/js/views/issueSummaryTableView.js
        reviewboard/static/rb/js/views/reviewBoxView.es6.js
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/staticbundles.py
    
    Ignored Files:
        reviewboard/static/rb/js/pages/views/reviewablePageView.es6.js
        reviewboard/static/rb/js/views/reviewBoxListView.es6.js
        reviewboard/static/rb/js/pages/views/reviewRequestPageView.es6.js
        reviewboard/static/rb/js/views/changeBoxView.es6.js
        reviewboard/static/rb/js/views/collapsableBoxView.es6.js
        reviewboard/static/rb/js/views/issueSummaryTableView.js
        reviewboard/static/rb/js/views/reviewBoxView.es6.js
    
    
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.0.x (c999b46)