Closed Bug 1291628 Opened 8 years ago Closed 8 years ago

Review comment lost after hitting 'publish'

Categories

(MozReview Graveyard :: Review Board: User Interface, defect, P1)

Production
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sebastian, Assigned: davidwalsh)

References

Details

Attachments

(2 files)

See attached screenshot (for reference).

I wrote a lengthy review comment, updated the review state and pressed "Publish". Unfortunately I was required to hit "OK" first. Because of this I lost my comment and had to retype it. This is clearly a 'user error' but it would be nice if the interface could prevent me from doing something stupid. :)
Ah, I have a feeling the publish button inside the old dialog would perform a save, and we didn't make sure the button in the banner now does that.

David, any chance you could look into making sure the draft banner's publish will perform a save of all the text fields when the drop down is open?
Flags: needinfo?(dwalsh)
Comment on attachment 8777476 [details]
MozReview: 'maybeSave' unpublished comments within dropdown dialog (Bug 1291628).

https://reviewboard.mozilla.org/r/69004/#review66084

::: reviewboard/reviewboard/static/rb/js/views/draftReviewBannerView_mozreview.js:178
(Diff revision 1)
>       * Handler for the Publish button.
>       *
>       * Publishes the review.
>       */
>      _onPublishClicked: function() {
> +        this._RDVInstance._saveReview(true);

In cases where the dialog hasn't been opened, this will fail won't it?
Attachment #8777476 - Flags: review?(smacleod) → review-
Comment on attachment 8777476 [details]
MozReview: 'maybeSave' unpublished comments within dropdown dialog (Bug 1291628).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/69004/diff/1-2/
Attachment #8777476 - Flags: review- → review?(smacleod)
https://reviewboard.mozilla.org/r/69004/#review66084

> In cases where the dialog hasn't been opened, this will fail won't it?

Good catch; so many ways to use this dialog.  Updated to accommodate said situation.
Comment on attachment 8777476 [details]
MozReview: 'maybeSave' unpublished comments within dropdown dialog (Bug 1291628).

https://reviewboard.mozilla.org/r/69004/#review66816

This *seems* like it should be fine to me... lets cross our fingers.
Attachment #8777476 - Flags: review?(smacleod) → review+
Flags: needinfo?(dwalsh)
Severity: normal → critical
Priority: -- → P1
Assignee: nobody → dwalsh
AFAIK this just needs deploy
Pushed by smacleod@mozilla.com:
https://hg.mozilla.org/webtools/reviewboard/rev/677d00d65abc
MozReview: 'maybeSave' unpublished comments within dropdown dialog . r=smacleod
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: