Gerrit/Navigation

Gerrit's UI is pretty God-awful. One of the ways to address this is to fix the code. Since that's apparently impossible, a second approach is mitigation: better documentation can make Gerrit more usable.

Search
The search bar is powerful, but uses obscure keywords. The list of these keywords can be found here.

If you enter the e-mail address of a Gerrit participant, you'll see a list of his or her activity. Maybe.

Code inspection
Usually the underlying code can be found through a "gitweb" or "tree" link, either of which will take you to the Gitweb interface. These links are in a very small font and are easy to miss.

Commits lists
You can use  to get a list of commits based on several parameters, see documentation; search operators are the same as in the web interface, with some differences and more sugar. This requires developer access, and you may need to specify your.

This will give a list of unreviewed commits (add  to only have the count):

ssh -p 29418 @gerrit.wikimedia.org gerrit query 'status:open project:^mediawiki/.* AND NOT label:CodeReview=-2 AND NOT label:CodeReview=-1'

For a list of commits to all MediaWiki repos which have been, or need to be, reviewed by a user, Brion in the example:

ssh -p 29418 @gerrit.wikimedia.org gerrit query 'project:^mediawiki/.* reviewer:brion AND NOT owner:L10n-bot'

We're excluding the L10n-bot which sometimes alters the results.