Provide file attachment revision info in the API and JavaScript.

Review Request #7116 — Created March 25, 2015 and submitted

Information

Review Board
release-2.5.x
2660d6f...

Reviewers

The file attachment resources were missing revision information, which
we'll soon be needing in the UI. A revision field has been added to
the serialized data for file attachments in the API.

The JavaScript resource models load in the revision information from the
API into an attribute, and default the diffAgainstFileAttachment
attribute to null (instead of undefined).

Python and JavaScript ynit tests pass.

Used these values in another change.

reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/webapi/resources/base_file_attachment.py
        reviewboard/webapi/tests/test_file_attachment.py
    
    Ignored Files:
        reviewboard/static/rb/js/resources/models/fileAttachmentCommentModel.js
        reviewboard/static/rb/js/resources/models/fileAttachmentModel.js
        reviewboard/static/rb/js/resources/models/tests/fileAttachmentModelTests.js
    
    
    
    Tool: Pyflakes
    Processed Files:
        reviewboard/webapi/resources/base_file_attachment.py
        reviewboard/webapi/tests/test_file_attachment.py
    
    Ignored Files:
        reviewboard/static/rb/js/resources/models/fileAttachmentCommentModel.js
        reviewboard/static/rb/js/resources/models/fileAttachmentModel.js
        reviewboard/static/rb/js/resources/models/tests/fileAttachmentModelTests.js
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.5.x (503d12a)
Loading...