From patchwork Fri Aug 20 04:50:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raxel Gutierrez X-Patchwork-Id: 1518914 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20161025 header.b=Wf6ZwGwM; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GrTjn6HJ8z9sWl for ; Fri, 20 Aug 2021 14:51:09 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4GrTjn58Gqz3cLw for ; Fri, 20 Aug 2021 14:51:09 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20161025 header.b=Wf6ZwGwM; dkim-atps=neutral X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=flex--raxel.bounces.google.com (client-ip=2607:f8b0:4864:20::74a; helo=mail-qk1-x74a.google.com; envelope-from=3otqfyqukczyh0n4b6ee6b4.2ecf0j27mehab8iji.epb01i.eh6@flex--raxel.bounces.google.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20161025 header.b=Wf6ZwGwM; dkim-atps=neutral Received: from mail-qk1-x74a.google.com (mail-qk1-x74a.google.com [IPv6:2607:f8b0:4864:20::74a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4GrTjJ1Kh2z30MC for ; Fri, 20 Aug 2021 14:50:44 +1000 (AEST) Received: by mail-qk1-x74a.google.com with SMTP id y185-20020a3764c20000b02903d2c78226ceso5704508qkb.6 for ; Thu, 19 Aug 2021 21:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=1JiEoduWLNwfe4aFc7LehYqSDyxHe3skTSOkDEkB6Oo=; b=Wf6ZwGwMo6ayT8wdWCWlH1TuC3ZlMJl1ZsLjuhZGTL3TDjzZsphq65zkhUMA/Vw9W4 71R6+npzbdgZLGQ2rOdWrRS2KocpFhpWh5KwVP/ySZ1wlozoubG7nGaQ5HWga17DILGO ToGKR4ArvyIUsHnjHwY2mIopAhWtck+J2Y3LetMIdHb1v9JuxBurm9ISQFSd3/tksntO G7aigilkJa8ZQc8wtZd5I/60Z9DWJPRjckhWS8kNIHBH7km79PqN98iqdalNwRyQmcvm F59PoMYQP9Hw32G2mzE0VOKHrtZz543ECwXKIzofd5Ccf1bKWqkEZQZJxItuOaAGq5Pk SplQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=1JiEoduWLNwfe4aFc7LehYqSDyxHe3skTSOkDEkB6Oo=; b=d+r8HBvDd0pJi0ICkPeYfyKjvMYahvj9Qxa/dY3sZ6BNctMdcp+K4s3xDbTR4TTg1V TkeYx16VbITaiAim/7hRsev9HPGIrrecX4PsciLjdebw6kMVopVOd2MDea82V5lGsXhn RHNRPg0QIxCilBaWjMPUBMutOaQ2u6AgRbjV/OHM7P5PdL3RLRC7jvOgS+r+f7fojiRv zdrH/K37yW8gKJfwiwa+TtmihCD7Xj4JQ0dGHT0s4DaPef9T0iLg0knQX5ywKIHojM5/ EGHgUBUwq41SLw+rN6fviD+b0+BXTRwaqH+6AdLieYUDc5RYzPeXEVYWc0LBFt4O4jFx EtVQ== X-Gm-Message-State: AOAM532dlUbvDQ+wSvYr9c7jqPEdgMSAMTb0LqxYjMQ/FmLx3+orkVkf teBIU2cHEOTSfK7brqz59qJh+GhxjNb2iqX+4QNT39kg2OE6mSxRjVGy4vNIfPeWpHIN1/wk2QV 0JaOmOvEL/EdDs3a3soV/IQVSwQF+omQJIfJuAfOj+NSYXvvjq2o6caRW5obMjl1M X-Google-Smtp-Source: ABdhPJxQ6C7xGVDJc3JRb9suwATmz9nPDR1XwxB5E9ceoWEJowRrWr73rkPFn3lKcN9qvLHL8d9ydKYDjg== X-Received: from raxel-pw.c.googlers.com ([fda3:e722:ac3:cc00:14:4d90:c0a8:2fda]) (user=raxel job=sendgmr) by 2002:a05:6214:324:: with SMTP id j4mr18231898qvu.22.1629435041094; Thu, 19 Aug 2021 21:50:41 -0700 (PDT) Date: Fri, 20 Aug 2021 04:50:25 +0000 In-Reply-To: <20210820045030.3364156-1-raxel@google.com> Message-Id: <20210820045030.3364156-5-raxel@google.com> Mime-Version: 1.0 References: <20210820045030.3364156-1-raxel@google.com> X-Mailer: git-send-email 2.33.0.rc2.250.ged5fa647cd-goog Subject: [PATCH v4 4/9] models: add addressed field From: Raxel Gutierrez To: patchwork@lists.ozlabs.org X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" Currently, there is no state or status associated with comments. In particular, knowing whether a comment on a patch or cover letter is addressed or not is useful for transparency and accountability in the patch review and contribution process. This patch is backend setup for tracking the state of patch and cover comments. Add `addressed` boolean field to patch and cover comments to be able to distinguish between unaddressed and addressed comments in the patch-detail page. Signed-off-by: Raxel Gutierrez Reviewed-by: Daniel Axtens --- .../migrations/0045_auto_20210817_0136.py | 23 +++++++++++++++++++ patchwork/models.py | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 patchwork/migrations/0045_auto_20210817_0136.py diff --git a/patchwork/migrations/0045_auto_20210817_0136.py b/patchwork/migrations/0045_auto_20210817_0136.py new file mode 100644 index 00000000..ed3527bc --- /dev/null +++ b/patchwork/migrations/0045_auto_20210817_0136.py @@ -0,0 +1,23 @@ +# Generated by Django 3.1.12 on 2021-08-17 01:36 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('patchwork', '0044_add_project_linkname_validation'), + ] + + operations = [ + migrations.AddField( + model_name='covercomment', + name='addressed', + field=models.BooleanField(default=False), + ), + migrations.AddField( + model_name='patchcomment', + name='addressed', + field=models.BooleanField(default=False), + ), + ] diff --git a/patchwork/models.py b/patchwork/models.py index 00273da9..90e34815 100644 --- a/patchwork/models.py +++ b/patchwork/models.py @@ -657,6 +657,7 @@ class CoverComment(EmailMixin, models.Model): related_query_name='comment', on_delete=models.CASCADE, ) + addressed = models.BooleanField(default=False) @property def list_archive_url(self): @@ -693,6 +694,7 @@ class PatchComment(EmailMixin, models.Model): related_query_name='comment', on_delete=models.CASCADE, ) + addressed = models.BooleanField(default=False) @property def list_archive_url(self):