Adds general information about global capabilities, how the server
ownership is administered and what it looks like underneath, i.e.
refs/meta/config.
Change-Id: Ia0da5d692b7f3c43c4471668944bdcc9de3b3cd6
Signed-off-by: Fredrik Luthander <fredrik.luthander@sonymobile.com>
Signed-off-by: David Pursehouse <david.pursehouse@sonymobile.com>
Signed-off-by: David Ostrovsky <david@ostrovsky.org>
Getting change details includes detailed account information, but the
example didn't show the username for the AccountInfos.
Change-Id: If0ff49924e3aa57cee087f16f3087304488f957b
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
The documentation of AccountInfo claims that the username is included
if detailed account information is requested but this was not the
case.
Change-Id: Ic28cadb6b7236ce69b60cb9d237fe18eae01e8e0
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This updates the plugins to versions that are adapted to the
simplified GitReferenceUpdatedListener.Event API.
Change-Id: I0d01639c4738945aafd3920acdfbe26cf23c176b
The init always refers to gerrit.war, although the actual name
of the file may be different.
Change it to display the actual name of the file that was used
to install.
Change-Id: Ifb05773570f9c2c842d851a98cd59947a2d34698
So far the Event exposed the getUpdates method which implied that one
Event could contain updates of more than one reference. However, we
never made use of that feature. The only implementation of the Event
always returns only one Update.
The assumption that one Event could contain more than one reference
Update also made coding in [1] more complex than necessary.
This change simplifies that API in the sense that one Event corresponds
to one ref update only.
[1] https://gerrit-review.googlesource.com/#/c/50351/2/src/main/java/com/googlesource/gerrit/plugins/replication/PushResultProcessing.java
Change-Id: Ifdb27e22ae83f30a6af7f0b4e6bf6acbd85fe6e4
* stable-2.7:
Sync 2.7 release notes from master
Sync release notes from master
Fix: Review comments do not show up for unchanged files
Change-Id: Ia7ad03f4b6e4507dc346b35ee3e70adf26c577e3
The release notes were updated on the master branch, but did not
get synced the the 2.7 branch. Release notes build from stable-2.7
are not up to date.
Change-Id: If581bc8283e37755b38f52a000ca501e4a769928
* stable-2.6:
Sync release notes from master
Fix: Review comments do not show up for unchanged files
Change-Id: I68828f7debf75e03956703acdf4a03e1462c3af9
The release notes on master were updated to use links to the new
download site, but those updates were not reflected on the
stable-2.6 branch.
Also the release note for 2.6.1 is missing on stable-2.6, but
instead the release note for 2.6.2 (which does not exist) is
there. And there are several older release notes missing.
Sync the release notes from master to make them consistent.
Change-Id: I8facc676aeff754f092a5a9a7bf69345229a55f0
This was due to a copy/paste error into my editor's snippet library,
and it managed to sneak into 20 classes without anybody noticing.
Change-Id: Ifeea9ab5737acbed1b93519b65709f1c0f48684b
The currently specified version is no longer available on the
repository.
Update the BUCK config to use the latest release.
Change-Id: I918ef3fe3f899d5ab4682114586084f99a324403
Set the z-index of our widgets to 200. The highest z-index used by
CodeMirror3 is 100.
Bug: issue 2110
Change-Id: Ic3fd04db5deeba8649b3675509403e3f652b071d
The colors addded by 9294f6610d340d3 were too subtle and made it
very hard to see the shading or read the diff. Revert back to the
prior color scheme.
Change-Id: Iedebeb07c034947f160ced45c71a3b7e191ef82c
Custom secondary index implementations should be able to use this
module for writing index tests without linking against Lucene.
However, for other potential uses of this module for tests within
Gerrit, it makes sense to still use Lucene by default without
installing any additional modules. So, as a hack, keep the Lucene
dependency but construct it via reflection.
The same argument could be made about the H2 cache dependency, but the
specific use case we are interested in at the moment is the index
implementation, so extract that one first.
Change-Id: I7d213a9f233b819ec0bc6632323e65ac9b270200
This covers a good fraction of search operators for both SQL and
Lucene index types. Over the course of this several bugs and
inconsistencies in the existing implementations were discovered; some
have been fixed in previous changes, and some have the corresponding
assertions commented out in this change.
In addition to the few simple operators not yet covered, we do not yet
test many forms of compound queries.
Change-Id: I6e14116a56fc2a352f99bea930d6aed297c0749d
Add implementations for SQL and Lucene backends.
Convert to JUnit 4 so we can use @Ignore on the test, as Buck's test
runner does not skip abstract classes.
Change-Id: I1a9b6ed53e27cab81ea88ff4e8fece8e999596e0
Use InMemoryModule to inject everything needed to manually insert
commits into a repo and changes into a database, then query the
results.
Change-Id: I22f6d663039039dd4d3f2189e587dbd22f11252b
Control this with a config option, which is the easiest way to get it
injected. Do not document the option as it should just be used for
tests.
Change-Id: Ic7d5dd5e7a3495079bacc2c2830feb0af1fe6188
Storing the injector in the InMemoryDatabase instance was a hack.
Instead, move towards a more comprehensive Guice stack for tests by
moving this setup into a module.
Keep the same manual create()/drop() behavior of InMemoryDatabase,
though eventually we may want to do something with LifecycleManagers
and move towards a similar idiom to that used in the acceptance tests.
Change-Id: I917f6dab4751541fa63bfe3318818fbe4bda20f2
There was no rewrite rule matching this so the query processor
helpfully ANDed in status:open. Add one.
Change-Id: Ia9afcf0661d6e89d633588db3d0e7f4f60488477
All H2 caches must be created before the enclosing LifecycleManager
starts, therefore they must be created eagerly. If they are not, it is
possible for an assisted factory to attempt to create the cache for
the first time only when that factory's create() method is called (as
opposed to when the factory is injected).
Change-Id: I058d8783161ffc4274dd78337842ce55c53de183