commit | c2361402279405cb61903f6b40291cd783072692 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Thu Jun 30 11:33:47 2016 +0200 |
committer | Edwin Kempin <ekempin@google.com> | Fri Jul 01 09:54:10 2016 +0200 |
tree | c3815c05d6611985963b1dc96a19978986a4fce8 | |
parent | 4c8a1340a1b759b5443994c387ca24b6ea95f319 [diff] |
Support arbitrary account queries via REST GET /accounts/?q=<query> supports arbitrary account queries now. So far this REST endpoint was used for account suggestions, suggesting accounts for a substring that the user has typed. This will continue to work since this is handled by the default field for account queries. However if the provided query contains query operators a full-fledged account query is executed. This is undesired for account suggestions. This is why the old behaviour for account suggestions is preserved when the parameter 'suggest' is provided. The web UI and the java extension API are adapted to set this new parameter for account suggestions. For old clients the new REST endpoint provides enough backward compatibility so that they are not breaking as it is rather unlikely that a substring that was typed by a user contains a query operator. Using /accounts/?q=<query> for arbitrary account queries has the advantage that this is consistent with the REST endpoint for querying changes which is /changes/?q=<query>. Rename SuggestAccounts to QueryAccounts to reflect the new functionality and to have a consistent name with QueryChanges. Since the account query predicates are now exposed to external users this change also adds documentation for them. Change-Id: Iabe3e52893a17a21d4bfdec6dab737e0cebaea23 Signed-off-by: Edwin Kempin <ekempin@google.com>
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The IRC channel on freenode is #gerrit. An archive is available at: echelog.com.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Buck and run the following:
git clone --recursive https://gerrit.googlesource.com/gerrit cd gerrit && buck build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update & apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.