• 
      

    Refactor away ReviewBoxListView.

    Review Request #8318 — Created Aug. 4, 2016 and submitted

    Information

    Review Board
    release-3.0.x
    2de908c...

    Reviewers

    This change makes it so that instead of ReviewBoxListView inspecting the DOM
    and creating models and views to go along with it, those models and views are
    created directly with the appropriate data. After this, ReviewBoxListView was
    pretty useless, and because ReviewRequestPageView already had its fingers in
    the pie, I've just moved all its functionality into there.

    • Ran js-tests.
    • Smoke tested the review request detail page with multiple reviews and change
      description boxes.
    Description From Last Updated

    Trailing comma.

    chipx86chipx86

    Trailing comma.

    chipx86chipx86

    Trailing comma.

    chipx86chipx86

    Trailing comma.

    chipx86chipx86

    Are these not under this.el? Can we not use this.$() ?

    brenniebrennie

    Let's use listenTo.

    chipx86chipx86
    reviewbot
    1. Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/reviewBoxListView.es6.js
          reviewboard/static/rb/js/pages/views/reviewRequestPageView.es6.js
          reviewboard/templates/reviews/boxes/review.html
          reviewboard/static/rb/js/pages/views/tests/reviewRequestPageViewTests.es6.js
          reviewboard/templates/reviews/reviewable_page_data.js
          reviewboard/templates/reviews/review_detail.html
          reviewboard/static/rb/js/views/tests/reviewBoxListViewTests.js
          reviewboard/templates/reviews/boxes/change.html
          reviewboard/static/rb/js/resources/models/reviewRequestModel.es6.js
          reviewboard/static/rb/js/views/reviewBoxView.es6.js
      
      
      
      Tool: Pyflakes
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/reviewBoxListView.es6.js
          reviewboard/static/rb/js/pages/views/reviewRequestPageView.es6.js
          reviewboard/templates/reviews/boxes/review.html
          reviewboard/static/rb/js/pages/views/tests/reviewRequestPageViewTests.es6.js
          reviewboard/templates/reviews/reviewable_page_data.js
          reviewboard/templates/reviews/review_detail.html
          reviewboard/static/rb/js/views/tests/reviewBoxListViewTests.js
          reviewboard/templates/reviews/boxes/change.html
          reviewboard/static/rb/js/resources/models/reviewRequestModel.es6.js
          reviewboard/static/rb/js/views/reviewBoxView.es6.js
      
      
    2. 
        
    chipx86
    1. 
        
      1. Also, this will break that one e-mail extension, and probably other third-party code (I seem to recall talking to someone else about ReviewBoxListView once). Might be considered enough of an internal detail to worry about, but would be good to add to that list on Notion I mentioned on other review requests for tracking purposes.

    2. Show all issues

      Trailing comma.

    3. Show all issues

      Trailing comma.

    4. Show all issues

      Trailing comma.

    5. Show all issues

      Trailing comma.

    6. 
        
    david
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/reviewBoxListView.es6.js
          reviewboard/static/rb/js/pages/views/reviewRequestPageView.es6.js
          reviewboard/templates/reviews/boxes/review.html
          reviewboard/static/rb/js/pages/views/tests/reviewRequestPageViewTests.es6.js
          reviewboard/templates/reviews/reviewable_page_data.js
          reviewboard/templates/reviews/review_detail.html
          reviewboard/static/rb/js/views/tests/reviewBoxListViewTests.js
          reviewboard/templates/reviews/boxes/change.html
          reviewboard/static/rb/js/resources/models/reviewRequestModel.es6.js
          reviewboard/static/rb/js/views/reviewBoxView.es6.js
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/reviewBoxListView.es6.js
          reviewboard/static/rb/js/pages/views/reviewRequestPageView.es6.js
          reviewboard/templates/reviews/boxes/review.html
          reviewboard/static/rb/js/pages/views/tests/reviewRequestPageViewTests.es6.js
          reviewboard/templates/reviews/reviewable_page_data.js
          reviewboard/templates/reviews/review_detail.html
          reviewboard/static/rb/js/views/tests/reviewBoxListViewTests.js
          reviewboard/templates/reviews/boxes/change.html
          reviewboard/static/rb/js/resources/models/reviewRequestModel.es6.js
          reviewboard/static/rb/js/views/reviewBoxView.es6.js
      
      
    2. 
        
    brennie
    1. 
        
    2. Show all issues

      Are these not under this.el? Can we not use this.$() ?

      1. No, they're not. I may change that in a future cleanup.

    3. 
        
    chipx86
    1. Happy after this and Barret's comment.

    2. Show all issues

      Let's use listenTo.

    3. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-3.0.x (9861125)