Fix a couple tiny definition errors in the user file attachments resource.

Review Request #8808 - Created March 9, 2017 and submitted

David Trowbridge
Review Board
release-3.0.x
bf90c28...
reviewboard

This change fixes an error in the resource name for the
UserFileAttachmentResource (which was causing the resource to not appear
correctly in the URL templates), as well as updates the item serialization to
look more like the regular FileAttachment does.

Was able to use the user file attachments resource via the RBTools Python API.

  • 0
  • 0
  • 0
  • 1
  • 1
Description From Last Updated
Review Bot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/webapi/resources/user_file_attachment.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/webapi/resources/user_file_attachment.py
    
    
  2. 
      
Christian Hammond
  1. Ship It!
  2. 
      
Christian Hammond
  1. 
      
  2. Actually, do we really not have any unit test that was caught by this? Can we update them to make sure they're seeing the correct object?

    1. The unit tests don't use the URI templates

  3. 
      
David Trowbridge
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (52698f7)
Loading...