Allow API resource extra_data handling to be disabled per-field.

Review Request #6539 — Created Oct. 30, 2014 and submitted

Information

Review Board
release-2.0.x
8917cf8...

Reviewers

WebAPIResource subclasses can now determine on a case-by-case basis
whether a user-provided extra_data.* field can be set in a request.

This will allow for special handling of certain bits of extra_data by
Markdown-capable custom text fields.

Unit tests pass.

Tested this manually along with some upcoming changes and a custom field.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/webapi/base.py
        reviewboard/webapi/resources/base_comment.py
        reviewboard/webapi/resources/diff.py
        reviewboard/webapi/resources/filediff.py
        reviewboard/webapi/resources/review_group.py
        reviewboard/webapi/resources/review_request_draft.py
        reviewboard/webapi/resources/review_request.py
        reviewboard/webapi/resources/base_review.py
        reviewboard/webapi/resources/draft_filediff.py
        reviewboard/webapi/resources/review_reply.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/webapi/base.py
        reviewboard/webapi/resources/base_comment.py
        reviewboard/webapi/resources/diff.py
        reviewboard/webapi/resources/filediff.py
        reviewboard/webapi/resources/review_group.py
        reviewboard/webapi/resources/review_request_draft.py
        reviewboard/webapi/resources/review_request.py
        reviewboard/webapi/resources/base_review.py
        reviewboard/webapi/resources/draft_filediff.py
        reviewboard/webapi/resources/review_reply.py
    
    
  2. 
      
david
  1. Ship It!

  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to markdown-redesign (8d06a90)
Loading...