RETIRED, Gerrit as used by OpenStack
Go to file
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
.settings Eclipse: Bump java source and target level to 7 2013-11-29 00:15:50 +01:00
bucklets Buck: Allow to co-exist in tree and standalone plugins 2014-06-26 10:59:25 +02:00
contrib Allow to download reposize.sh script from Gerrit 2014-05-09 16:20:51 +02:00
Documentation Merge "Support to retrieve reflog entries by timestamp" 2014-07-05 11:21:09 +00:00
gerrit-acceptance-tests Merge "Support flushing a set of caches at once via REST" 2014-07-02 18:57:01 +00:00
gerrit-antlr Buck: Remove usage of genfile() 2014-06-10 07:14:18 +00:00
gerrit-cache-h2 Add REST endpoint to list caches 2014-05-28 09:29:12 +02:00
gerrit-common Remove unused abbreviation code from LabelType 2014-06-23 15:41:48 +02:00
gerrit-extension-api Merge changes If68c43e9,Ife5c2f21 2014-06-26 18:40:13 +00:00
gerrit-gwtdebug Prevent StackOverflowError in JettyTreeLogger 2014-02-07 12:54:18 +00:00
gerrit-gwtexpui Fix deprecation warnings introduced with upgrade to GWT 2.6.1 2014-05-30 16:43:47 +09:00
gerrit-gwtui Merge branch 'stable-2.9' 2014-07-09 10:43:12 +09:00
gerrit-gwtui-common Buck: Rename gwtxml to gwt_xml in gwt_module() 2014-05-19 12:26:50 -07:00
gerrit-httpd Add PatchLineCommentsUtil to assist with notedb migration 2014-07-09 11:47:44 -07:00
gerrit-launcher Apply "type inference for generic instance creation" Java 7 feature 2014-04-26 15:27:57 +02:00
gerrit-lucene Lucene: Use stored ChangedLines values 2014-05-23 10:53:23 -07:00
gerrit-main Build Main for Java 1.2 2013-11-30 01:53:00 -08:00
gerrit-openid Update Buck 2014-05-04 12:54:17 +02:00
gerrit-patch-commonsnet Replace 'for' loop with 'foreach' 2013-12-04 01:02:53 +04:00
gerrit-patch-jgit Buck: Rename gwtxml to gwt_xml in gwt_module() 2014-05-19 12:26:50 -07:00
gerrit-pgm Merge "Move bindings for cache related REST endpoints into own module" 2014-07-02 18:57:01 +00:00
gerrit-plugin-api Update version to 2.10-SNAPSHOT in pom.xml files 2014-06-04 13:09:27 +00:00
gerrit-plugin-archetype Update version to 2.8.6.1 2014-07-04 19:50:59 +09:00
gerrit-plugin-gwt-archetype Update version to 2.8.6.1 2014-07-04 19:50:59 +09:00
gerrit-plugin-gwtui Update version to 2.8.6.1 2014-07-04 19:50:59 +09:00
gerrit-plugin-js-archetype Update version to 2.8.6.1 2014-07-04 19:50:59 +09:00
gerrit-prettify Buck: Rename gwtxml to gwt_xml in gwt_module() 2014-05-19 12:26:50 -07:00
gerrit-reviewdb Add PatchLineCommentsUtil to assist with notedb migration 2014-07-09 11:47:44 -07:00
gerrit-server Add PatchLineCommentsUtil to assist with notedb migration 2014-07-09 11:47:44 -07:00
gerrit-solr Merge changes Iac79af54,Ief41eccc,Iae52ade9,I0bd9eabb,I2ef5b9e1 2014-02-13 17:02:23 +00:00
gerrit-sshd Add REST endpoint to list tasks 2014-07-04 10:42:26 +02:00
gerrit-util-cli ReceiveCommits: Add support for approvals 2014-05-08 17:08:44 -07:00
gerrit-util-ssl Remove unused .gitignore 2013-11-28 22:56:51 -08:00
gerrit-war Move bindings for cache related REST endpoints into own module 2014-07-01 10:44:34 +02:00
lib Merge branch 'stable-2.9' 2014-07-09 10:43:12 +09:00
plugins Update cookbook plugin to latest revision 2014-07-03 17:23:50 +09:00
ReleaseNotes Merge branch 'stable-2.9' 2014-07-09 10:43:12 +09:00
tools Merge branch 'stable-2.9' 2014-07-09 10:43:12 +09:00
website/releases Exclude gerrit-snapshot-* from releases page 2014-02-19 05:56:00 +00:00
.buckconfig Buck: Share buck cache directory between multiple source trees 2014-06-12 09:58:24 +02:00
.buckversion Update Buck 2014-06-24 20:40:48 +00:00
.gitignore Merge branch 'stable-2.9' 2014-05-27 09:58:38 +09:00
.gitmodules Add singleusergroup plugin 2013-11-09 07:45:00 +01:00
.pydevproject Set python version back to 2.6.5 in .pydevproject 2013-05-20 11:36:08 +09:00
BUCK Update Buck and use gwt_binary() 2014-05-19 11:41:31 -07:00
COPYING Initial project setup of Gerrit 2 2008-11-14 16:59:34 -08:00
INSTALL Remove Gerrit 1.x to 2.x import tools 2009-03-27 20:20:10 -07:00
SUBMITTING_PATCHES Update push URL in SUBMITTING_PATCHES 2012-03-29 00:57:14 -04:00
VERSION Merge branch 'stable-2.8' into stable-2.9 2014-07-08 18:24:26 +09:00