Allow evaluating submit rules for draft changes
When actually submitting changes, we should continue short-circuiting and refusing to say draft changes are submittable. But for purely informational pre-submit operations, such as rendering the approval table, it makes sense to treat draft changes the same as any other open changes. Change-Id: I012c274c3e6a4b95adead3008a9c0ff56942d56b
This commit is contained in:
@@ -100,7 +100,8 @@ public class ReviewerJson {
|
||||
ChangeData cd = new ChangeData(ctl);
|
||||
PatchSet ps = cd.currentPatchSet(db);
|
||||
if (ps != null) {
|
||||
for (SubmitRecord rec : ctl.canSubmit(db.get(), ps, cd, true, false)) {
|
||||
for (SubmitRecord rec :
|
||||
ctl.canSubmit(db.get(), ps, cd, true, false, true)) {
|
||||
if (rec.labels == null) {
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user