]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: Fix issues with comment-related events
authorStephen Finucane <stephen@that.guru>
Fri, 30 Sep 2022 13:21:09 +0000 (14:21 +0100)
committerStephen Finucane <stephen@that.guru>
Fri, 30 Sep 2022 16:46:45 +0000 (17:46 +0100)
commit271537733ec0fe6e549527b076a3020c9e821570
tree970c0e627e31b5b2308c67ee3dc56f48ec4b61ce
parent40bf7ca613b09f34d872af509a6453cf8766ef68
REST: Fix issues with comment-related events

When we introduced this functionality, we missed the fact that these
resources use nested-style URLs that need to be specially handled. Fix
this now.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: e3d8f7548 ("REST: Add 'patch-comment-created', 'cover-comment-created' events")
Cc: Siddhesh Poyarekar <sipoyare@redhat.com>
Cc: DJ Delorie <dj@redhat.com>
Cc: Carlos O'Donell <carlos@redhat.com>
(cherry picked from commit d05a2ff9b97e233036c7cc86e8cfbdccc3d313a0)
patchwork/api/base.py
patchwork/api/embedded.py
patchwork/api/event.py
patchwork/tests/api/test_event.py
releasenotes/notes/issue-499-1ee87a1e9d502dc6.yaml [new file with mode: 0644]