commit | 61f54a0a096c14147129a50966860d82f096daeb | [log] [tgz] |
---|---|---|
author | Patrick Hiesel <hiesel@google.com> | Fri May 24 13:48:23 2019 +0200 |
committer | Patrick Hiesel <hiesel@google.com> | Tue May 28 10:46:58 2019 +0200 |
tree | 28e9e4e81639ef02995e4267662d63267f1cccca | |
parent | d93d259c23a9143e72926a4cc970a72ec3ad4763 [diff] |
Ship initally required data in index.html Gerrit's UI dispatches a number of requests to the server when it initially loads. These are to obtain server configs, server version and account data. These round trips add additional time when the App starts. This commit ships the most relevant data in-line directly in index.html. On the server, this is almost for free because when rendering index.html, we already authenticated the user, so inline this data is cheap. The server information is static, so it is also cheap to inline. We expect this to help reduce the App's startup on slow networks. We render the data using Gson and Soy. Soy has a predefined ordainer to render JSON data. We use this to safely escape values. Change-Id: I8e9cc077fa7212ca782b1ec334d41b872a3fd470
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 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 7 based Gerrit image:
docker run -p 8080:8080 gerritforge/gerrit-centos7[:version]
To run a Ubuntu 15.04 based Gerrit image:
docker run -p 8080:8080 gerritforge/gerrit-ubuntu15.04[:version]
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.