Expose extra data API through new attribute

Review Request #7433 — Created June 17, 2015 and submitted

Information

Review Board
master
6ab143d...

Reviewers

This patch returns each resource's extraData model attribute to be a
plain JavaScript object. The new extra data API (via RB.ExtraData) is
exposed through model.extraData instead of
model.attributes.extraData. This will prevent extensions that use the
old API from breaking but still expose the new API. JS tests have been
updated to reflect these changes.

Ran JS tests.
Tested with the rbstopwatch extension. It worked with this patch
applied.

Description From Last Updated

Can you add a doc comment?

chipx86chipx86
reviewbot
  1. Tool: Pyflakes
    Ignored Files:
        reviewboard/static/rb/js/models/commentEditorModel.js
        reviewboard/static/rb/js/resources/models/tests/fileAttachmentCommentModelTests.js
        reviewboard/static/rb/js/resources/models/tests/baseResourceModelTests.js
        reviewboard/static/rb/js/models/tests/extraDataTests.js
        reviewboard/static/rb/js/models/extraDataMixin.js
        reviewboard/static/rb/js/resources/models/baseResourceModel.js
        reviewboard/static/rb/js/models/tests/commentEditorModelTests.js
    
    
    
    Tool: PEP8 Style Checker
    Ignored Files:
        reviewboard/static/rb/js/models/commentEditorModel.js
        reviewboard/static/rb/js/resources/models/tests/fileAttachmentCommentModelTests.js
        reviewboard/static/rb/js/resources/models/tests/baseResourceModelTests.js
        reviewboard/static/rb/js/models/tests/extraDataTests.js
        reviewboard/static/rb/js/models/extraDataMixin.js
        reviewboard/static/rb/js/resources/models/baseResourceModel.js
        reviewboard/static/rb/js/models/tests/commentEditorModelTests.js
    
    
  2. 
      
chipx86
  1. 
      
  2. Show all issues

    Can you add a doc comment?

  3. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Ignored Files:
        reviewboard/static/rb/js/models/commentEditorModel.js
        reviewboard/static/rb/js/resources/models/tests/fileAttachmentCommentModelTests.js
        reviewboard/static/rb/js/resources/models/tests/baseResourceModelTests.js
        reviewboard/static/rb/js/models/tests/extraDataTests.js
        reviewboard/static/rb/js/models/extraDataMixin.js
        reviewboard/static/rb/js/resources/models/baseResourceModel.js
        reviewboard/static/rb/js/models/tests/commentEditorModelTests.js
    
    
    
    Tool: PEP8 Style Checker
    Ignored Files:
        reviewboard/static/rb/js/models/commentEditorModel.js
        reviewboard/static/rb/js/resources/models/tests/fileAttachmentCommentModelTests.js
        reviewboard/static/rb/js/resources/models/tests/baseResourceModelTests.js
        reviewboard/static/rb/js/models/tests/extraDataTests.js
        reviewboard/static/rb/js/models/extraDataMixin.js
        reviewboard/static/rb/js/resources/models/baseResourceModel.js
        reviewboard/static/rb/js/models/tests/commentEditorModelTests.js
    
    
  2. 
      
david
  1. Can you test with an extension that uses the old APIs?

  2. 
      
brennie
reviewbot
  1. Tool: PEP8 Style Checker
    Ignored Files:
        reviewboard/static/rb/js/models/commentEditorModel.js
        reviewboard/static/rb/js/resources/models/tests/fileAttachmentCommentModelTests.js
        reviewboard/static/rb/js/resources/models/tests/baseResourceModelTests.js
        reviewboard/static/rb/js/models/tests/extraDataTests.js
        reviewboard/static/rb/js/models/extraDataMixin.js
        reviewboard/static/rb/js/resources/models/baseResourceModel.js
        reviewboard/static/rb/js/models/tests/commentEditorModelTests.js
    
    
    
    Tool: Pyflakes
    Ignored Files:
        reviewboard/static/rb/js/models/commentEditorModel.js
        reviewboard/static/rb/js/resources/models/tests/fileAttachmentCommentModelTests.js
        reviewboard/static/rb/js/resources/models/tests/baseResourceModelTests.js
        reviewboard/static/rb/js/models/tests/extraDataTests.js
        reviewboard/static/rb/js/models/extraDataMixin.js
        reviewboard/static/rb/js/resources/models/baseResourceModel.js
        reviewboard/static/rb/js/models/tests/commentEditorModelTests.js
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
brennie
Review request changed
Status:
Completed
Change Summary:
Pushed to master (236e954)