fixing Issue 3300:Add a confirmation when discarding a pending review
Review Request #6341 — Created Sept. 19, 2014 and submitted
When a user has a draft review, and opens up the "Edit Review" box to finalize their comments and publish, the "Discard Review" command did not confirm at all. Now it gives a prompt to discard or cancel.
Visually Tested (In Chome, and Firefox).
Wrote a review; both pressing and not pressing 'ok' under the comment.
Case 1: Clicking Discard Review, then clicking cancel. It takes away the prompt.
Case 2: Clicking Discard Review, then clicking discard. Discards the review and goes back to the review request.
Description | From | Last Updated |
---|---|---|
here it is |
AS asalahli | |
.hideAndReload() could be indented one more level |
dkus | |
The indentation in this line got unintentionally changed. Please change it back. |
david | |
This inline function has gotten quite long, with a lot of really deep indentation. Can you pull this into a … |
david | |
Is this var being used? |
dkus | |
Since _onDiscardClicked returns false, you can just do: .click(_.bind(this._onDiscardClicked, this)); |
david | |
This should be indented only 4 spaces. |
david | |
You've got a trailing space here. |
david | |
No space before (). |
chipx86 | |
Instead of embedding the localized string directly in the HTML, you should do: $('<input type="button"/>') .val(gettext('Cancel')) ... etc. The reason … |
chipx86 |
- Change Summary:
-
Added back this.close() and .hideAndReload() as part of the confirmed discard.
- Commit:
-
2a207300a16288610c622294043407e59d416a3443efb4efcabaf93a6760580557a342579420007d
-
Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js reviewboard/static/rb/js/views/draftReviewBannerView.js Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js reviewboard/static/rb/js/views/draftReviewBannerView.js
- Change Summary:
-
Indented .hideAndReload()
- Commit:
-
43efb4efcabaf93a6760580557a342579420007d5903d00d37cd8d0d6647b7b73f08a1148574b573
-
Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js reviewboard/static/rb/js/views/draftReviewBannerView.js Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js reviewboard/static/rb/js/views/draftReviewBannerView.js
- Change Summary:
-
Changed the wrong file, file reverted and the right file is changed.
- Commit:
-
5903d00d37cd8d0d6647b7b73f08a1148574b5730f7ec9c29e3aa5d18300d7b60538921424fbb8ec
-
Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js reviewboard/static/rb/js/views/draftReviewBannerView.js Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js reviewboard/static/rb/js/views/draftReviewBannerView.js
- Change Summary:
-
Changed back the wrong file for real this time
- Commit:
-
0f7ec9c29e3aa5d18300d7b60538921424fbb8eca9d123cf79d2158098fe774f039d62df3b8ac3ec
-
Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js
- Change Summary:
-
forgot the "this" in front of model
- Commit:
-
a9d123cf79d2158098fe774f039d62df3b8ac3ecdb9a096a76a72694effd17c29885429fe73f4868
-
Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js
- Change Summary:
-
Broke out the inline method that handles clicking on the discard button
- Commit:
-
db9a096a76a72694effd17c29885429fe73f4868e1e0c47044bccffb7ed7c0ce60f9ec7bd7bb8c0a
-
Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js
- Change Summary:
-
Made an explicit self variable, and collapsed the inline bind function for discard button.
- Commit:
-
e1e0c47044bccffb7ed7c0ce60f9ec7bd7bb8c0a6dd4701f2d1634b1df440a6acdeaec90b8d0c683
-
Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js
- Change Summary:
-
Added details to the 'testing done' field.
- Testing Done:
-
~ Tested visually, by publishing a review. Going to review it, add a comment and clicking the discard review button.
~ Tested visually, by publishing a review; both pressing and not pressing 'ok' under the comment.
+ + Case 1: Clicking Discard Review, then clicking cancel. It takes away the prompt.
+ Case 2: Clicking Discard Review, then clicking discard. Discards the review and goes back to the review request.
- Change Summary:
-
Deleted trailing space
- Commit:
-
6dd4701f2d1634b1df440a6acdeaec90b8d0c68308a9a707e3a4be7c45613836a5965bb507e87ab9
-
Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js
- Change Summary:
-
Pushed to release-2.0.x (8faeb03)
- Testing Done:
-
~ Tested visually, by publishing a review; both pressing and not pressing 'ok' under the comment.
~ Visually Tested (In Chome, and Firefox).
+ + Wrote a review; both pressing and not pressing 'ok' under the comment.
Case 1: Clicking Discard Review, then clicking cancel. It takes away the prompt.
Case 2: Clicking Discard Review, then clicking discard. Discards the review and goes back to the review request.