Make a ReviewRequestField for 'status'.

Review Request #7012 — Created March 5, 2015 and submitted

Information

Review Board
release-2.0.x
807ddb2...

Reviewers

The existing 'status' field is done by directly changing the model, and
recording the change directly into the ChangeDescription. This worked okay,
except that trying to serialize change descriptions which included changes to
the 'status' field would explode.

This change adds a new ReviewRequestField (which is not shown in the UI), and
uses that to record the changes to the status, as well as serialize it in the
API. I've added a new unit test that verifies that we can serialize change
descriptions that manipulate the 'status' field.

  • Ran unit tests.
  • Loaded review requests and saw that there were no changes to the UI.
Description From Last Updated

I know it doesn't really matter since this field isn't visible, but would this be better suited to the ChangeEntryOnlyFieldSet?

brenniebrennie

Blank line here, apparently.

chipx86chipx86

I feel this is useful information for the docstring.

chipx86chipx86

""" on the next line.

chipx86chipx86
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/reviews/builtin_fields.py
        reviewboard/webapi/tests/test_change.py
        reviewboard/reviews/models/review_request.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/reviews/builtin_fields.py
        reviewboard/webapi/tests/test_change.py
        reviewboard/reviews/models/review_request.py
    
    
  2. 
      
brennie
  1. 
      
  2. reviewboard/reviews/builtin_fields.py (Diff revision 1)
     
     
    Show all issues

    I know it doesn't really matter since this field isn't visible, but would this be better suited to the ChangeEntryOnlyFieldSet?

  3. 
      
david
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/reviews/builtin_fields.py
        reviewboard/webapi/tests/test_change.py
        reviewboard/reviews/models/review_request.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/reviews/builtin_fields.py
        reviewboard/webapi/tests/test_change.py
        reviewboard/reviews/models/review_request.py
    
    
  2. 
      
chipx86
  1. 
      
  2. reviewboard/reviews/builtin_fields.py (Diff revision 2)
     
     
     
    Show all issues

    Blank line here, apparently.

  3. reviewboard/reviews/builtin_fields.py (Diff revision 2)
     
     
     
    Show all issues

    I feel this is useful information for the docstring.

  4. reviewboard/webapi/tests/test_change.py (Diff revision 2)
     
     
    Show all issues

    """ on the next line.

  5. 
      
david
reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/reviews/builtin_fields.py
        reviewboard/webapi/tests/test_change.py
        reviewboard/reviews/models/review_request.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        reviewboard/reviews/builtin_fields.py
        reviewboard/webapi/tests/test_change.py
        reviewboard/reviews/models/review_request.py
    
    
  2. 
      
brennie
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-2.0.x (7738d0a)