]> git.ipfire.org Git - thirdparty/patchwork.git/commit
Move to msgid based URLs
authorDaniel Axtens <dja@axtens.net>
Thu, 12 Sep 2019 14:47:03 +0000 (00:47 +1000)
committerDaniel Axtens <dja@axtens.net>
Tue, 24 Sep 2019 21:40:19 +0000 (07:40 +1000)
commit5d7d5336dfeada28b036a5a3ba34d16ec8d83612
treeb921ab9cbc060c42ad62e7a1536c573f800d3ea7
parentab35df8c33a178b3b2349c1e4727393b94f5e916
Move to msgid based URLs

Migrate our URL schema as follows:

Patches:       /project/<linkname>/patch/<msgid>/
Cover Letters: /project/<linkname>/cover/<msgid>/

The usual sub-resources (mbox, raw) hang off those URLs.
The old style URLs (/patch/NNN/*, /cover/NNN/*) redirect appropriately.

I haven't attempted to do anything meaningful with series, and I
have dropped any attempt to provide a generic message-id lookup
or search functionality. One step at a time.

Our database still stores message ids as with angle brackets; we
just work around that rather than trying to migrate. That too can
come later if we think the pain is justified.

Partially-closes: #106
Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Reported-by-but-I-don't-want-to-spam: Linus Torvalds <torvalds@linux-foundation.org>
Reported-by: Stephen Finucane <stephen@that.guru>
Signed-off-by: Daniel Axtens <dja@axtens.net>
15 files changed:
patchwork/models.py
patchwork/templates/patchwork/partials/download-buttons.html
patchwork/templates/patchwork/partials/patch-list.html
patchwork/templates/patchwork/submission.html
patchwork/templatetags/patch.py
patchwork/tests/test_bundles.py
patchwork/tests/test_detail.py
patchwork/tests/test_encodings.py
patchwork/tests/test_mboxviews.py
patchwork/urls.py
patchwork/views/__init__.py
patchwork/views/comment.py
patchwork/views/cover.py
patchwork/views/patch.py
releasenotes/notes/new-url-schema-f1c799b5eb078ea4.yaml [new file with mode: 0644]