]> git.ipfire.org Git - thirdparty/patchwork.git/commit
Implement list filtering
authorVeronika Kabatova <vkabatov@redhat.com>
Wed, 14 Feb 2018 13:34:28 +0000 (14:34 +0100)
committerStephen Finucane <stephen@that.guru>
Tue, 27 Feb 2018 11:38:59 +0000 (11:38 +0000)
commita95fbf2aec91796d872c1d3db3c1c7d6f6243340
treed2d0c2cda1946ad1d5ec67a0a2e2b96fbfce00d9
parent2c92985a2ea96be524e1b3a98fc0fd708eb2ee31
Implement list filtering

Sometimes, multiple projects reside at the same mailing list. So far,
Patchwork only allowed a single project per mailing list, which made it
impossible for these projects to use Patchwork (unless they did some
dirty hacks).

Add a new property `subject_match` to projects and implement filtering
on (list_id, subject_match) match instead of solely list_id. Instance
admin can specify a regex on a per-project basis when the project is
created.

Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
Signed-off-by: Stephen Finucane <stephen@that.guru>
docs/api.yaml
patchwork/api/project.py
patchwork/migrations/0022_add_subject_match_to_project.py [new file with mode: 0644]
patchwork/models.py
patchwork/parser.py
patchwork/tests/test_parser.py
releasenotes/notes/list-filtering-4643d98b4064367a.yaml [new file with mode: 0644]