commit | c6737c9d629bf5f660ae775091172a7b0a44262a | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Tue Jun 28 00:07:06 2022 +0100 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Fri Oct 14 16:52:20 2022 +0100 |
tree | c2dbedd69c1843b9b5894a4fd1c44e9ed10de3f4 | |
parent | e6fae09ab9ded4928940535ab7ab6f778e443cc1 [diff] |
Resolve accounts by imported externalId When an account's serverId does not match the one defined in gerrit.config, then use the 'imported' external ids in the accounts for reverse lookup of the accountId. This allows to correctly understand and associate the imported changes coming from repositories of other Gerrit servers to the correct accounts locally. Example scenario: User John has account 100 on Gerrit A having serverId=server-id-a and creates a Change A. The same user registers later on Gerrit B having serverId=server-id-b and is associated with the account 200. Gerrit B's config set importedServerId=server-id-a, the repository containing Change A is copied to Gerrit B and the Gerrit admin runs a reindex on it. By adding the additional externalId=imported:100@server-id-a the ChangeNotesParser can lookup the correct account-id when parsing the Change A. When browsing Change A on Gerrit A or Gerrit B, John appears to be the owner of the change on both of them, even if he has two different accountIds on the two severs. Release-Notes: Allows to lookup Change's accounts by importedServerIds. Forward-Compatible: checked Change-Id: I2f017af1cbb9f584e06152407cf864503738afb0
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.