[openstreetmap/openstreetmap-website] Validation for note transitions (Issue #4528)
mmd
notifications at github.com
Mon Feb 19 15:07:27 UTC 2024
> Maybe it's possible to reopen a note twice if the requests are done quick enough
At least checking the current status of a note (`Note.find_by_id(id)` ... `raise OSM::APINoteAlreadyOpenError.new(@note) unless @note.closed?`) is done without exclusive or optimistic locking (based on version numbers).
If multiple API requests for the same note are processed at the same time, such duplicates can occur.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/4528#issuecomment-1952646997
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/4528/1952646997 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240219/31251c5e/attachment.htm>
More information about the rails-dev
mailing list