Add new resources, part 7/7.
Review Request #14380 — Created March 20, 2025 and updated
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.
Summary | ID |
---|---|
1f3be896d12e52ad681b0597efe89d9ad47d3e2b |
Description | From | Last Updated | ||
---|---|---|---|---|
Missing period. |
|
|||
LINKS_TOK sorts before ListResource. |
|
|||
I can't remember if the base class has been updated for keyword-onlyness. If so, we should fix that here and … |
|
|||
But it would be nice (here and below) to call as keyword arguments to be explicit. |
|
|||
Should be updated for the full module path. |
|
|||
Here, too. |
|
|||
"URI template"? |
|
|||
Each of these code samples should have double backticks around them. |
|
|||
"url" -> "URL". |
|
|||
Any way we can avoid repeating all this, given the complexity? |
|
|||
These aren't unused, they get passed to the parent __init__. |
![]() |
|||
Here and below say "Xeyword" now :p |
![]() |
|||
Same here. |
![]() |
|||
Should be MutedReviewRequestItemResource and say "item resource" here. |
![]() |
|||
Add a "Version Added" for this. |
![]() |
|||
Copy-paste-o referring to API token? |
![]() |
|||
Should be ArchivedReviewRequestItemResource |
![]() |
|||
Copy-paste-o referring to API token? Same below |
![]() |
|||
Should say MutedReviewRequestItemResource |
![]() |
|||
There are no open issues |
- Commits:
-
Summary ID a0e719b6a23093e84dfabe0e349da19edf1a30d9 f4155273ca3ea56a9510901ae17c9c01af1709a0
Checks run (2 succeeded)
- Commits:
-
Summary ID f4155273ca3ea56a9510901ae17c9c01af1709a0 085d5a97a4ee53d355630f5a41447337d46499d1