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@google.com>
Reviewed-by: Daniel Axtens <dja@axtens.net>
[dja: give the migration a more meaningful name]
Signed-off-by: Daniel Axtens <dja@axtens.net>
--- /dev/null
+# 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),
+ ),
+ ]
related_query_name='comment',
on_delete=models.CASCADE,
)
+ addressed = models.BooleanField(default=False)
@property
def list_archive_url(self):
related_query_name='comment',
on_delete=models.CASCADE,
)
+ addressed = models.BooleanField(default=False)
@property
def list_archive_url(self):