]> 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:38:54 +0000 (17:38 +0100)
commitd05a2ff9b97e233036c7cc86e8cfbdccc3d313a0
tree6c29e93fe55b65273fc136571af6253582b6ec8d
parentb5769e6aabf6e42ffeb24f4a8edd88a54b11dd72
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>
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]