InlineEdit: GET change edit using /changes/{id}/edit REST endpoint

Change-Id: Ib8c05ef2eeb307546162f54ac0c93e3c330cb3dd
Filter out irrelevant refs in TagMatcher

Improve performance by removing irrelevant refs in TagMatcher.newRefs.

Change-Id: I748d82267f21daa9204db47122c1756772da194c
Remove fixed limit of results returned by secondary index query

The global query limit capability can be set to any value in the
project settings, however in the query implementation the limit
is hard coded to 1000.

Remove the hard-coded limit so that the limit specified in the
global capability is honoured.

Bug: Issue 2879
Change-Id: I9974f43da7cf9902b7e46607d44abc7383f77ecd
Don't require secondary index when running daemon in slave mode

Add a dummy index implementation and install it when the daemon is
started in slave mode.

Make the reindex program exit with an error if run on a server that
is configured to run in slave mode.

Disable the query ssh command when in slave mode.

Change-Id: Ia323d7dfc3b8f333857ba310072e41943878c11b
Fix JS plugin load when using non-root Gerrit URLs

When Gerrit is not on the root URL path the JS plugins
failed to load because of the exact matching required
on the request URL.

Current check is now more flexible by checking only 
the suffix of the JS plugin path.

NOTE: In theory this may recognise even different URLs
than the intended one (e.g. /gerrit/bla/bla/bla/plugins/...)
but however they would not land on the HttpPluginServlet
anyway. That's why "endsWith" is good enough for this check.

Change-Id: I299b244a9fcdc9b00175e2054a7ba7363620979b
RebuildNotedb: Fix double Guice binding of NotesMigration instance

Once it was bound because it was annotated with @Singleton annotation and
then again explicitly in RebuildNotedb class.

Also add a check that notedb is only rebuilt when notes migration is
enabled.

Change-Id: Id42e08d34ce72f32766f67979548a350022dbdd5
ChangeNotes: Don't @Inject constructor

This is always constructed through a manual factory, and there is no
way @Injecting a Change would work.

Change-Id: I12c346d9c1ce40c3b713ab34dde649dd71b8e30d
ChangeUpdate: Fix incorrect write of review notes metadata

Review notes are read from the gits in the notedb folder, but
written to gits in the git folder.

Fix writing of notedb metadata to the same set of repositories that
is used to read from.

Change-Id: I3668d118a73a950df79955b2b1ffad153b1702da
Only call openMetadataRepository when notedb is enabled

This requires some slight ugliness of passing the NotesMigration down
into every AbstractChangeNotes so we can short-circuit during load().

Change-Id: I96a75fc3a7aa1005006e1b70bfb5506c2a0397f4
Allow plugins to reuse classes for caching resources

Plugins may want to implement a cache with own resources. For this it
is useful to reuse the resource classes from Gerrit instead of
reimplementing them in the plugin.

Change-Id: I7d42004aa7c9311bf12245d4348c27954ce6118e
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge "Filter out irrelevant refs in TagMatcher"
Fix javadoc of ConfigSuite

Format error in rendered HTML page in eclipse javadoc window
 1>  The line 'public abstract class MyAbstractTest { '
     was broke up into 2 lines and there is a redundant asterisk
     "*" before 'public' :
    ---
     * public
         abstract class MyAbstractTest {

    ---
 2>  Code line starting with annotation tag does not align with its
    following lines.

In the javadoc the example class 'MyTest' should be
'extends MyAbstractTest'.

This commit fixes all above issues.

Change-Id: Id3c0c0a02a012b8ad236c2ae86348b5cc4380df7
Merge "Fix javadoc of ConfigSuite"
InlineEdit: Implement CS2 integration

Change-Id: Iccbe4868b273b943b40ec90abb27100e22be7fe3
InlineEdit: Add UiActions support for change edits

Change-Id: I69989cfb3d4ddc29de8f308095d0c44536401716
InlineEdit: Expose UiAction to delete change edit

Change-Id: I921580aa9a74a4635bab6fcf2278d0bb228bad94
InlineEdit: Expose UiAction to publish change edit

Change-Id: I8a664d64307e756bddbba7b390d0e75d3dc5e9a5
InlineEdit: Expose UiAction to rebase change edit on latest patch set

Change-Id: I221b299952e06ee761cf2937f208f73665002e81
Add icon support for revision weblinks

Enables a plugin to provide a URL to an image that
is displayed as the img of the link.

This change breaks previous plugins using the WebLink extensionpoint
and that don't implement getImageUrl().

Change-Id: I8a59f28e0ea8d3462f9f20f8da563d949a7a2f8b
CommitBox: Show parent's subject as a tooltip

Change-Id: Idfa7aecd9f7a3c817a40f836a3933f8f8c5aaca4