[PATCH v2 0/6] Add series support

Stephen Finucane stephenfinucane at hotmail.com
Sun Sep 4 10:24:12 AEST 2016


Add support for series. Series are groups of patches sent as one
bundle. For example:

    [PATCH 0/3] A cover letter
      [PATCH 1/3] The first patch
      [PATCH 2/3] The second patch
      [PATCH 3/3] The third patch

The following features are currently provided:

Parsing
=======

* Creation of new series, and linking of patches/cover letters to
  existing series
* Rudimentary linking of different series revisions as one series

UI
==

* Series column in patch-list
* Series and related patches/cover letters links in patch-detail
* Filtering by series
* Integration with Django-admin

There are some important notes regarding how this is implemented:

* We *never* expose 'Series' to the end-user. Instead, "related
  series" should be exposed
* Patches form a one-to-one relationship with SeriesReference.
  Auto-completion of series should be done in the view code, rather
  than the database

Changes since v1:
- Dropped auto-complete patches - this feature will be addressed
  separately
- Added unit tests
- Merged some patches

Stephen Finucane (6):
  models: Convert functions to properties
  models: Add 'Series' model and related models
  parser: Add series parsing
  templates: Generate and use a "handle"
  templates: Integrate series support
  templates: Integrate series view into patches

 htdocs/css/style.css                           |   6 ++
 patchwork/admin.py                             |  70 ++++++++++++-
 patchwork/filters.py                           |  56 ++++++++++-
 patchwork/migrations/0014_add_series_models.py |  56 +++++++++++
 patchwork/models.py                            | 130 +++++++++++++++++++++++--
 patchwork/parser.py                            | 113 +++++++++++++++++++--
 patchwork/templates/patchwork/patch-list.html  |  12 +++
 patchwork/templates/patchwork/submission.html  |  50 +++++++++-
 patchwork/templatetags/person.py               |  12 +--
 patchwork/tests/test_parser.py                 | 111 +++++++++++++++++----
 patchwork/tests/utils.py                       |  32 ++++++
 patchwork/views/__init__.py                    |   4 +-
 patchwork/views/patch.py                       |   4 +-
 patchwork/views/user.py                        |   2 +-
 patchwork/views/xmlrpc.py                      |   2 +-
 15 files changed, 602 insertions(+), 58 deletions(-)
 create mode 100644 patchwork/migrations/0014_add_series_models.py

-- 
2.7.4



More information about the Patchwork mailing list