]> git.ipfire.org Git - thirdparty/patchwork.git/commit
api: change <pk> parameter to <cover_id> for cover comments endpoint
authorRaxel Gutierrez <raxel@google.com>
Fri, 20 Aug 2021 04:50:23 +0000 (04:50 +0000)
committerDaniel Axtens <dja@axtens.net>
Mon, 23 Aug 2021 08:48:29 +0000 (18:48 +1000)
commit38959bac4abb362ad577ca1da33cbca57fcd17a4
treead18bfb0a83830eacf8bdc1562afb3cfebbe3cb9
parentfe34ab2ffad348bc1c13a890f22f240d73705f34
api: change <pk> parameter to <cover_id> for cover comments endpoint

Rename cover lookup parameter `pk` to `cover_id` for the cover comments
list endpoints to disambiguate from the lookup parameter `comment_id` in
upcoming patches which introduces the cover comments detail endpoint.
This doesn't affect the user-facing API.

Signed-off-by: Raxel Gutierrez <raxel@google.com>
Reviewed-by: Stephen Finucane <stephen@that.guru>
[dja: fixup to apply on top of fecf7c86c2c5 and 0ed2feb26c84]
Signed-off-by: Daniel Axtens <dja@axtens.net>
patchwork/api/comment.py
patchwork/api/cover.py
patchwork/tests/api/test_comment.py
patchwork/urls.py