"Trivial" publishes for review requests
Review Request #7022 — Created March 7, 2015 and submitted
Each time a review request is published, it will send an e-mail (assuming e-mails are turned on for the server as a whole). We want to add a checkbox with the label "Send E-Mail", in the green draft header. If the user un-checks this box before publishing, it will publish without sending an e-mail.
Tested with new diff, checked and unchecked for "Send E-Mail".
Tested with attachment only draft, checked and unchecked for "Send E-Mail".
Description | From | Last Updated |
---|---|---|
Col: 80 E501 line too long (82 > 79 characters) |
reviewbot | |
Col: 80 E501 line too long (86 > 79 characters) |
reviewbot | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
'PIPELINE_JS' imported but unused |
reviewbot | |
'PIPELINE_CSS' imported but unused |
reviewbot | |
Col: 33 W292 no newline at end of file |
reviewbot | |
Col: 18 E231 missing whitespace after ':' |
reviewbot | |
Col: 80 E501 line too long (82 > 79 characters) |
reviewbot | |
Col: 80 E501 line too long (86 > 79 characters) |
reviewbot | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
'PIPELINE_CSS' imported but unused |
reviewbot | |
'PIPELINE_JS' imported but unused |
reviewbot | |
Col: 33 W292 no newline at end of file |
reviewbot | |
Col: 18 E231 missing whitespace after ':' |
reviewbot | |
Col: 1 E101 indentation contains mixed spaces and tabs |
reviewbot | |
Col: 1 W191 indentation contains tabs |
reviewbot | |
Col: 15 E128 continuation line under-indented for visual indent |
reviewbot | |
We should hide this if siteconfig.get("mail_send_review_mail") is False. |
david | |
Please un-do this line. |
david | |
You could just add trivial=None in the argument list instead of this. |
david | |
No parens after not. Should just be ... and not trivial. |
chipx86 | |
Space before the />. |
chipx86 | |
No comma after "not". |
chipx86 | |
Can you change this to use single quotes? |
brennie | |
Can you change these to use single quotes? |
brennie | |
Single quotes. |
brennie | |
See next issue. This should be something like !this.$('#not-trivial').prop('checked') to make more sense semantically. |
brennie | |
So the property is trivial and the id for the checkbox is #trivial. However, the label associated for the checkbox … |
brennie | |
This should read something like "Determines if the review request's publish will not send an E-Mail." |
brennie | |
Can we call this context varable send_email? |
david | |
Because trivial is internally a boolean value, can you use options.trivial ? 1 : 0 ? |
david | |
Because trivial is internally a boolean value, can you use options.trivial ? 1 : 0 ? |
david | |
Please verify that trivial is false when e-mail is turned off (in case other people add handlers for the signal … |
david | |
Can you test to make sure that there are no javascript errors if e-mail is turned off? |
david | |
Col: 56 W291 trailing whitespace |
reviewbot | |
Col: 8 W291 trailing whitespace |
reviewbot | |
Col: 38 E226 missing whitespace around arithmetic operator |
reviewbot | |
Col: 74 W291 trailing whitespace |
reviewbot | |
Col: 21 E231 missing whitespace after ',' |
reviewbot | |
Col: 35 E226 missing whitespace around arithmetic operator |
reviewbot | |
Col: 25 E231 missing whitespace after ',' |
reviewbot | |
Col: 22 E225 missing whitespace around operator |
reviewbot | |
Col: 34 E226 missing whitespace around arithmetic operator |
reviewbot | |
Col: 34 E226 missing whitespace around arithmetic operator |
reviewbot | |
Col: 18 W291 trailing whitespace |
reviewbot | |
Col: 67 E225 missing whitespace around operator |
reviewbot | |
Col: 80 E501 line too long (99 > 79 characters) |
reviewbot | |
Col: 24 E228 missing whitespace around modulo operator |
reviewbot | |
Col: 65 E228 missing whitespace around modulo operator |
reviewbot | |
Col: 26 E225 missing whitespace around operator |
reviewbot | |
Col: 46 E231 missing whitespace after ',' |
reviewbot | |
Col: 50 E226 missing whitespace around arithmetic operator |
reviewbot | |
Col: 55 E226 missing whitespace around arithmetic operator |
reviewbot | |
Col: 38 E226 missing whitespace around arithmetic operator |
reviewbot | |
Col: 44 E226 missing whitespace around arithmetic operator |
reviewbot | |
Col: 71 E228 missing whitespace around modulo operator |
reviewbot | |
Col: 30 E225 missing whitespace around operator |
reviewbot | |
Col: 68 E226 missing whitespace around arithmetic operator |
reviewbot | |
Col: 80 E501 line too long (105 > 79 characters) |
reviewbot | |
Col: 28 E228 missing whitespace around modulo operator |
reviewbot | |
Col: 73 E225 missing whitespace around operator |
reviewbot | |
Col: 25 E226 missing whitespace around arithmetic operator |
reviewbot | |
Col: 44 E231 missing whitespace after ',' |
reviewbot | |
Col: 38 E226 missing whitespace around arithmetic operator |
reviewbot | |
The "for" name no longer matches the ID of the input element. |
david | |
Undo this change. A trailing comma in a JS object causes an error in some browsers. |
brennie |
- Summary:
-
[WIP] "Trivial" publishes for review requests"Trivial" publishes for review requests
- Description:
-
~ Each time a review request is published, it will send an e-mail (assuming e-mails are turned on for the server as a whole). This is done by adding a checkbox within the green draft bars that says "Send e-mail". If the user then un-checks this box before publishing, it would publish without sending an e-mail.
~ Each time a review request is published, it will send an e-mail (assuming e-mails are turned on for the server as a whole). We want to add a checkbox with the label "Send E-Mail", in the green draft header. If the user un-checks this box before publishing, it will publish without sending an e-mail.
- Testing Done:
-
~ I used Postman to send a PUT request to //0.0.0.0:8080/api/review-requests/1/draft/ with key = 'trivial'. If the value of 'trivial' is True, then an email log will not be created.
~ Tested with new diff, checked and unchecked for "Send E-Mail".
+ + Tested with attachment only draft, checked and unchecked for "Send E-Mail".
- Commit:
-
1f6e4961f325b35be0176084751606d131d335a479b39d51af00325dbc1875a2c8a52b25173fb4a7
- Diff:
-
Revision 2 (+27 -10)
-
Tool: PEP8 Style Checker Processed Files: reviewboard/notifications/email.py reviewboard/webapi/resources/review_request_draft.py reviewboard/settings.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Ignored Files: reviewboard/static/rb/js/resources/models/draftReviewRequestModel.js reviewboard/static/rb/js/models/reviewRequestEditorModel.js reviewboard/templates/reviews/review_header.html reviewboard/static/rb/js/views/reviewRequestEditorView.js Tool: Pyflakes Processed Files: reviewboard/notifications/email.py reviewboard/webapi/resources/review_request_draft.py reviewboard/settings.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Ignored Files: reviewboard/static/rb/js/resources/models/draftReviewRequestModel.js reviewboard/static/rb/js/models/reviewRequestEditorModel.js reviewboard/templates/reviews/review_header.html reviewboard/static/rb/js/views/reviewRequestEditorView.js
-
-
-
-
-
-
-
-
- Commit:
-
79b39d51af00325dbc1875a2c8a52b25173fb4a78c81d99d468a7cd742b05f0bea99ece26ed4801a
- Diff:
-
Revision 3 (+25 -11)
-
Tool: Pyflakes Processed Files: reviewboard/notifications/email.py reviewboard/webapi/resources/review_request_draft.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Ignored Files: reviewboard/static/rb/js/resources/models/draftReviewRequestModel.js reviewboard/static/rb/js/models/reviewRequestEditorModel.js reviewboard/templates/reviews/review_header.html reviewboard/static/rb/js/views/reviewRequestEditorView.js Tool: PEP8 Style Checker Processed Files: reviewboard/notifications/email.py reviewboard/webapi/resources/review_request_draft.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Ignored Files: reviewboard/static/rb/js/resources/models/draftReviewRequestModel.js reviewboard/static/rb/js/models/reviewRequestEditorModel.js reviewboard/templates/reviews/review_header.html reviewboard/static/rb/js/views/reviewRequestEditorView.js
-
-
-
- Commit:
-
8c81d99d468a7cd742b05f0bea99ece26ed4801a7f0baa51816b317f3e8365ec00b461c47a958e98
- Diff:
-
Revision 4 (+25 -11)
-
Tool: Pyflakes Processed Files: reviewboard/notifications/email.py reviewboard/webapi/resources/review_request_draft.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Ignored Files: reviewboard/static/rb/js/resources/models/draftReviewRequestModel.js reviewboard/static/rb/js/models/reviewRequestEditorModel.js reviewboard/templates/reviews/review_header.html reviewboard/static/rb/js/views/reviewRequestEditorView.js Tool: PEP8 Style Checker Processed Files: reviewboard/notifications/email.py reviewboard/webapi/resources/review_request_draft.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Ignored Files: reviewboard/static/rb/js/resources/models/draftReviewRequestModel.js reviewboard/static/rb/js/models/reviewRequestEditorModel.js reviewboard/templates/reviews/review_header.html reviewboard/static/rb/js/views/reviewRequestEditorView.js
- Commit:
-
7f0baa51816b317f3e8365ec00b461c47a958e9834270eeb4b635746b1a5a915ea033163bf8ef07d
- Diff:
-
Revision 5 (+29 -12)
-
Tool: Pyflakes Processed Files: reviewboard/reviews/views.py reviewboard/notifications/email.py reviewboard/webapi/resources/review_request_draft.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Ignored Files: reviewboard/static/rb/js/resources/models/draftReviewRequestModel.js reviewboard/static/rb/js/models/reviewRequestEditorModel.js reviewboard/templates/reviews/review_header.html reviewboard/static/rb/js/views/reviewRequestEditorView.js Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/notifications/email.py reviewboard/webapi/resources/review_request_draft.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Ignored Files: reviewboard/static/rb/js/resources/models/draftReviewRequestModel.js reviewboard/static/rb/js/models/reviewRequestEditorModel.js reviewboard/templates/reviews/review_header.html reviewboard/static/rb/js/views/reviewRequestEditorView.js
- Commit:
-
34270eeb4b635746b1a5a915ea033163bf8ef07da536edb00656dc6d6526a1a60c2e74327ac768a6
- Diff:
-
Revision 6 (+29 -12)
-
Tool: Pyflakes Processed Files: reviewboard/reviews/views.py reviewboard/notifications/email.py reviewboard/webapi/resources/review_request_draft.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Ignored Files: reviewboard/static/rb/js/resources/models/draftReviewRequestModel.js reviewboard/static/rb/js/models/reviewRequestEditorModel.js reviewboard/templates/reviews/review_header.html reviewboard/static/rb/js/views/reviewRequestEditorView.js Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/notifications/email.py reviewboard/webapi/resources/review_request_draft.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Ignored Files: reviewboard/static/rb/js/resources/models/draftReviewRequestModel.js reviewboard/static/rb/js/models/reviewRequestEditorModel.js reviewboard/templates/reviews/review_header.html reviewboard/static/rb/js/views/reviewRequestEditorView.js
-
-
-
-
-
See next issue. This should be something like
!this.$('#not-trivial').prop('checked')
to make more sense semantically. -
So the property is trivial and the id for the checkbox is
#trivial
. However, the label associated for the checkbox is "Send E-Mail."Semantically, I believe that the ID for the field should be
#not-trivial
so that the state of the check box is not the inverse of the state of the publish being trivial. -
This should read something like "Determines if the review request's publish will not send an E-Mail."
- Commit:
-
a536edb00656dc6d6526a1a60c2e74327ac768a6cca13ebe591eae71ac65c6384ccbff913902a175
- Diff:
-
Revision 7 (+29 -12)
-
Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/notifications/email.py reviewboard/webapi/resources/review_request_draft.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Ignored Files: reviewboard/static/rb/js/resources/models/draftReviewRequestModel.js reviewboard/static/rb/js/models/reviewRequestEditorModel.js reviewboard/templates/reviews/review_header.html reviewboard/static/rb/js/views/reviewRequestEditorView.js Tool: Pyflakes Processed Files: reviewboard/reviews/views.py reviewboard/notifications/email.py reviewboard/webapi/resources/review_request_draft.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Ignored Files: reviewboard/static/rb/js/resources/models/draftReviewRequestModel.js reviewboard/static/rb/js/models/reviewRequestEditorModel.js reviewboard/templates/reviews/review_header.html reviewboard/static/rb/js/views/reviewRequestEditorView.js
-
Tool: Pyflakes Processed Files: solution_template.py Tool: PEP8 Style Checker Processed Files: solution_template.py WARNING: Number of comments exceeded maximum, showing 30 of 38.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Diff:
-
Revision 9 (+29 -12)
-
Tool: Pyflakes Processed Files: reviewboard/reviews/views.py reviewboard/notifications/email.py reviewboard/webapi/resources/review_request_draft.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Ignored Files: reviewboard/static/rb/js/resources/models/draftReviewRequestModel.js reviewboard/static/rb/js/models/reviewRequestEditorModel.js reviewboard/templates/reviews/review_header.html reviewboard/static/rb/js/views/reviewRequestEditorView.js Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/notifications/email.py reviewboard/webapi/resources/review_request_draft.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Ignored Files: reviewboard/static/rb/js/resources/models/draftReviewRequestModel.js reviewboard/static/rb/js/models/reviewRequestEditorModel.js reviewboard/templates/reviews/review_header.html reviewboard/static/rb/js/views/reviewRequestEditorView.js
-
Hey Jessica,
There are a bunch of open issues in old reviews. Can you go through and mark them as fixed/dropped as appropriate? That way new reviewers will know what to look at.
- Commit:
-
cca13ebe591eae71ac65c6384ccbff913902a175253d8e50fbfed2a113d291bfc0da1f74dc2b38a3
- Diff:
-
Revision 10 (+29 -13)
-
Tool: Pyflakes Processed Files: reviewboard/reviews/views.py reviewboard/notifications/email.py reviewboard/webapi/resources/review_request_draft.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Ignored Files: reviewboard/static/rb/js/resources/models/draftReviewRequestModel.js reviewboard/static/rb/js/models/reviewRequestEditorModel.js reviewboard/templates/reviews/review_header.html reviewboard/static/rb/js/views/reviewRequestEditorView.js Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/notifications/email.py reviewboard/webapi/resources/review_request_draft.py reviewboard/reviews/signals.py reviewboard/reviews/models/review_request.py Ignored Files: reviewboard/static/rb/js/resources/models/draftReviewRequestModel.js reviewboard/static/rb/js/models/reviewRequestEditorModel.js reviewboard/templates/reviews/review_header.html reviewboard/static/rb/js/views/reviewRequestEditorView.js