Add top-level comments APIs
Review Request #12296 — Created May 23, 2022 and submitted — Latest diff uploaded
Comment resources are currently child resources of reviews. This limits the type
of queries we can do for comments, for example we can't query for all diff
comments created by a given user.
This change adds top-level API endpoints for comments. We register root list
resources for diff comments, file attachment comments and general comments and
support GET requests for the resources with the following query parameters:
interdiff-revisionfor diff comments
file-namefor file attachment comments
This change also improves the docstrings and code readability for base diff
comments, base file attachment comments, and base general review comments.
Based on work by Chaoyu Xiang at /r/12037.
- Created GET method unit tests for the new resources and ran them successfully
- Manually tested the