]> git.ipfire.org Git - thirdparty/patchwork.git/commit
views: Expose Series mbox
authorStephen Finucane <stephen@that.guru>
Mon, 6 Feb 2017 12:36:27 +0000 (12:36 +0000)
committerStephen Finucane <stephen@that.guru>
Tue, 4 Apr 2017 15:24:07 +0000 (16:24 +0100)
commit6deedfb7a7125eade8d6a84c8dfec89c08f54338
tree1840aad1923d8da20636d97e384233b3716d3b37
parente2dfd490d1250ae7cba58377903b2bcba082e75d
views: Expose Series mbox

It is possible to download a patch mbox with all dependencies. Now make
it possible to download the entire series. This takes the form of the
following URL when using the default routes:

    /series/{seriesID}/mbox/

Like the equivalent patch and bundle links, this will return a 404 if
'{seriesID}' does not match an existing series' ID. However, a 404 will
also be returned in the series is not complete, as indicated by
Series.total > Series.received_total. You can override this behavior by
providing the 'force' parameter:

    /series/{seriesID}/mbox/?force=1

Note that there are no current plans to provide a series-specific view,
a.k.a.

    /series/{seriesID}/

As a result, this particular URL will continue to return a 404.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Reviewed-by: Daniel Axtens <dja@axtens.net>
patchwork/models.py
patchwork/urls.py
patchwork/views/series.py [new file with mode: 0644]
patchwork/views/utils.py