downforacross / downforacross.com

Web frontend for downforacross.com -- continuation of stevenhao/crosswordsio
https://downforacrosscom.downforacross1.now.sh
MIT License
229 stars 90 forks source link

Don't allow uploading a previously-uploaded puzzle? #139

Open dpsanders opened 3 years ago

dpsanders commented 3 years ago

Maybe it would be a good idea to not allow a puzzle to be uploaded if it has previously already been uploaded?

ewmson commented 3 years ago

Now that the puzzles have been moved into postgres we should be able to enforce this with a constraint.

I think we want to allow non public (people testing or not wanting to publish) to have duplicates and only apply the constraint on the public one.

If we do go this route, there is a question of the past data as solves will be associated with different puzzle ids, but refer to the exact same puzzle. I suspect we can just start enforcing the constraint going forward to not worry about the past.

fg123 commented 2 years ago

In a similar realm, including other types of meta-data would be useful too, such as an "uploaded date" versus the puzzle date (i.e. for dated puzzles like NYT or LA Times). This would allow for retroactive uploading of puzzles but still allow front-end to sort by puzzle date, for example.

stevenhao commented 1 year ago

duplicate of https://github.com/downforacross/downforacross.com/issues/15 (no pun intended)