commit | 74a3945b982e96232d9ea82c7cb5239935183d56 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Tue Jan 17 08:34:14 2023 +0100 |
committer | Edwin Kempin <ekempin@google.com> | Tue Jan 17 08:11:24 2023 +0000 |
tree | a56c3b7638ac2cf346378f4e0fc36284e3f81c8b | |
parent | 1983ac7a8cf43416c76de26bdffde97ae8a7ef34 [diff] |
Reland "Fix error when using the message operator with regex on ..." This relands change I99e2b8a3d that was reverted by change I4e551ac53. The problem with the original change was that it no longer used the checkFieldAvailable method to throw the QueryParseException. This method is overridden in SubmitRequirementChangeQueryBuilder to suppress field checks for operators that are used in submit requirement expressions. Since submit requirement expressions are evaluated in memory the version of the index and the available fields do not matter for them. Fix this by changing the checkFieldAvailable method so that it supports an arbitrary error message. This way we can also use it to throw the QueryParseException with the improved error message. Checking for an unsupported operator is done by the checkOperatorAvailable method now that delegates to the checkFieldAvailable method. This way all QueryParseExceptions are thrown from the checkFieldAvailable method and overriding it in SubmitRequirementChangeQueryBuilder to suppress the exceptions for submit requirement expressions works in all cases. Change-Id: I6c73ecadfa0bfaaa70aaf7c2050fc1df555760f7 Bug: Google b/264478714 Release-Notes: skip
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 Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Bazel and run the following:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit && bazel 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>]
On Fedora run:
dnf clean all && dnf install gerrit-<version>[-<release>]
Docker images of Gerrit are available on DockerHub
To run a CentOS 8 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-centos8
To run a Ubuntu 20.04 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-ubuntu20
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.