Assume status:open if the query isn't executable
Rather than throwing back an obtuse error about not being able to
execute a query string, add in the status:open and retry to plan the
query with the rewriter. It should succeed this time and give us a
data source that can actually evaluate. We assume status:open because
uses are primarily interested in the open changes when they enter a
query, and the set that is open is smaller than the set that is
closed. Users can also pretty quickly realize we are only showing
them open changes and modify their query if they needed to search
closed ones.
Change-Id: Ieaf78bde3201767eaeb973c015785413597e409a
Signed-off-by: Shawn O. Pearce <sop@google.com>
2 files changed