[PATCH 0/5] Add bundles to the REST API

Stephen Finucane stephen at that.guru
Sat Feb 25 23:05:19 AEDT 2017


This is mostly explained in the final patch of the series, but when working on
git-pw [1] I came to the conclusion that having the ability to download bundles
was probably something we should continue to support. Series do a lot, but they
don't offer the configurability of bundles (nor will they ever).

This series does some cleanup around bundle-related features before exposing
these resources via the API.

[1] https://github.com/stephenfin/git-pw/

Stephen Finucane (5):
  api: Prefetch Series.project
  models: Add Bundle.is_editable function
  models: Add 'mbox_url' permalink for bundles
  views: Stop using Bundle.public_url
  REST: Add '/bundle' endpoint

 patchwork/api/bundle.py                    | 80 ++++++++++++++++++++++++++++++
 patchwork/api/filters.py                   |  8 +++
 patchwork/api/series.py                    |  2 +-
 patchwork/models.py                        | 21 ++++----
 patchwork/templates/patchwork/bundles.html |  5 +-
 patchwork/urls.py                          |  7 +++
 patchwork/views/xmlrpc.py                  |  2 +-
 7 files changed, 108 insertions(+), 17 deletions(-)
 create mode 100644 patchwork/api/bundle.py

-- 
2.9.3



More information about the Patchwork mailing list