Optimize querying with private review requests.

When querying lists of review requests that contained private review
requests, the query ended up joining enough tables where the query could
take a substantial amount of time to execute.

This change optimizes the query by pulling out a couple of the more
expensive joins into a couple simple queries. The result is a much
faster query.

Reviewed at https://reviews.reviewboard.org/r/5669/
Support custom HTTP methods for hosting services API calls.

This extends the API set for HostingService to allow subclasses to call
other forms of HTTP methods. For now, I've only added HTTP DELETE, which
will be used by an upcoming change.
Added a management command for resetting GitHub auth tokens.

With the new Heartbleed vulnerability in the wild, GitHub recommends
resetting all authentication tokens, just to be sure. This change
introduces a management command that makes that somewhat easy.

This command will loop through all GitHub accounts that are linked to
Review Board, resetting their tokens and replacing them new, valid
tokens.

If using a registered GitHub OAuth app for Review Board, then the resets
won't require any credentials. However, for personal tokens (which is
the standard case), it will require a password, and possibly a
two-factor auth token.
Return a proper error for authorization failures in GitHub.

Authorization failures in GitHub were appearing as standard
HostingService errors. We now check the error code and properly return
an AuthorizationError.

Reviewed at https://reviews.reviewboard.org/r/5686/
Improve the note field for GitHub auth tokens.

When registering GitHub auth tokens, we send a note indicating what the
token is for. This was always hard-coded, making it hard to
differentiate tokens.

It also seems as if recently, GitHub started colliding tokens with the
same note.

To fix this, we now include part of the URL in the note, and also a
UUID. This should help prevent any future collisions.

Reviewed at https://reviews.reviewboard.org/r/5687/
Add release notes for 1.7.23.

This covers the fixes made in this release, and also has a section on
the impact of the Heartbleed vulnerability, with instructions on
resetting GitHub OAuth tokens.
Release Review Board 1.7.23.
Fix the rendering of the Manual Updates page.

A recent regression caused this page to render the wrong templates for
the update notifications. We now properly show the correct template.
Fix a missing endif tag for the Show SSH Public Key template.

When this change was backported to 1.7, an endif tag was left out. This
adds it back, and fixes indentation so that future mistakes won't be so
easily made.
Release Review Board 1.7.24.
Fix a typo in the Bitbucket team name help text.

We had an embarrassing typo where we said "hte" instead of "the".
Fix documentation for rb-site --db-name with sqlite3.

The --db-name parameter isn't "not used for sqlite3", but is rather the path to
the database file. Trivial fix.

Fixes bug 3304.