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
ChangeDescription
so that re-assigned review requests showed proper
history (instead of just showing the new author doing everything).
This patch updates theReviewRequestLastUpdateResource
to take this
information into account.As a part of this change,
ReviewRequest.get_last_activity
has 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) |
reviewbot | |
F841 local variable 'updated_obj' is assigned to but never used |
reviewbot | |
I feel like we have three test cases here that should probably be three separate test methods. |
david | |
This blank line should go away too. |
david | |
This blank line should go away too |
david | |
Leftover debug output? |
david | |
We have a new section for docstrings. It goes before Args: Deprecated: 4.0: See blah blah... |
chipx86 | |
Missing "Args". |
chipx86 | |
Missing indentation. No need for quotes, just the double backticks. Same below. |
chipx86 | |
Remove the blank line. |
chipx86 | |
is self, probably? |
chipx86 | |
Swap these. |
chipx86 | |
No blank line. |
chipx86 | |
Blank line between these. |
chipx86 | |
Blank line between these. |
chipx86 |
- 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)