Closed
Bug 1034106
Opened 10 years ago
Closed 10 years ago
have backend errors also display in red above submit button
Categories
(Marketplace Graveyard :: Curation Tools, defect, P5)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: madalin.cotetiu, Assigned: kngo)
References
()
Details
Attachments
(1 file)
56.93 KB,
image/png
|
Details |
Steps to reproduce: 1. Load Create a Featured app landing page https://marketplace-dev.allizom.org/curate/create/apps 2. Select an app from the App selector 3. In the Slug field enter an already used slug 4. Click on the Submit button Expected results: An error message is displayed "Sorry, we found some errors in the form" and above the Submit button, the error "Slug already in use". Actual results: {"slug":["Feed app with this Slug already exists."]} error message is displayed. Notes/Issues: Verified on FF33 (Win 7). Screencast for this issue http://screencast.com/t/IuJeQzwQQ
Comment 1•10 years ago
|
||
OK, I misunderstood this bug at first. Rewording: The bug is that the error message is literally '{"slug":["Feed app with this Slug already exists."]}' -- additionally, it says 'Slug is required.' in red above the submit button. What it should do: show this error: 'Feed app with this Slug already exists.' and say 'Slug already in use.' in red above the submit button.
Assignee: nobody → kngo
Assignee | ||
Comment 2•10 years ago
|
||
The actual bug is "clear the form errors from previous submission attempts upon another submission attempt". The "Feed app with the Slug already exists" is expected, and the "Slug already in use" message should disappear if it was there in the first place. https://github.com/mozilla/transonic/commit/12cbba7570ce0e7dec64ce48397ab4f977e48063
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 3•10 years ago
|
||
(In reply to Kevin Ngo [:ngoke] from comment #2) > The actual bug is "clear the form errors from previous submission attempts > upon another submission attempt". > > The "Feed app with the Slug already exists" is expected, and the "Slug > already in use" message should disappear if it was there in the first place. > > https://github.com/mozilla/transonic/commit/ > 12cbba7570ce0e7dec64ce48397ab4f977e48063 That was just one side of the bug, the other one is that the error message is not correctly formatted. Every other validation error messages are displayed like this: In the bottom of the page on a black background there is this message: "Sorry, we found some errors in the form" and then under the submit button the actual problem is displayed with red characters. please also see this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1032832 In the case of using a duplicate slug the error is displayed on the bottom of the page directly and the message is {"slug":["Feed app with this Slug already exists."]} So the message should be more "user friendly", something like: "Feed app with this Slug already exists" or "Slug already in use" without the { } [ ]. And for the sake of consistency can we have the error message displayed like in the rest of the cases: on the bottom of the page on black background "Sorry, we found some errors in the form" and the actual error message with red characters under the submit button. Here is how the message is displayed for other errors: http://screencast.com/t/Kr4Px3sSk3u And this is how the message is displayed when using a duplicate slug: http://screencast.com/t/wpqi5UhqBuD What to you think Kevin?
Status: RESOLVED → REOPENED
Flags: needinfo?(kngo)
Resolution: FIXED → ---
Assignee | ||
Comment 4•10 years ago
|
||
We put frontend validation errors in red under the submit button since it's easy to spot after clicking "Submit". Backend validation errors raise on a popup since some time passes in between the submission and the error, having it popup is more visible. I can remove the quotes and braces though.
Flags: needinfo?(kngo)
Reporter | ||
Comment 5•10 years ago
|
||
(In reply to Kevin Ngo [:ngoke] from comment #4) > We put frontend validation errors in red under the submit button since it's > easy to spot after clicking "Submit". Backend validation errors raise on a > popup since some time passes in between the submission and the error, having > it popup is more visible. I can remove the quotes and braces though. Ok then lets just remove the braces and the quotes. Thanks Kevin!
Assignee | ||
Comment 6•10 years ago
|
||
Made the error messages cleaner: https://github.com/mozilla/transonic/commit/b13d754d8fe87d2823ba2c189c462f2d413a00d7
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Comment 7•10 years ago
|
||
Now the frontent validation error is no longer displayed. Please see screencast http://screencast.com/t/hNXnc558xLizv
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•10 years ago
|
Priority: -- → P2
Assignee | ||
Comment 8•10 years ago
|
||
The screencast doesn't work for me. I assume that the frontend validation errors are no longer displayed because there are none?
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Comment 9•10 years ago
|
||
For every other error (App/Slug/Quote is required), the frontend validation is displayed, shouldn't it also be displayed for duplicate slug, above the Submit button? "Slug already exists" http://screencast.com/t/hNXnc558xLiz
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 10•10 years ago
|
||
Slug already exists is a backend-related error: https://bugzilla.mozilla.org/show_bug.cgi?id=1034106#c4
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•10 years ago
|
Status: RESOLVED → REOPENED
Priority: P2 → P5
Resolution: FIXED → ---
Summary: Incorrect message is displayed when creating a Featured app using a duplicate slug → have backend errors also display in red above submit button
Assignee | ||
Comment 11•10 years ago
|
||
https://github.com/mozilla/transonic/commit/1876b1ac00862e1e6f56221fe6441a721ed109e8
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Comment 12•10 years ago
|
||
Now the Submit button remains stuck, and no errors are displayed. Should I reopen this bug 1035780 or it is a regression from this commit? Please see screencast http://screencast.com/t/kLD63AQ8tMR
Flags: needinfo?(kngo)
Assignee | ||
Comment 13•10 years ago
|
||
Fixed @ https://github.com/mozilla/transonic/commit/ef224c482e3949983480652a2458ee5bcf7f4950
No longer blocks: 1033040
Flags: needinfo?(kngo)
Comment 14•10 years ago
|
||
Verified as fixed in https://marketplace-dev.allizom.org/curate/create/apps on FF33 (Win 7). Attaching postfix screenshot. Closing bug.
Status: RESOLVED → VERIFIED
Comment 15•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•