google-code-export / sandy-disaster-recovery

Automatically exported from code.google.com/p/sandy-disaster-recovery
2 stars 2 forks source link

Entry suggestions / user-guided duplicate detection #220

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Aaron wrote, in issue 83:

For ENTRY duplicate detection, I think there may be a lightweight pre-duplicate 
detection validation we could implement by applying the same AJAX we use in the 
map search feature ( Issue 63 ).  For example, if I type, "Scot" in the name, 
address, city or phone number, then the following results may automatically 
appear under the entry.  By selecting one of them, I would be taken directly to 
the "Edit" page:
<Scott Smith, 123 Main Street, Union City NJ 01234>
<Jim Jones, 476 Scotch Plains Ave, Rockaway, NY 12345>
<Fria Lima, 9377 Home St, Scottsdale, CT 23905>

This would require that the map AJAX be loaded each time someone enters an 
assessment form.  We may want to find a way to cache that once per session for 
the assessment form.  But it seems like a quick way to minimize entry 
duplicates.

NOTE: This is NOT system-driven duplicate detection, and this process will not 
detect duplicates imported (see issue 83)

Original issue reported on code.google.com by cpw...@gmail.com on 19 Mar 2013 at 5:53

GoogleCodeExporter commented 9 years ago

Original comment by cpw...@gmail.com on 19 Mar 2013 at 5:54

GoogleCodeExporter commented 9 years ago
An Autocompleter can be toggled in form.js.

Need to stop it from overwriting/filling/updating input elements when tabbing 
away/past. Could replace with a custom implementation using ArrayMatcher.

Original comment by cpw...@gmail.com on 19 Mar 2013 at 5:56

GoogleCodeExporter commented 9 years ago
inputHandler.setPreventDefaultOnTab(true) doesn't seem to work.

Original comment by cpw...@gmail.com on 19 Mar 2013 at 7:50

GoogleCodeExporter commented 9 years ago
A possible solution: have a partly-hidden text input with autocompleter 
somewhere else on the form (at the top?) and copy characters from the other 
target inputs as they are typed.

Original comment by cpw...@gmail.com on 20 Mar 2013 at 10:18

GoogleCodeExporter commented 9 years ago
I like this idea- it seems far less invasive.
Or perhaps a separate field that lists all possible duplicates; and the list 
shortens as you continue to type additional characters.

Original comment by v...@aarontitus.net on 20 Mar 2013 at 4:01

GoogleCodeExporter commented 9 years ago
New UI for this is now live on the testbed (version 161).

Note: it only works as fast as the sites/work orders are loaded! (issue 219)

Original comment by cpw...@gmail.com on 25 Mar 2013 at 7:10

GoogleCodeExporter commented 9 years ago
Comment 6: LOVE IT!  I understand that it only works as fast as the sites/work 
orders are loaded. Man, what an improvement.

And I really like the new warning.  Is it possible to replace "To ignore this 
warning, select the checkbox at the bottom of this form." with a button that 
says "Ignore and Save," so that the person doesn't have to scroll all the way 
to the bottom?

Original comment by v...@aarontitus.net on 25 Mar 2013 at 7:31

GoogleCodeExporter commented 9 years ago
Great. I've moved the second half of #7 back to issue 83.

Original comment by cpw...@gmail.com on 25 Mar 2013 at 8:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This is now live on production.

Main defect: it does the same search regardless of which field is typed in - 
e.g. if you type "park" in address then "<Joe Parks> 1 Main Street" would match.

Original comment by cpw...@gmail.com on 26 Mar 2013 at 12:49

GoogleCodeExporter commented 9 years ago
Agreed that this is a minor defect. But it's a massive improvement.  I'm 
marking it done. Thanks.

Original comment by v...@aarontitus.net on 26 Mar 2013 at 2:06