Record reviewer state in notes database
Stop implicitly adding/removing reviewers by adding an arbitrary PatchSetApprovals with a 0 vote. This is ugly and error-prone, especially when LabelTypes change. Instead, use the existing ReviewerState enum, adding a REMOVED type as a tombstone. When parsing, record these during the walk, and prune all REMOVED tombstones after the fact. Change-Id: Iffb0517eb0162eb6cce66bf36d905a6eb60e75da
This commit is contained in:
@@ -18,8 +18,8 @@ import com.google.common.collect.Multimap;
|
||||
import com.google.gerrit.common.errors.NoSuchAccountException;
|
||||
import com.google.gerrit.reviewdb.client.Account;
|
||||
import com.google.gerrit.reviewdb.client.PatchSet;
|
||||
import com.google.gerrit.server.ApprovalsUtil.ReviewerState;
|
||||
import com.google.gerrit.server.account.AccountResolver;
|
||||
import com.google.gerrit.server.notedb.ReviewerState;
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
|
||||
import org.eclipse.jgit.revwalk.FooterKey;
|
||||
|
||||
Reference in New Issue
Block a user