Allow the API to validate extra fields for comments on condensed diffs
Review Request #7365 — Created June 2, 2015 and submitted
The review diff comment API can now validate the
extra_data.base_commit_id
andextra_data.condensed_diff
fields if
they are provided. Utility properties have been added to the
reviews.models.diff_comment.Comment
model to facilitate getting and
setting the base commit ID and condensed diff status of the associated
file diff. These will be updated by JavaScript through the API so that
the correct diff will be rendered in reviews.Unit tests have been added to verify the validation of these new API
fields.
Ran unit tests.
Description | From | Last Updated |
---|---|---|
It would be more efficient if you changed the first test to just check truthiness instead of explicitly comparing against … |
david |