RETIRED, Gerrit as used by OpenStack
Go to file
Shawn O. Pearce 31e7c6d4d8 Simplify patch display to a single RPC
A long time ago I thought it might make sense to make the RPCs for
patch display two parts.  The first part was a static patchScript
that only returns the file content, and thus could be infinitely
cacheable on edge proxies because the content never changes.
The second part was supposed to be a dynamic comment list, showing
the current comments in the file.

This didn't really work out.

The static patchScript code actually had to know what comments
existed at display time, in order to ensure sufficient context
lines were packaged for the client.  I also never got around to
teaching gwtjsonrpc how to perform cached GET requests.  Even if
we did, access control rules within a project could change the READ
permission from being public readable to being private, which would
mean edge proxies might still had that private data.

As it turns out, we can simplify the entire code base by putting
the two together as a single RPC.  We no longer need to perform an
RPC join in order to display the result in PatchScreen, and we can
cut in half the number of database queries required, as we used to
be doing the comment loading work twice per screen display.

Change-Id: Ic1a129ff507da0bbe97ca03ce31c566981ed3855
Signed-off-by: Shawn O. Pearce <sop@google.com>
2010-02-23 18:45:33 -08:00
Documentation documentation: Document database.pool* variables 2010-02-23 09:47:14 -08:00
gerrit-common Simplify patch display to a single RPC 2010-02-23 18:45:33 -08:00
gerrit-gwtdebug Update to GWT 2.0.1 2010-02-08 10:49:24 -08:00
gerrit-gwtui Simplify patch display to a single RPC 2010-02-23 18:45:33 -08:00
gerrit-httpd Simplify patch display to a single RPC 2010-02-23 18:45:33 -08:00
gerrit-launcher Fix package-before-copyright in GerritLauncher 2009-12-30 17:19:48 -08:00
gerrit-main Fixing Eclipse settings file 2010-01-20 15:17:02 -08:00
gerrit-patch-commonsnet Cleanup Maven build by pushing component dependencies down 2009-12-30 17:19:47 -08:00
gerrit-patch-jgit Highlight line-level (aka word) differences in files 2010-01-30 19:58:15 -08:00
gerrit-pgm Replace CDDL javax.servlet with APLv2 implementation 2010-02-23 09:22:46 -08:00
gerrit-prettify Fix whitespace ignore feature 2010-02-23 16:34:14 -08:00
gerrit-reviewdb Show download links as a tabbed panel 2010-02-22 12:41:07 -08:00
gerrit-server documentation: Document database.pool* variables 2010-02-23 09:47:14 -08:00
gerrit-sshd Fix database connection leak in git-receive-pack 2010-02-23 17:58:30 -08:00
gerrit-util-cli Teach all ssh commands to stop option parsing on -- 2010-01-16 14:04:45 -08:00
gerrit-util-ssl Start next release development 2009-12-21 13:27:30 -08:00
gerrit-war Replace CDDL javax.servlet with APLv2 implementation 2010-02-23 09:22:46 -08:00
ReleaseNotes Update 2.1.2 release notes to mention juniversalchardet 2010-02-23 15:02:13 -08:00
tools Include formatted HTML documentation in WAR 2010-02-22 09:38:49 -08:00
.gitignore Add standard eclipse generated files to .gitignore 2010-01-29 16:53:05 -08:00
COPYING Initial project setup of Gerrit 2 2008-11-14 16:59:34 -08:00
INSTALL Remove Gerrit 1.x to 2.x import tools 2009-03-27 20:20:10 -07:00
pom.xml Replace CDDL javax.servlet with APLv2 implementation 2010-02-23 09:22:46 -08:00
SUBMITTING_PATCHES Document how to contribute to Gerrit Code Review 2009-07-02 13:45:52 -07:00