Fix Default reviewers not added to review request for committed change
Review Request #7691 — Created Oct. 10, 2015 and submitted
Information | |
---|---|
xutong | |
Review Board | |
release-2.0.x | |
3900 | |
Reviewers | |
reviewboard | |
Create a review request for a committed change via the "New Review Request" page. Default reviewer is not shown. The season of this bug is because the code of adding default reviewer is only called when posting change via RBtools.
To solve this, add default reviewers when creating a review request from a committed change
- Create a review request from "New Review Request" web UI, the default reviewer was shown.
- Run all the unit tests, and pass all the tests.
Description | From | Last Updated |
---|---|---|
Col: 1 W293 blank line contains whitespace |
![]() |
|
Col: 1 W293 blank line contains whitespace |
![]() |
|
Col: 77 W291 trailing whitespace |
![]() |
|
Undo this change. |
|
|
Undo this change. |
|
|
Col: 1 W293 blank line contains whitespace |
![]() |
|
Col: 1 W293 blank line contains whitespace |
![]() |

-
Tool: Pyflakes Processed Files: reviewboard/reviews/managers.py Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/managers.py
-
Hey Xutong! Thanks for the patch. Before this can land, we'll probably want a more comprehensive Summary, Description and Testing Done.
Please see: https://www.reviewboard.org/docs/codebase/dev/writing-good-descriptions/
-
Your summary is much improved but you still need more extensive description and testing done fields. Please also add the bug number into the bugs field.
Description: |
|
---|
Testing Done: |
|
---|
-
I have only two minor nitpicks for the code and a few general comments about your description and testing done.
Your summary doesn't need to mention what files were edited, that's what the diff is for :)
The description should be a high-level overview of what the issue was and how it was fixed.Also, your testing done should describe how you tested the code works, e.g.
- Ran unit tests - Created a post-commit review request and saw that the appropriate default reviewers were added.
You also have some grammar issues in your description and should probably give this a read: https://www.reviewboard.org/docs/codebase/dev/writing-good-descriptions/
-
-

-
Tool: Pyflakes Processed Files: reviewboard/reviews/managers.py Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/managers.py
-

-
Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/managers.py Tool: Pyflakes Processed Files: reviewboard/reviews/managers.py
-

-
Tool: Pyflakes Processed Files: reviewboard/reviews/managers.py Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/managers.py
Description: |
|
---|
Description: |
|
---|
Testing Done: |
|
---|
Description: |
|
---|
-
Your description and testing done are somewhat difficult to follow. I'd suggest being a little less verbose in the description, and making testing done a set of bullet points. For example:
When creating a review request for a committed change via the "New Review Request" page, default reviewers were not added to it. This was happening because the code to add those reviewers was only called when posting changes from RBTools. To fix this, in the review request manager, we now explicitly add default reviewers when creating a review request from a committed change.
Testing done: - Created a new review request from the web UI and saw that default reviewers were correctly added. - Ran unit tests.
Description: |
|
---|
Testing Done: |
|
---|
Description: |
|
---|