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

Changes between revision 9 and 10

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

Commits

Summary ID Author
style fixes
b6c09163cab5c656015ee6192b1f5ac419ca4547 Michelle
added tests for excluding reviews that the requester does not have access to
df90bd8e7b9fcd0cb31f1e772ec785e565c89f20 Michelle
style fixes
e126b6602631eae52175d0b235854054c07745f5 Michelle
added tests for excluding reviews that the requester does not have access to
6e87e387df920d483986d8bb5e7813e3642633d6 Michelle
reviewboard/webapi/resources/root_review.py
reviewboard/webapi/tests/test_root_review.py
Loading...