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:
@@ -367,6 +367,10 @@ destination branch.
|
|||||||
Mergeability of abandoned changes is not computed. This operator will
|
Mergeability of abandoned changes is not computed. This operator will
|
||||||
not find any abandoned but mergeable changes.
|
not find any abandoned but mergeable changes.
|
||||||
|
|
||||||
|
[[ignored]]
|
||||||
|
is:ignored::
|
||||||
|
+
|
||||||
|
True if the change is ignored. Same as `star:ignore`.
|
||||||
|
|
||||||
[[private]]
|
[[private]]
|
||||||
is:private::
|
is:private::
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ public class SearchSuggestOracle extends HighlightSuggestOracle {
|
|||||||
suggestions.add("is:merged");
|
suggestions.add("is:merged");
|
||||||
suggestions.add("is:abandoned");
|
suggestions.add("is:abandoned");
|
||||||
suggestions.add("is:mergeable");
|
suggestions.add("is:mergeable");
|
||||||
|
suggestions.add("is:ignored");
|
||||||
|
|
||||||
suggestions.add("status:");
|
suggestions.add("status:");
|
||||||
suggestions.add("status:open");
|
suggestions.add("status:open");
|
||||||
|
|||||||
@@ -598,6 +598,10 @@ public class ChangeQueryBuilder extends QueryBuilder<ChangeData> {
|
|||||||
return new SubmittablePredicate(SubmitRecord.Status.OK);
|
return new SubmittablePredicate(SubmitRecord.Status.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ("ignored".equalsIgnoreCase(value)) {
|
||||||
|
return star("ignore");
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return status(value);
|
return status(value);
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user