gerrit/gerrit-reviewdb
Yacob Yonas d710c0cfd8 Add PatchLineCommentsUtil to assist with notedb migration
Like ApprovalsUtil and ChangeMessagesUtil, we added an abstraction
layer to assist in the migration to notedb. So far, we have only
migrated published comments over to the notedb (drafts still are only
stored in the reviewdb). This utility class helps to read published
comments from either the notedb or the ReviewDb depending on the state
of the NotesMigration instance.

Additionally, in this change, I modified all callers of
PatchLineCommentAccess that query for only published comments to
instead use the corresponding methods in the PatchLineCommentsUtil.

Finally, the test class, CommentsTest, had to be modified to add the
ability to test reading published comments from the notedb, so I
created a separate Config in that class to test the notedb path.

Change-Id: I3a5637dda5d97df335c40d5cda22165ecf1d8232
2014-07-09 11:47:44 -07:00
..
src/main Add PatchLineCommentsUtil to assist with notedb migration 2014-07-09 11:47:44 -07:00
BUCK Buck: Rename gwtxml to gwt_xml in gwt_module() 2014-05-19 12:26:50 -07:00