amusselm / rvgs_gamelist

A web app to keep track of the Reno Video Game Symphoy's Game Quest
2 stars 0 forks source link

It's easy to inadvertantly submit duplicate POST requests in quick succession #29

Open amusselm opened 9 years ago

amusselm commented 9 years ago

A user can accidentally click the "submit" button in some forms more than once in rapid succession, leading to duplicate enteries.

The system should have a means of de-dupulicating these. Or preventing this from happening in the first place.

snoogans775 commented 8 years ago

in PHP there are functions for removing duplicate entries in an array. This seems to be an equivalent in Python: [(http://stackoverflow.com/questions/479897/how-to-remove-duplicates-from-python-list-and-keep-order)]

amusselm commented 8 years ago

Yeah, a regex search of the database might be a better answer than trying to "debounce" user input. Users might be unaware a game exists in the database, so a "did you mean" screen if a similar title exists in the database might be worthwhile.

On Mon, Mar 14, 2016 at 3:12 AM, snoogans775 notifications@github.com wrote:

in PHP there are functions for removing duplicate entries in an array. This seems to be an equivalent in Python: [( http://stackoverflow.com/questions/479897/how-to-remove-duplicates-from-python-list-and-keep-order )]

— Reply to this email directly or view it on GitHub https://github.com/amusselm/rvgs_gamelist/issues/29#issuecomment-196238393 .