[openstreetmap/openstreetmap-website] Update num_changes when backfilling changesets (PR #6361)
mmd
notifications at github.com
Fri Aug 29 08:06:20 UTC 2025
mmd-osm left a comment (openstreetmap/openstreetmap-website#6361)
Thank you for the timestamp data. So this clearly looks like a non-"cgimap single diff upload".
Looking again at the source code, [this section](https://github.com/zbycz/osmapp/blob/master/src/services/osm/auth/editCrag.ts#L49-L54) may be relevant. It seems to be in place to update crag data, and the changeset description exactly matches [this code](https://github.com/zbycz/osmapp/blob/master/src/services/osm/auth/editCrag.ts#L43-L47):
```javascript
const changesetId = await api.putChangeset(changesetXml);
await Promise.all(
changes.map((change) => saveCragChange(changesetId, change)),
);
await api.putChangesetClose(changesetId);
```
saveCragChange in the end calls api.putOrDeleteItem, which is then performing [single object](https://github.com/zbycz/osmapp/blob/master/src/services/osm/auth/api.ts#L36-L50) operations, handled by Rails. So #6366 is spot on.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6361#issuecomment-3236131455
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6361/c3236131455 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250829/ef1f425f/attachment.htm>
More information about the rails-dev
mailing list