Add option to elastic-recheck-graph to pick a single queue

In preperation for providing a web page that will just show hits on the
gate queue, add a '-q queue' option to elastic-recheck-graph.

Change-Id: I9217a2ceedf86ffe04851084df78238384fccd51
This commit is contained in:
Joe Gordon
2014-01-30 13:16:54 -08:00
parent 611fb9daaa
commit c9602ca826
3 changed files with 20 additions and 3 deletions

View File

@@ -59,6 +59,13 @@ def generic(raw_query, facet=None):
return query
def single_queue(query, queue, facet=None):
"""A query for a single queue."""
return generic('%s '
'AND build_queue:"%s" ' %
(query, queue), facet=facet)
def result_ready(review, patch, name, short_build_uuid):
"""A query to determine if we have a failure for a particular patch.