ReviewerPredicate: Filter out draft changes when DRAFT workflow is disabled
Change-Id: Icd11184d893d0a32c2112534d05f053acdf8a700
This commit is contained in:
@@ -215,6 +215,10 @@ public class ChangeField {
|
||||
public Iterable<Integer> get(ChangeData input, FillArgs args)
|
||||
throws OrmException {
|
||||
Set<Integer> r = Sets.newHashSet();
|
||||
if (!args.allowsDrafts &&
|
||||
input.change().getStatus() == Change.Status.DRAFT) {
|
||||
return r;
|
||||
}
|
||||
for (PatchSetApproval a : input.approvals().values()) {
|
||||
r.add(a.getAccountId().get());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user