| commit | 66af3d8517f4ea6aeeb1b192cdb78dea24ecd3a2 | [log] [tgz] |
|---|---|---|
| author | Edwin Kempin <ekempin@google.com> | Tue Nov 10 17:38:40 2015 -0800 |
| committer | Edwin Kempin <ekempin@google.com> | Wed Nov 11 12:16:51 2015 -0800 |
| tree | dfb98c3424d666c237bddbb795635870183fc188 | |
| parent | 2df725626c54fe94b98615f97034ae053b1b20a6 [diff] |
Return list of reviewers as part of ChangeInfo ChangeInfo now includes the list of reviewers when DETAILED_LABELS are requested. So far the list of reviewers could only indirectly be computed from the returned approvals, but this relied on having a dummy 0 approval for users that were added as reviewer, but that haven't voted yet. When notedb is enabled we no longer store dummy 0 approvals for reviewers, but we track the list of reviewers explicitly in notedb. When notedb was enabled the ChangeIT#addReviewerToClosedChange() test was failing because it relied on the dummy 0 approvals. With this change, reviewers are now included in ChangeInfo, adapt the tests to look at this field instead of computing the list of reviewers from the approvals. When notedb is enabled the PostReviewers REST endpoint records users as 'REVIEWER' in notedb. If notedb is disabled the PostReviewers REST endpoint behaves differently. In this case it adds dummy 0 approvals for the users, but these translate into 'CC's when the ChangeInfo is constructed. Hence the tests that check on reviewers must do different assertions depending on whether notedb is enabled or not. Change-Id: I5e7b99d85d97abc43ac17da44b7179f4ceb3e268 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.