[openstreetmap/openstreetmap-website] Validation for note transitions (Issue #4528)
Tom Hughes
notifications at github.com
Mon Feb 19 15:07:36 UTC 2024
There is a check for duplicate closes (https://github.com/openstreetmap/openstreetmap-website/blob/master/app/controllers/api/notes_controller.rb#L181) and has been since ae27f7adbe561b20203fa639ac1aa50d0408edc0 in February 2013 but as it is at the application layer two closes very close together might still make it to the database because both might pass the check before either one has made the change as the check is not inside a transaction and there is no constraint in the database that would block it.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/4528#issuecomment-1952647254
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/4528/1952647254 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240219/e06f669f/attachment.htm>
More information about the rails-dev
mailing list