Enable notedb tests for LabelTypeIT
Fix construction of labels in ChangeJson to use ApprovalsUtil.byPatchSet where appropriate, to get appropriate label copying and normalization behavior. For now, keep the existing behavior of showing reviewers in the detailed label output if they have ever voted on any patch set of the change, even if they are not currently listed as a reviewer. Change-Id: I1ea2b4110fb3eca41c9bb406e8ee11e1f60a8e69
This commit is contained in:
@@ -397,8 +397,6 @@ public class ChangeData {
|
||||
Change c = change();
|
||||
if (c == null) {
|
||||
currentApprovals = Collections.emptyList();
|
||||
} else if (allApprovals != null) {
|
||||
return allApprovals.get(c.currentPatchSetId());
|
||||
} else {
|
||||
currentApprovals = ImmutableList.copyOf(approvalsUtil.byPatchSet(
|
||||
db, changeControl(), c.currentPatchSetId()));
|
||||
|
||||
Reference in New Issue
Block a user