kylemcdonald / whopaysartists

http://whopaysartists.com/
Other
27 stars 9 forks source link

No entries with same values possible #32

Closed javl closed 10 years ago

javl commented 10 years ago

When someone enters info that has already been saved, this new entry doesn't make it into the database (but it could still be valid).

Replicate: Enter $10 as value and exhibition as type -> submit Enter $10 as value and exhibition as type -> submit

Result: only one entry with $10 and exhibition in the .JSON Expected result: two entries with $10 for an exhibition in the .JSON

kylemcdonald commented 10 years ago

this is correct, but i don't plan on fixing it.

the reason it's done this way is to avoid duplication errors that happen when people accidentally refresh the page and re-submit the same info. because i'm not storing any information about the users, i can't tell whether they are the same user accidentally re-submitting something, or a new user submitting something new.

the workarounds are:

  1. wait up to 10 days after the last one was submitted, and then the "time of month" field changes, which makes it possible to add a record with all the other fields the same.
  2. add any more information, like something in the "also" field, that distinguishes your report.