Add new resources, part 7/7.
Review Request #14380 — Created March 20, 2025 and updated — Latest diff uploaded
This change adds the following new resource implementations:
- ArchivedReviewRequestItemResource
- ArchivedReviewRequestListResource
- MutedReviewRequestItemResource
- MutedReviewRequestListResourceThese resources are special because they do not support GET operations,
and the regular links introspection therefore doesn't work. The
implementation of these is therefore done as a custom layer that allows
us to get a "bare" instance of the resource, which can then be used for
create
ordelete
as appropriate.
- Ran unit tests.
- Used the new resources from a test script and saw that everything
worked as expected.
Diff Revision 3
This is not the most recent revision of the diff. The latest diff is revision 4. See what's changed.
orig
1
2
3
4
Commits
rbtools/api/resource/__init__.py |
---|
rbtools/api/resource/archived_review_request.py |
---|
rbtools/api/resource/base_archived_object.py |
---|
rbtools/api/resource/muted_review_request.py |
---|
rbtools/api/resource/root.py |
---|
rbtools/api/resource/user.py |
---|