]> git.ipfire.org Git - thirdparty/patchwork.git/commit
models: Modify behavior of Series.received_all
authorStephen Finucane <stephen@that.guru>
Mon, 6 Feb 2017 19:58:41 +0000 (19:58 +0000)
committerStephen Finucane <stephen@that.guru>
Wed, 1 Mar 2017 22:16:52 +0000 (22:16 +0000)
commit45ef7fdaf520d8f638988c271194d0f3c8f3df12
treeda095923c542a2c56b970220169bf046334b4ce7
parent837c5fd93595ef2d5f142642ea7248e08ab40c26
models: Modify behavior of Series.received_all

At the moment, Series.received_all is only true is the number of patches
received exactly matches the expected number of patches. However, there
are cases where there may in fact be more patches in the final series
than expected. For example, one could send patches with a subject of
'PATCH 5/4' in-reply-to an original four patch series. The parser
handles this correctly, so the 'received_all' property should too.

We still need to support patterns like '5/n', which are in use and do
not appear to be supported since 'c21b305'. This can be done at a later
stage.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Tested-by: Daniel Axtens <dja@axtens.net>
.gitignore
patchwork/models.py
patchwork/tests/series/base-extra-patches.mbox [new file with mode: 0644]
patchwork/tests/series/base-incomplete.mbox [new file with mode: 0644]
patchwork/tests/test_series.py