From nobody Fri Apr 19 17:05:31 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1530256706713419.7219283387236; Fri, 29 Jun 2018 00:18:26 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 24D0F3078AB7; Fri, 29 Jun 2018 07:18:26 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1787E309128B; Fri, 29 Jun 2018 07:18:26 +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 0B45B4BB78; Fri, 29 Jun 2018 07:18:26 +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 w5T7IOlB022473 for ; Fri, 29 Jun 2018 03:18:25 -0400 Received: by smtp.corp.redhat.com (Postfix) id EB58117C1B; Fri, 29 Jun 2018 07:18:24 +0000 (UTC) Received: from mx1.redhat.com (ext-mx03.extmail.prod.ext.phx2.redhat.com [10.5.110.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E24F45DD77 for ; Fri, 29 Jun 2018 07:18:23 +0000 (UTC) Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 46C68804EB for ; Fri, 29 Jun 2018 07:18:12 +0000 (UTC) Received: by mail-pg0-f65.google.com with SMTP id n2-v6so3602148pgq.6 for ; Fri, 29 Jun 2018 00:18:12 -0700 (PDT) Received: from localhost.localdomain ([112.196.135.81]) by smtp.gmail.com with ESMTPSA id m15-v6sm19337070pff.108.2018.06.29.00.18.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Jun 2018 00:18:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=qggtAyqqItsve8Znb6OW0S3p6vuTzZBaLXbxZaTP5eA=; b=knVzRnvGhOnZaTmgmOoO2bnr2LRB0I3gv04kVRUum8LM5wQbGLYl52Cd5DOi9/5cbp r9zPpyvEk3CLU8mrffFg3vs2tWwKzeVkUZA1aehCD5+Y/5+wiGi2pphCmoHRRFwwAGzw YisxgtdZkobfH2aVvINZqJ37PPpe2AGL2ray28SZVFXZHC6CkSSEWTiPxEdCU290KMfV r/9t2/pRbtdaAiP1x19nppCQePI37Tv1jjKGprOYB5SGbjnuXhK6gsC2zeWBnOX5gDiq W5VMpWfX0zZMko6HXi/6GAHKIYpzz1Lp4fw8wHXUgvVMUT0pq6kPg9aUEUHTmjnEiZ51 amGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qggtAyqqItsve8Znb6OW0S3p6vuTzZBaLXbxZaTP5eA=; b=W6SHXv6xKm8Dew3Q8BcyX1EcFncqEryFn1skIU4kaI2eh2ZH4WcA/9DakODVhFMtop zW/a6HNZTccLqe1gQR1kObvMIIpoFjykECuAvgY+SQ0Qb0GA9pOTVs/KckEkvhe0+e2E vyv23fgHZ93BYKP9ij41FcEmsS0Uy2tPVnL/bfE9y8fIw9PHXCfZWKBh00hozhYS26RR +gK4xgEtOAge9rfDtXQN7TyeKWpOm3qpSFzqAewnRwrO+YZSWlBUYqA5WGXu8hxxlqby hlhuDdu9fMAue5A7InETRtZ20yUjsnb80JJDbnQrCnS+oQr4j/QmMuOemWCX3lhfSu5A ZgfQ== X-Gm-Message-State: APt69E2CIVJbVzJUL9IVsynkse5s1QMXvCQUYo9X3ULHX8Hl9pyW/yeS yHSGZpRdUic9hO313CLL9mzvMQ== X-Google-Smtp-Source: ADUXVKJBjC7xgCqvWdZkql73reOKcF3EThHdXcGhycEALjlNpGe7QPVP/rT7YkNhxRhlT7Of5mFcww== X-Received: by 2002:a63:af14:: with SMTP id w20-v6mr11889107pge.47.1530256691222; Fri, 29 Jun 2018 00:18:11 -0700 (PDT) From: Shubham Jain To: patchew-devel@redhat.com Date: Fri, 29 Jun 2018 12:47:57 +0530 Message-Id: <20180629071757.84632-1-shubhamjain7495@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Fri, 29 Jun 2018 07:18:12 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Fri, 29 Jun 2018 07:18:12 +0000 (UTC) for IP:'74.125.83.65' DOMAIN:'mail-pg0-f65.google.com' HELO:'mail-pg0-f65.google.com' FROM:'shubhamjain7495@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.531 * (DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS, T_DKIM_INVALID) 74.125.83.65 mail-pg0-f65.google.com 74.125.83.65 mail-pg0-f65.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.27 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: patchew-devel@redhat.com Cc: Shubham Jain Subject: [Patchew-devel] [PATCH] Fix: Model Message 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Fri, 29 Jun 2018 07:18:26 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" While importing messages to the projects, the series wasn't updating like i= n the add_message_from_mbox(). Added in the create to support the REST api. Reviewed-by: Fam Zheng --- api/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/models.py b/api/models.py index b4f8468..2068ffd 100644 --- a/api/models.py +++ b/api/models.py @@ -294,6 +294,7 @@ class MessageManager(models.Manager): msg.save_mbox(mbox) msg.save() emit_event("MessageAdded", message=3Dmsg) + self.update_series(msg) return msg =20 def add_message_from_mbox(self, mbox, user, project_name=3DNone): --=20 2.15.1 (Apple Git-101) _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel