Serialize the status field in the FileDiff API
Review Request #8828 — Created March 20, 2017 and submitted — Latest diff uploaded
The
FileDiff
API has historically not included thestatus
field,
which indicates if the file was newly created, moved, etc. in the
change. We now serialize it as a human readable string in the API.Additionally basic unit tests have been added for the
FileDiff
API, as
they did not previously exist.
Ran unit tests.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.
orig
1
2
3
reviewboard/diffviewer/models.py |
---|
reviewboard/webapi/resources/filediff.py |
---|
reviewboard/webapi/tests/test_filediff.py |
---|