Closed gmaclennan closed 8 years ago
it looks like iD always sets this attribute, but we should definitely always check if any deleted nodes/ways are used in other entities before deleting.
Implemented in 1.11.0 with tests.
also need to implement precondition failures (412) for DELETE requests, not just changeset uploads
The
"if-unused"
attribute in the delete block of a changeset upload should be checked for and handled. iD editor uses this key.http://wiki.openstreetmap.org/wiki/API_v0.6#Diff_upload:_POST_.2Fapi.2F0.6.2Fchangeset.2F.23id.2Fupload