Support for individual commit validation
Review Request #7038 — Created March 9, 2015 and submitted — Latest diff uploaded
Refactor the
DiffCommitListResource
into a mixin to allow commmit
behvaiour to be shared between the originalDiffCommitListResource
and the newValidateDiffCommitResource
. This new resource is
responsible for validating a commit (the diff and the metadata) before
it is uploaded and added to the review request.This new validator is used to validate all commits as they are
uploaded. This replaces the old behaviour where only the diff was
validated (using theValidateDiffResource
) but none of the metadata
was.
Ran unit tests.
Able to upload a review request with history and have its commits
validated.