Return the correct user from the last update resource
Review Request #9709 — Created April 25, 2018 and submitted
A while back we started recording who published review requests in the
ChangeDescriptionso that re-assigned review requests showed proper
history (instead of just showing the new author doing everything).
This patch updates theReviewRequestLastUpdateResourceto take this
information into account.As a part of this change,
ReviewRequest.get_last_activityhas been
deprecated in favour of a new method,
ReviewRequest.get_last_activity_info, which returns a dict of
information, including the relevantChangeDescription, which can be
used to determine the author of the update.Additionally, unit tests have been added to cover the last update
resource's behaviour.
Ran unit tests.
| Description | From | Last Updated |
|---|---|---|
|
E303 too many blank lines (2) |
|
|
|
F841 local variable 'updated_obj' is assigned to but never used |
|
|
|
I feel like we have three test cases here that should probably be three separate test methods. |
|
|
|
This blank line should go away too. |
|
|
|
This blank line should go away too |
|
|
|
Leftover debug output? |
|
|
|
We have a new section for docstrings. It goes before Args: Deprecated: 4.0: See blah blah... |
|
|
|
Missing "Args". |
|
|
|
Missing indentation. No need for quotes, just the double backticks. Same below. |
|
|
|
Remove the blank line. |
|
|
|
is self, probably? |
|
|
|
Swap these. |
|
|
|
No blank line. |
|
|
|
Blank line between these. |
|
|
|
Blank line between these. |
|
- Change Summary:
-
Fix flake8 issues.
- Commit:
-
ec551762e43e0580b147639f2bac06e88a6a7a4d2db094959b282aa218b0e50343cede90a16b54d5
- Diff:
-
Revision 2 (+526 -5)
Checks run (2 succeeded)
- Change Summary:
-
Address David's feedback.
- Commit:
-
2db094959b282aa218b0e50343cede90a16b54d5e4708c16572c32d700db33fad4fa12782f999645
- Diff:
-
Revision 3 (+590 -17)
Checks run (2 succeeded)
- Change Summary:
-
Addressed Christian's feedback.
- Commit:
-
e4708c16572c32d700db33fad4fa12782f999645e70cd048726c693d7c8a0db1ee0c253742eddef9
- Diff:
-
Revision 4 (+590 -17)
Checks run (2 succeeded)
- Change Summary:
-
Commit changes before posting

- Commit:
-
e70cd048726c693d7c8a0db1ee0c253742eddef977756b590c0b7a3ac54a82b1d23deeb8ea74530e
- Diff:
-
Revision 5 (+602 -17)