[PATCH 0/4] RFC for relations API

Daniel Axtens dja at axtens.net
Wed Jan 29 00:55:19 AEDT 2020


I have a bad habit of sitting on code for so long that it's no longer
clear if I'm still working on it or not. So, in trying to break that
habit, here's the current state of the relations model and API. It
works, AFAICT, and I think the API design is Stephen friendly.

I haven't done all the PEP8ing, nor have I optimised the database
queries or fixed up a couple of nits I have with the patch that adds
the model, but it's sufficient to smoke-test and get any feedback on
the API before I get really attached to it :P

Regards,
Daniel

Daniel Axtens (2):
  pyenv: also install requirements for python2
  do not apply: disable validation of requests

Mete Polat (2):
  models, templates: Add patch relations
  REST: Add submission relations

 patchwork/admin.py                            |   8 +
 patchwork/api/embedded.py                     |  23 ++
 patchwork/api/event.py                        |   8 +-
 patchwork/api/patch.py                        | 112 ++++++-
 .../migrations/0040_add_related_patches.py    |  42 +++
 patchwork/models.py                           |  32 +-
 patchwork/signals.py                          |  24 ++
 patchwork/templates/patchwork/submission.html |  37 +++
 patchwork/tests/api/test_relation.py          | 304 ++++++++++++++++++
 patchwork/tests/api/utils.py                  |  16 +-
 patchwork/tests/utils.py                      |  11 +
 patchwork/views/patch.py                      |  13 +
 .../add-patch-relations-c96bb6c567b416d8.yaml |  11 +
 tools/docker/Dockerfile                       |  16 +-
 14 files changed, 640 insertions(+), 17 deletions(-)
 create mode 100644 patchwork/migrations/0040_add_related_patches.py
 create mode 100644 patchwork/tests/api/test_relation.py
 create mode 100644 releasenotes/notes/add-patch-relations-c96bb6c567b416d8.yaml

-- 
2.20.1



More information about the Patchwork mailing list