View Issue Details

IDProjectCategoryView StatusLast Update
0003195AJAX/JSFeature Request - Interfacepublic2018-06-01 20:23
ReporterHinoe Assigned ToDerIdiot  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionreopened 
Summary0003195: Add input validation to forms where bad input causes blocking errors
DescriptionFor nearly every user, it is incredibly irritating to fill out detailed forms and be hit with a blocking error because ONE field had bad (illegal/mismatching/blank) input, because that forces the user to redo the hell out of everything, effectively duplicating all the work.

As far as I can see, there are two solutions to this problem. One is to complain about the error as currently done, but return the form as submitted by the user rather than nothing. That is an okay solution, I suppose, but there is another which is better from an user experience perspective (and hopefully easier to implement), namely JS-based input validation. Basically, forms with fields that can complain about bad values should complain in advance where feasible (dates in particular), in the best interest of letting the user fix it without so much pain (and potentially figure out what the issue is if they don't know yet).
Steps To Reproduce1. Make a ton of changes in some form that has a possible illegal input.
2. Add an illegal input.
3. Submit.
4. Make yourself taller.
Additional InformationRelated: https://anidb.net/perl-bin/animedb.pl?show=cmt&id=80958
TagsNo tags attached.

Activities

DerIdiot

2018-06-01 12:15

administrator   ~0004234

ahahahaaha this is a troll ticket right? right? ... do you even remotely understand the scope of this request? you expect to put _all_ validation logic into js. that is a metric ton and will easily diverge between the 2 codebases whena change is done. no will never happen. not of this scale anyway. touching up individual forms where it makes sense, maybe. general blanket appliance, hell no.

CDB-Man

2018-06-01 13:14

manager   ~0004235

Instead of the Ajax suggestion, can we instead have a "back to form" button on the error page, that will bring back the form but populate it with all of the user inputs so that you don't need to re-enter?

Hinoe

2018-06-01 20:12

reporter   ~0004236

But did you actually read the ticket? I explicitly provided another potential solution, which would be done entirely in perl, thereby solving literally every concern you raised in your reply. If this solution is hard to implement and that one isn't, I'll happily switch. I'll even write the ticket for it.

With that said, what AniDB currently provides is its own in-house equivalent to the stupidity of PHP's error handling (T_PAAMAYIM_NEKUDOTAYIM, anyone?), and it's downright shocking a request to fix it would be dismissed as "a troll ticket".

Hinoe

2018-06-01 20:20

reporter   ~0004237

https://tracker.anidb.net/view.php?id=3197

I'd reclose this ticket, but I can't, so /shrug

Issue History

Date Modified Username Field Change
2018-06-01 01:10 Hinoe New Issue
2018-06-01 12:15 DerIdiot Assigned To => DerIdiot
2018-06-01 12:15 DerIdiot Status new => closed
2018-06-01 12:15 DerIdiot Resolution open => won't fix
2018-06-01 12:15 DerIdiot Note Added: 0004234
2018-06-01 13:14 CDB-Man Note Added: 0004235
2018-06-01 20:12 Hinoe Status closed => feedback
2018-06-01 20:12 Hinoe Resolution won't fix => reopened
2018-06-01 20:12 Hinoe Note Added: 0004236
2018-06-01 20:20 Hinoe Note Added: 0004237
2018-06-01 20:20 Hinoe Status feedback => assigned
2018-06-01 20:23 DerIdiot Status assigned => closed