Convert checklist javascript to ES6.

Review Request #8628 — Created Jan. 17, 2017 and submitted

Information

rb-extension-pack
master
41ebdec...

Reviewers

This change converts the various javascript files in the checklist extension to
use ES6, including proper documentation for everything. I've cleaned up the
code a bit, but there will probably be a lot of refactoring later as I
integrate some of the student work that's been sitting around.

Smoke tested checklist features.

Description From Last Updated

We're not actually defining anything locally here., so we shouldn't need this?

brenniebrennie

Too many blank lines.

brenniebrennie

new Model().save() ?

brenniebrennie

Again this is unnecessary.

brenniebrennie

Well, it returns the data unmodified.

brenniebrennie

This too.

brenniebrennie

Blank line between these.

brenniebrennie

Blank line between these.

brenniebrennie

Here too.

brenniebrennie

Indented too far?

brenniebrennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        rbchecklist/rbchecklist/extension.py
    
    Ignored Files:
        rbchecklist/rbchecklist/static/js/models/checklist.js
        rbchecklist/rbchecklist/static/js/models/checklistTemplateModel.es6.js
        rbchecklist/rbchecklist/static/js/views/checklistView.es6.js
        rbchecklist/rbchecklist/static/js/models/checklistTemplate.js
        rbchecklist/rbchecklist/static/js/views/checklistAccountPageView.es6.js
        rbchecklist/rbchecklist/static/js/models/checklistModel.es6.js
        rbchecklist/rbchecklist/static/js/views/checklistView.js
        rbchecklist/rbchecklist/static/js/views/checklistAccountPageView.js
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        rbchecklist/rbchecklist/extension.py
    
    Ignored Files:
        rbchecklist/rbchecklist/static/js/models/checklist.js
        rbchecklist/rbchecklist/static/js/models/checklistTemplateModel.es6.js
        rbchecklist/rbchecklist/static/js/views/checklistView.es6.js
        rbchecklist/rbchecklist/static/js/models/checklistTemplate.js
        rbchecklist/rbchecklist/static/js/views/checklistAccountPageView.es6.js
        rbchecklist/rbchecklist/static/js/models/checklistModel.es6.js
        rbchecklist/rbchecklist/static/js/views/checklistView.js
        rbchecklist/rbchecklist/static/js/views/checklistAccountPageView.js
    
    
  2. 
      
brennie
  1. 
      
  2. Show all issues

    We're not actually defining anything locally here., so we shouldn't need this?

  3. Show all issues

    Too many blank lines.

  4. rbchecklist/rbchecklist/static/js/models/checklistModel.es6.js (Diff revision 1)
     
     
     
     
     
     
     
     
    Show all issues

    new Model().save() ?

    1. I'd rather keep it separate for formatting purposes.

  5. Show all issues

    Again this is unnecessary.

  6. Show all issues

    Well, it returns the data unmodified.

  7. Show all issues

    This too.

  8. Show all issues

    Blank line between these.

  9. Show all issues

    Blank line between these.

  10. Show all issues

    Here too.

  11. Show all issues

    Indented too far?

    1. Nope, because .children() is returning a nested selector.

  12. 
      
david
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        rbchecklist/rbchecklist/extension.py
    
    Ignored Files:
        rbchecklist/rbchecklist/static/js/models/checklist.js
        rbchecklist/rbchecklist/static/js/models/checklistTemplateModel.es6.js
        rbchecklist/rbchecklist/static/js/views/checklistView.es6.js
        rbchecklist/rbchecklist/static/js/models/checklistTemplate.js
        rbchecklist/rbchecklist/static/js/views/checklistAccountPageView.es6.js
        rbchecklist/rbchecklist/static/js/models/checklistModel.es6.js
        rbchecklist/rbchecklist/static/js/views/checklistView.js
        rbchecklist/rbchecklist/static/js/views/checklistAccountPageView.js
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        rbchecklist/rbchecklist/extension.py
    
    Ignored Files:
        rbchecklist/rbchecklist/static/js/models/checklist.js
        rbchecklist/rbchecklist/static/js/models/checklistTemplateModel.es6.js
        rbchecklist/rbchecklist/static/js/views/checklistView.es6.js
        rbchecklist/rbchecklist/static/js/models/checklistTemplate.js
        rbchecklist/rbchecklist/static/js/views/checklistAccountPageView.es6.js
        rbchecklist/rbchecklist/static/js/models/checklistModel.es6.js
        rbchecklist/rbchecklist/static/js/views/checklistView.js
        rbchecklist/rbchecklist/static/js/views/checklistAccountPageView.js
    
    
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to master (8135eef)