Closed Bug 794459 Opened 13 years ago Closed 13 years ago

"Profile updated" message displayed twice

Categories

(Marketplace Graveyard :: Consumer Pages, defect, P2)

x86_64
Windows 7
defect

Tracking

(Not tracked)

VERIFIED FIXED
2012-11-08

People

(Reporter: vcarciu, Assigned: basta)

References

()

Details

(Whiteboard: [janus])

Attachments

(1 file)

Attached image Screenshot
Prerequisites: Android 4.0.4, Firefox Nightly installed Steps to reproduce: 1.Go to https://marketplace-dev.allizom.org/ and press "Settings" button 2.Modify something to your profile(eg. Display name) 3.Press "Save changes" button twice Expected results: "Profile updated " message is displayed only one time. Actual results: "Profile updated" message is displayed twice Please see attached screenshot for this bug. NOTE: Reproducible also on desktop , responsive design view(320x480)
This happens for a lot of forms. We ought to just prevent double clicks on submit buttons.
This seems to contradict bug 798357, but assigning to basta since he's got the other bug. Preventing double clicks wfm.
Assignee: nobody → mattbasta
Priority: -- → P2
Target Milestone: --- → 2012-10-11
Target Milestone: 2012-10-11 → 2012-10-18
Target Milestone: 2012-10-18 → 2012-10-25
Target Milestone: 2012-10-25 → 2012-11-01
Target Milestone: 2012-11-01 → 2012-11-08
My fix is pretty simple: it just prevents duplicate messages from being saved to Django's internal message store. This should solve the problem universally. Waiting on a review: https://github.com/mattbasta/zamboni/commit/1979378f22d240d22fa63cc9007906903de84e5c
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Now, the message is not displayed twice, but I observed another issue. The "Profile updated" message is displayed only for a second after saving the updates and then it disappear . From what I know, these types of messages should remain displayed until the user change the page . Please let me know if something changed and if this is not a bug feel free to close it again.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
That's a separate issue with the code that bug 795185 deals with. That code should land today.
Scratch that, Potch merged the code earlier today. You will notice that the Profile Updated message goes away rather quickly, but I'm inclined to WONTFIX that issue. It happens because we need to reload the page to get a new header, footer, and language file. There's not a lot we can do on that front, unfortunately, and that's outside the scope of this big anyway. You will notice, however, that the corresponding issue with reviews is fixed this morning.
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Thank you Matt. I will mark it as verified then .
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: