Add support for listing pending checks by scheme prefix

We used to support those types of queries:
GET /plugins/checks~checks.pending/?query=checker:<checker-uuid>&state=<state>
GET /plugins/checks~checks.pending/?query=checker:<checker-uuid>

Often users want to know all the checks of a specific scheme, since they
are often related. It is time consuming to query all checks by UUID one
by one.
This change also supports query by scheme, in addition to query by UUID:
GET /plugins/checks~checks.pending/?query=scheme:<scheme_name>&state=<state>
GET /plugins/checks~checks.pending/?query=scheme:<scheme_name>

Those queries return all the relevant checks with that scheme, when
successful (it fails if there are more than 10 different UUID with that
scheme).

Change-Id: I70c74dbca699ffc4966c689cd0a97e17d9dedcf8
8 files changed
tree: 113955d6e77b343d687dbe4c1831b858e2b18c99
  1. gr-checks/
  2. java/
  3. javatests/
  4. proto/
  5. resources/
  6. test/
  7. .gitignore
  8. bower.json
  9. BUILD
  10. LICENSE
  11. README.md
README.md

Gerrit Code Review Checks Plugin

This plugin provides a unified experience for checkers (CI systems, static analyzers, etc.) to integrate with Gerrit Code Review.

This plugin uses polymer-cli to test.

After bower install, running polymer test -l chrome will run all tests in Chrome, and running polymer serve and navigating to http://127.0.0.1:8081/components/checks/gr-checks/gr-checks-view_test.html allows for manual debugging.