Make implicit reviewers feature actually work on GWT UI

This was presumably fixed in Ia5e6b9791 and in I8b735db4f. It turns
out, that labels map is not null in GWT UI, as it is the case in PG,
but also non empty, even in non-voting case: Code-Review: 0.

Fix the optimization check to account for zero votes.

Bug: Issue 4638
Change-Id: I6d9a2cc42ec51e6b1df13b96cf4bcdd082c87f60
This commit is contained in:
Dave Borowitz
2017-02-10 16:51:36 -05:00
committed by David Ostrovsky
parent 126d496953
commit 39bc108a39
5 changed files with 77 additions and 10 deletions

View File

@@ -41,6 +41,7 @@ java_library2(
"//gerrit-server:testutil",
"//gerrit-server/src/main/prolog:common",
"//lib:truth",
"//lib:truth-java8-extension",
"//lib/auto:auto-value",
"//lib/httpcomponents:fluent-hc",
"//lib/httpcomponents:httpclient",