[PATCH v4 4/9] models: add addressed field
Raxel Gutierrez
raxel at google.com
Fri Aug 20 14:50:25 AEST 2021
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 <raxel at google.com>
Reviewed-by: Daniel Axtens <dja at axtens.net>
---
.../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):
--
2.33.0.rc2.250.ged5fa647cd-goog
More information about the Patchwork
mailing list