:p
atchew
Login
The review tag should cover both the accept and the reject queue. Add a watch tag too, so that it is possible to observe other people's watches. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> --- api/search.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/search.py b/api/search.py index XXXXXXX..XXXXXXX 100644 --- a/api/search.py +++ b/api/search.py @@ -XXX,XX +XXX,XX @@ Syntax: - accept:USERNAME or ack:USERNAME - the series was marked as accepted by the user - reject:USERNAME or nack:USERNAME - the series was marked as reject by the user - review:USERNAME - the series was marked as accepted or rejected by the user + - watch:USERNAME - the series is in the user's watched queue USERNAME can be "me" to identify the current user -- 2.20.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel
--- api/search.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/api/search.py b/api/search.py index XXXXXXX..XXXXXXX 100644 --- a/api/search.py +++ b/api/search.py @@ -XXX,XX +XXX,XX @@ Syntax: - accept:USERNAME or ack:USERNAME - the series was marked as accepted by the user - reject:USERNAME or nack:USERNAME - the series was marked as reject by the user - review:USERNAME - the series was marked as accepted or rejected by the user + - watch:USERNAME - the series is in the user's watched queue USERNAME can be "me" to identify the current user @@ -XXX,XX +XXX,XX @@ Search text keyword in the email message. Example: return Q(is_merged=True) return None - def _make_filter_review(self, username, user, **kwargs): + def _make_filter_queue(self, username, user, **kwargs): if username == "me": if not user.is_authenticated: # Django hack to return an always false Q object @@ -XXX,XX +XXX,XX @@ Search text keyword in the email message. Example: return self._make_filter_result(term[8:], status=Result.RUNNING) elif term.startswith("ack:") or term.startswith("accept:") or term.startswith("accepted:"): username = term[term.find(":") + 1:] - return self._make_filter_review(username, user, name="accept") + return self._make_filter_queue(username, user, name="accept") elif term.startswith("nack:") or term.startswith("reject:") or term.startswith("rejected:"): username = term[term.find(":") + 1:] - return self._make_filter_review(username, user, name="reject") + return self._make_filter_queue(username, user, name="reject") elif term.startswith("review:") or term.startswith("reviewed:"): username = term[term.find(":") + 1:] - return self._make_filter_review(username, user, name="accept") + return self._make_filter_queue(username, user, name__in=["accept", "reject"]) + elif term.startswith("watch:") or term.startswith("watched:"): + username = term[term.find(":") + 1:] + return self._make_filter_queue(username, user, name="watched") elif term.startswith("project:"): cond = term[term.find(":") + 1:] self._projects.add(cond) -- 2.20.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel