-
-
-
reviewboard/notifications/email.py (Diff revision 1) Col: 17 E126 continuation line over-indented for hanging indent
-
reviewboard/notifications/email.py (Diff revision 1) Col: 14 E126 continuation line over-indented for hanging indent
When user opens an issue and selects "Ship it!", the email will say "Fix it, then Ship it!"
Review Request #7685 — Created Oct. 9, 2015 and submitted
Information | |
---|---|
sherman | |
Review Board | |
release-2.0.x | |
3904 | |
Reviewers | |
reviewboard, students | |
When user opens an issue and selects "Ship it!", the email will say "Fix it, then Ship it!" This bug was fixed by checking if the user opened an issue and saying "Fix it, then Ship it!" if they did.
Bug Description:
1. A user makes a review request
2. A reviewer opens an issue but gives a "Ship it!"
3. The review request page updates with the "Fix it, then Ship it!" label on the submitted review
4. The sent notification email incorrectly labels the review as "Ship it!". It should read "Fix it, then Ship it!"
Tested the behavior using the local development server and printed email to the terminal. The emails were sent with the correct content.
Ran and passed all unit tests.
Description | From | Last Updated |
---|---|---|
Col: 5 E303 too many blank lines (2) |
![]() |
|
Col: 17 E126 continuation line over-indented for hanging indent |
![]() |
|
Col: 14 E126 continuation line over-indented for hanging indent |
![]() |
|
With this change, we're now showing "Fix it, then ship it!" always, even if the review didn't include the "ship … |
|
|
Col: 13 E131 continuation line unaligned for hanging indent |
![]() |
|
Col: 13 E131 continuation line unaligned for hanging indent |
![]() |
|
Col: 21 E701 multiple statements on one line (colon) |
![]() |
|
You fixed the .html template but it needs the same fix here. |
|
|
Likewise here. Also, we can put the <p> inside the first {% if %} block tag. |
|
|
The indentation of this is off. it should be: ``` {% if ship_it %} {% if has_issues %} Fix it, … |
|


-
Tool: Pyflakes Processed Files: reviewboard/notifications/email.py Ignored Files: reviewboard/templates/notifications/review_email.txt reviewboard/templates/notifications/review_email.html Tool: PEP8 Style Checker Processed Files: reviewboard/notifications/email.py Ignored Files: reviewboard/templates/notifications/review_email.txt reviewboard/templates/notifications/review_email.html
-
-
reviewboard/templates/notifications/review_email.txt (Diff revision 2) With this change, we're now showing "Fix it, then ship it!" always, even if the review didn't include the "ship it" flag. What we should have is a nested conditional:
{% if ship_it %} {% if has_issues %} Fix it, then Ship it! {% else %} Ship it! {% endif %} {% endif %}
Change Summary:
Updated to display no message if the user does not select "Ship it!" and there are no issues.
Diff: |
Revision 3 (+17 -2) |
---|

-
Tool: PEP8 Style Checker Processed Files: reviewboard/notifications/email.py Ignored Files: reviewboard/templates/notifications/review_email.txt reviewboard/templates/notifications/review_email.html
-
reviewboard/notifications/email.py (Diff revision 3) Col: 13 E131 continuation line unaligned for hanging indent
-
reviewboard/notifications/email.py (Diff revision 3) Col: 13 E131 continuation line unaligned for hanging indent
-
reviewboard/notifications/email.py (Diff revision 3) Col: 21 E701 multiple statements on one line (colon)

-
Tool: Pyflakes Processed Files: reviewboard/notifications/email.py Ignored Files: reviewboard/templates/notifications/review_email.txt reviewboard/templates/notifications/review_email.html Tool: PEP8 Style Checker Processed Files: reviewboard/notifications/email.py Ignored Files: reviewboard/templates/notifications/review_email.txt reviewboard/templates/notifications/review_email.html
Change Summary:
Improve summary of the changes
Summary: |
|
||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
-
-
reviewboard/templates/notifications/review_email.txt (Diff revision 4) You fixed the .html template but it needs the same fix here.

-
Tool: Pyflakes Processed Files: reviewboard/notifications/email.py Ignored Files: reviewboard/templates/notifications/review_email.txt reviewboard/templates/notifications/review_email.html Tool: PEP8 Style Checker Processed Files: reviewboard/notifications/email.py Ignored Files: reviewboard/templates/notifications/review_email.txt reviewboard/templates/notifications/review_email.html
-
-
reviewboard/templates/notifications/review_email.html (Diff revision 5) Likewise here. Also, we can put the
<p>
inside the first{% if %}
block tag. -
reviewboard/templates/notifications/review_email.txt (Diff revision 5) The indentation of this is off. it should be:
```
{% if ship_it %}
{% if has_issues %}
Fix it, then Ship it!
{% else %}
Ship it!
{% endif %}
{% endif %}
Change Summary:
Fixed indentation and formatting for review_email html and txt
Diff: |
Revision 6 (+21 -3) |
---|

-
Tool: Pyflakes Processed Files: reviewboard/notifications/email.py Ignored Files: reviewboard/templates/notifications/review_email.txt reviewboard/templates/notifications/review_email.html Tool: PEP8 Style Checker Processed Files: reviewboard/notifications/email.py Ignored Files: reviewboard/templates/notifications/review_email.txt reviewboard/templates/notifications/review_email.html