[openstreetmap/openstreetmap-website] Idempotency for API 0.6 (#2201)

mmd notifications at github.com
Thu May 2 13:00:59 UTC 2019


@simonpoole : I was sort of expecting your feedback on my proposal to include an auto close  (-> `close_changeset=true`) attribute in the osmChange message (https://github.com/openstreetmap/openstreetmap-website/issues/2201#issuecomment-485230581).

Several people in this issue seem to suggest that they want atomic changesets, which this attribute would enable. If the upload fails or times out, it would be safe to re-upload: either the osmChange mesasge gets processed, or rejected in case the changeset is already closed.

I don't want to introduce _one upload per changeset_ as a default behavior, as it would be an incompatible, breaking change. Adding that attribute is the next best thing to do. By the way, a additional URL parameter "`?close_changeset=true"` could serve a similar purpose, if there are concerns about extending the XML structure.

Should we go for this as one option, and continue with the diffResult topic?





-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2201#issuecomment-488663239
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190502/49641db8/attachment.html>


More information about the rails-dev mailing list