From nobody Tue Apr 16 16:39:30 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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.133.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=1645467341; cv=none; d=zohomail.com; s=zohoarc; b=NBjECOAUcF+Jvf2uk8DIkBdpX6DyHNjKPoisUkm2pa0/uP69i4NUqDQAk5Eb447AdKhhD5TgZiB2Il4hpF9L5IQ1h+dAXMcnJMSK1bOYl+3IcIYMBx0ETtRP4OPUIh4IS0xOrDSLE41flDTHJOTx6D+psouINlwQWKQx2QryMlk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1645467341; 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=Rw3dv+lhiJJdVZvl5kzt9ajLynIA41RD76Acc1uflXI=; b=fBFhnXghwbB3MEc+6XmDDI1vJ3EEaL0+BpiYMSaa9ehSZG7vLwP1IrlMy1OmdxleThA2Dl2qjVQNjVE61sjbgUK8eD16zhOL+7w7c2+S50qIQYQutd1V6jimQ5OngP7v8Ilwqp0itX/jOUNlgzqI/wOuzzSSaq+XhvdtNL9JHps= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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.133.124]) by mx.zohomail.com with SMTPS id 1645467341098722.6345762006679; Mon, 21 Feb 2022 10:15:41 -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-368-2XnRs7zAPsi66XHAe9T_Jg-1; Mon, 21 Feb 2022 13:15:38 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DBCAF1006AA6; Mon, 21 Feb 2022 18:15:37 +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 D4BC178AB9; Mon, 21 Feb 2022 18:15:37 +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 C9D241809CAA; Mon, 21 Feb 2022 18:15:37 +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 21LIFa5r009254 for ; Mon, 21 Feb 2022 13:15:36 -0500 Received: by smtp.corp.redhat.com (Postfix) id C0E29798AB; Mon, 21 Feb 2022 18:15:36 +0000 (UTC) Received: from avogadro.lan (unknown [10.39.195.136]) by smtp.corp.redhat.com (Postfix) with ESMTP id 327A878AB9 for ; Mon, 21 Feb 2022 18:15:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645467340; 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=Rw3dv+lhiJJdVZvl5kzt9ajLynIA41RD76Acc1uflXI=; b=VPZAJ7Yp8E8zGXNHDcu6TCaEoasxVhYNs0DbYu6rGLLXCifahtybuMjBXPQXKNoXSNnDne YK5tAbtRGHdVQ8YzdYaS+uBIIHlBrbGzFnUb6SFcHqRKMYm6FDsG1/tIysbX7bsFn1u38j ktb2cembx/bLW/H9B5kuRX6TJTF67HE= X-MC-Unique: 2XnRs7zAPsi66XHAe9T_Jg-1 From: Paolo Bonzini To: patchew-devel@redhat.com Date: Mon, 21 Feb 2022 19:15:35 +0100 Message-Id: <20220221181535.115908-1-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] maintainer: raise events for accept/reject actions 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.14 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: 1645467341424100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- mods/maintainer.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mods/maintainer.py b/mods/maintainer.py index ff4b3b0..6b12593 100644 --- a/mods/maintainer.py +++ b/mods/maintainer.py @@ -80,12 +80,8 @@ class MaintainerModule(PatchewModule): to_create, to_delete =3D "accept", "reject" else: to_create, to_delete =3D "reject", "accept" - QueuedSeries.objects.filter( - user=3Drequest.user, message=3Dmsg, name=3Dto_delete - ).delete() - QueuedSeries.objects.get_or_create( - user=3Drequest.user, message=3Dmsg, name=3Dto_create - ) + self._drop_from_queue(request.user, msg, to_delete) + self._add_to_queue(request.user, msg, to_create) return HttpResponseRedirect(request.META.get("HTTP_REFERER")) =20 def _delete_review(self, request, message_id): --=20 2.34.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://listman.redhat.com/mailman/listinfo/patchew-devel