The PeerReviewPlugin supports workflows for reviews. There is one for the author of a review and another one for reviewers. An administrator may change the workflow in trac.ini similar to ticket workflows.

Review Workflow

This workflow is set in section [peerreview-resource_workflow] of trac.ini. The default workflow after installation is the following:

approve = reviewed -> approved = Approve the review
change_owner = * -> *
change_owner.default = -1 = Change Owner to
change_owner.operations = set_review_owner
change_owner.permissions = CODE_REVIEW_MGR
close = new, reviewed, in-review -> closed = Close review
disapprove = reviewed -> disapproved = Deny this review
reopen = closed, reviewed, approved, disapproved -> new
reopen.permissions = CODE_REVIEW_MGR
review-done = in-review -> reviewed = Mark as reviewed
reviewing = new -> in-review
reviewing.default = 5 = Start review

When setting a review to a finishing state all associated files are set to the same state. This means if the owner sets the review to approved, then all files are also set to approved.

Workflow operation set_review_owner

You may configure a custom workflow operation set_review_owner for reviews:

change_owner = * -> * = Change Owner to
change_owner.operations = set_review_owner
change_owner.permissions = CODE_REVIEW_MGR

This operation allows you to change the owner of a review. Possible users are taken from the same list as the one used when creating a review. In the given example you need the permission CODE_REVIEW_MGR to perform the operation.

Reviewer Workflow

Reviewers may mark their individual progress just to inform the review author. The workflow states are not used for any other purpose or to impose any restrictions. For example it is possible for a review author to close a review even when none of the reviewers ever changed his personal workflow state:

reopen = in-review, reviewed -> new = Reset review state to 'new'
review_done = in-review -> reviewed = Mark review as done.
reviewing = new -> in-review = Start review
Last modified 4 years ago Last modified on Mar 25, 2017, 1:40:26 PM