Add top-level reviews API endpoint

Review Request #12297 — Created May 23, 2022 and submitted — Latest diff uploaded

Information

Review Board
release-5.0.x

Reviewers

Review resources are currently child resources of review requests. This limits
the type of queries we can do for reviews, for example we can't query for all
reviews created by a given user.

This change adds a top-level API endpoint for reviews. We register a root list
resource for reviews and support GET requests with the following query
parameters:
- user=<username>
- repository=<repoName>
- last-updated-from and last-updated-to
- review-group=<groupName>

Based on work by Taylor Christie at /r/12028.

  • Created unit tests for the root review resource and ran successfully

Diff Revision 12 (Latest)

orig
1
2
3
4
5
6
7
8
9
10
11
12

Commits

First Last Summary ID Author
style fixes
8f401d529c308b4b4bb1fef11ec67df5b78e37ba Michelle
added tests for excluding reviews that the requester does not have access to
12ddd87cbd945920d04200e17ce508fadb085adc Michelle
AUTHORS
docs/manual/webapi/2.0/resources/index.rst
docs/manual/webapi/2.0/resources/root-review-list.rst
reviewboard/webapi/resources/root.py
reviewboard/webapi/resources/root_review.py
reviewboard/webapi/tests/test_root_review.py
reviewboard/webapi/tests/urls.py
Loading...