Add root comments APIs

Review Request #12037 — Created Feb. 4, 2022 and discarded — Latest diff uploaded

Information

Review Board
master

Reviewers

  • Registered root diff comments, root file attachment comments and root general comments API
  • Support GET method for list resources with query parameter:
  • Shared query parameters : review-request-id=<review-request-id> , review-id=<review-id>, user=<user-username>, is-reply
  • file-diff-id, line and interdiff-revision for diff comments, and file-attachment-id file-name for file attachment comments
  • Unit tests suites for comments API
  • Added added webapi_request_fields decorator to get_list for request parameters documentation
  • Updated the WebAPI documentations
  • Added unit tests for diff-comment, general-comment and file-attachment-comment with list resource and GET method

Diff Revision 2

This is not the most recent revision of the diff. The latest diff is revision 10. See what's changed.

orig
1
2
3
4
5
6
7
8
9
10

Commits

First Last Summary ID Author
register comments root APIs
6ead118a5c814c3e85d03f98aa1349bb195c0ee7 charlie-xiang
fix a bug in base file attachment comment from last commit
319cd6df612ef18096dc563ebfb8ec26ae48e340 charlie-xiang
add user name filter and add diff comment test suites
be7279791b2dd90f0c9dbd6fe5675589a30944e3 charlie-xiang
reviewboard/webapi/resources/base_diff_comment.py
reviewboard/webapi/resources/base_file_attachment_comment.py
reviewboard/webapi/resources/base_review_general_comment.py
reviewboard/webapi/resources/root.py
reviewboard/webapi/resources/root_diff_comment.py
reviewboard/webapi/resources/root_file_attachment_comment.py
reviewboard/webapi/resources/root_general_comment.py
reviewboard/webapi/tests/mimetypes.py
reviewboard/webapi/tests/test_root_diff_comment.py
reviewboard/webapi/tests/urls.py
Loading...