[PATCH 00/13] Cover letter support

Stephen Finucane stephen.finucane at intel.com
Fri Mar 11 23:08:04 AEDT 2016


This is part two of three series intended to add functional series
support to Patchwork. Part one can be found here:

    https://lists.ozlabs.org/pipermail/patchwork/2016-March/002417.html

This series adds support for cover letters and replies to those cover
letters. Once applied, this means:

* Cover letters (and replies) will be parsed and added to the database
* Individual cover letters "details" will be visible in the web UI

This series does not cover:

* Listing of all cover letters a lá the '/patches' endpoint
* Linking of cover letters to patches, i.e. full series support

These will come in part three next week.

Seeing as this touches some very important parts of the codebase
(parsemail!) and includes some rather complicated migrations, I'd
really like some eyes on this. Please ping me if you have any
questions.

Cheers,
Stephen

Damien Lespiau (3):
  parsemail: Extract prefixes from subject
  parsemail: Parse series markers e.g. "1/12"
  parsemail: Extract building the list of mail references

Stephen Finucane (10):
  utils: Rework how notifications are selected
  models: Split Patch into two models
  models: Add Cover Letter support
  views: Integrate cover letter support
  parsemail: Flatten 'try_decode' method
  parsemail: Restructure 'parse_content'
  parsemail: Use consistent 'find_' format
  parsemail: Be consistent in variable naming
  parsemail: Add cover letter parsing
  parsemail: Handle cover letters sent in reply

 patchwork/admin.py                                 |  21 +-
 patchwork/bin/parsemail.py                         | 264 +++++++++++++--------
 patchwork/forms.py                                 |   2 +-
 patchwork/migrations/0009_add_submission_model.py  |  80 +++++++
 .../0010_migrate_data_from_submission_to_patch.py  |  48 ++++
 patchwork/migrations/0011_remove_temp_fields.py    | 121 ++++++++++
 patchwork/migrations/0012_add_coverletter_model.py |  24 ++
 patchwork/models.py                                |  56 +++--
 patchwork/paginator.py                             |  10 +-
 patchwork/settings/base.py                         |   2 +-
 patchwork/templates/patchwork/patch.html           | 239 -------------------
 patchwork/templates/patchwork/submission.html      | 244 +++++++++++++++++++
 patchwork/templatetags/syntax.py                   |   6 +-
 patchwork/tests/test_detail.py                     |  54 +++++
 patchwork/tests/test_mboxviews.py                  |   4 +-
 patchwork/tests/test_patchparser.py                | 196 ++++++++-------
 patchwork/tests/test_tags.py                       |   3 +-
 patchwork/tests/test_user.py                       |  12 +-
 patchwork/tests/utils.py                           |  23 +-
 patchwork/urls.py                                  |   5 +
 patchwork/utils.py                                 |  24 +-
 patchwork/views/__init__.py                        |   2 +-
 patchwork/views/cover.py                           |  49 ++++
 patchwork/views/patch.py                           |  28 ++-
 24 files changed, 1016 insertions(+), 501 deletions(-)
 create mode 100644 patchwork/migrations/0009_add_submission_model.py
 create mode 100644 patchwork/migrations/0010_migrate_data_from_submission_to_patch.py
 create mode 100644 patchwork/migrations/0011_remove_temp_fields.py
 create mode 100644 patchwork/migrations/0012_add_coverletter_model.py
 delete mode 100644 patchwork/templates/patchwork/patch.html
 create mode 100644 patchwork/templates/patchwork/submission.html
 create mode 100644 patchwork/tests/test_detail.py
 create mode 100644 patchwork/views/cover.py

-- 
2.0.0



More information about the Patchwork mailing list