Allow to search for ignored changes by "is:ignored"

Searching by "is:ignored" is the same as "star:ignore" but is a bit
more intuitive for users.

Change-Id: I63f41662ad1023c98fa746a892d5bfa050303879
This commit is contained in:
David Pursehouse
2017-04-27 17:16:48 +02:00
parent b782fc9279
commit 2b49892fc1
3 changed files with 9 additions and 0 deletions

View File

@@ -598,6 +598,10 @@ public class ChangeQueryBuilder extends QueryBuilder<ChangeData> {
return new SubmittablePredicate(SubmitRecord.Status.OK);
}
if ("ignored".equalsIgnoreCase(value)) {
return star("ignore");
}
try {
return status(value);
} catch (IllegalArgumentException e) {