Files
gerrit/gerrit-reviewdb/src/test/java
Edwin Kempin 51ec1bd093 Notedb: Fix loading of draft comment refs
The draft comment refs are stored in the metadata repository, but the
code tried to load them from the original repository. As result the
loaded ref set was always empty (except when gerrit.noteDbPath was set
to the same path as gerrit.basePath).

Once draft comment refs were found the parsing of the Change ID's from
the refs failed with a NumberFormatException.

The new code scans only for draft comment refs of the author. This is
more efficient than scanning all draft comment refs and then filtering
out all draft comment refs that were not for the author.

Due to these bugs when Notedb was enabled, the 'Reply' button on the
ChangeScreen was not highlighted when there were draft comments on the
change.

Change-Id: I4e0906cc838cfad02aa43ab5fb8e46d0efe189c2
Signed-off-by: Edwin Kempin <ekempin@google.com>
2015-10-26 11:41:23 +01:00
..