From nobody Thu Apr 25 18:53:05 2024 Delivered-To: importer2@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=patchew-devel-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1645525433; cv=none; d=zohomail.com; s=zohoarc; b=I/1N1xJVvEY8QgFC1sFWVHBnaY+3lG/3ywo8Ci7edGEqsQswfhJsXjWxysKuNNZEw5WuezgTGs7TFY4wP7SzqhTA/ybF0v2b2vnx7LtYgBCkXoQ+W3XiqJ2UaO+hOB4I43ZLlgqhT8NJwjZhIUIL8ZZmO469t5PPi/EITrot7G0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1645525433; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=QFK9LyadIRHXE0LUr9E2EV5QoPPGtWf4cqg1GFgdUnc=; b=nirD60MELZ3Sx7dqMb1VVDRO5FiYkzZQQZWXCgCKhe3lbKzz0AzBcQqDYevt0TVbkgGJuh4Nla/E9VOc6iUSu6zjga93CjW693jAXpoUvbB3c1kPAKvtuD3iBxCSzOjLMeF7dHCydNRjcBnrD1uwRxjXPmIjfk80InorfIuqGYs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1645525433173271.65107702623845; Tue, 22 Feb 2022 02:23:53 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-363-4qA79UygMF2F-m3MtbePxQ-1; Tue, 22 Feb 2022 05:23:49 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EDFD21006AAA; Tue, 22 Feb 2022 10:23:47 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E5F8D7835F; Tue, 22 Feb 2022 10:23:47 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id DEEE318087F1; Tue, 22 Feb 2022 10:23:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 21MALUMM017277 for ; Tue, 22 Feb 2022 05:21:30 -0500 Received: by smtp.corp.redhat.com (Postfix) id 0686C7A3EE; Tue, 22 Feb 2022 10:21:30 +0000 (UTC) Received: from avogadro.lan (unknown [10.39.195.136]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7185978A8D for ; Tue, 22 Feb 2022 10:21:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645525432; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=QFK9LyadIRHXE0LUr9E2EV5QoPPGtWf4cqg1GFgdUnc=; b=b5tnjCM1uqeTdLVK0idoG0N9UnOocyhhVk3MkeGqpQku4Tortksa/FuV9m2SwbVZbb5Pum hG53vT799DpULCfPxu2rzSHw+x/S2WEOVczzro4F+1DD0wzkJ6xmE0oNUIJfTCx9yqAeS8 mWzIULsGtkwbJHyHeMIssjsIJKAi7UU= X-MC-Unique: 4qA79UygMF2F-m3MtbePxQ-1 From: Paolo Bonzini To: patchew-devel@redhat.com Date: Tue, 22 Feb 2022 11:21:26 +0100 Message-Id: <20220222102126.166482-3-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] search: add "queue" search term X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=patchew-devel-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1645525435311100008 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- api/search.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/search.py b/api/search.py index 5d4529d..08b40c3 100644 --- a/api/search.py +++ b/api/search.py @@ -178,6 +178,7 @@ Syntax: - reject:USERNAME or nack:USERNAME - the series was marked as reject by t= he 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 + - queue:NAME - the series is in the given queue of the current user =20 USERNAME can be "me" to identify the current user =20 @@ -352,6 +353,9 @@ Search text keyword in the email message. Example: ): username =3D term[term.find(":") + 1 :] return self._make_filter_queue(username, user, name=3D"reject") + elif term.startswith("queue:"): + name =3D term[term.find(":") + 1 :] + return self._make_filter_queue("me", user, name=3Dname) elif term.startswith("review:") or term.startswith("reviewed:"): username =3D term[term.find(":") + 1 :] return self._make_filter_queue( --=20 2.34.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://listman.redhat.com/mailman/listinfo/patchew-devel