[PATCH 0/2] v2.2 fixups for OzLabs

Daniel Axtens dja at axtens.net
Tue Apr 14 16:21:00 AEST 2020


OzLabs found a way to get PW to try to load the entire patch db
in one query, which was melting things. Fix that.

In the process I realised there's no straightforward way to look up a
patch by message id in the API, which is a bit more of a problem as
the web UI moves to message-id URLs. I've written a simple filter
which I'm just going to shoehorn into 2.2.1. Yes, it's a breach of
semver conventions, but it's a pretty important feature that we should
have had all along, so best to get it in now before its absence
affects too many people.

Daniel Axtens (2):
  api: do not fetch every patch in a patch detail view 404
  api: allow filtering patches and covers by msgid

 docs/api/schemas/latest/patchwork.yaml         | 16 ++++++++++++++++
 docs/api/schemas/patchwork.j2                  | 18 ++++++++++++++++++
 docs/api/schemas/v1.2/patchwork.yaml           | 16 ++++++++++++++++
 patchwork/api/bundle.py                        |  3 ++-
 patchwork/api/embedded.py                      |  3 ++-
 patchwork/api/filters.py                       | 14 ++++++++++----
 patchwork/tests/api/test_cover.py              | 12 ++++++++++++
 patchwork/tests/api/test_patch.py              | 12 ++++++++++++
 .../rest-filter-msgid-41f693cd4e53cf93.yaml    |  6 ++++++
 9 files changed, 94 insertions(+), 6 deletions(-)
 create mode 100644 releasenotes/notes/rest-filter-msgid-41f693cd4e53cf93.yaml

-- 
2.20.1



More information about the Patchwork mailing list