Overpass-API icon indicating copy to clipboard operation
Overpass-API copied to clipboard

Find deleted objects filtered by user.

Open maxerickson opened this issue 9 years ago • 4 comments

This query, centered over a node I recently deleted, does not return any result:

[adiff:"2016-01-01T00:00:00Z"]
[out:xml][timeout:45];
node(user:maxerickson)(37.268,-96.997,37.269,-96.996);
out meta;

Remove the user filter and the deleted node is returned:

[adiff:"2016-01-01T00:00:00Z"]
[out:xml][timeout:45];
node(37.268,-96.997,37.269,-96.996);
out meta;

I see the same behavior with diff. One motivation for the combination is quickly reviewing changes made by a problematic user; it's handy to see what they have deleted.

maxerickson avatar Nov 16 '16 14:11 maxerickson

That's really expected. diff and adiff actually execute two queries and compare the two results:

  • Query 1: node(user:maxerickson)(37.268,-96.997,37.269,-96.996); at 2016-01-01
  • Query 2: same as Query 1, with current date.

As the node belonged to user iandees at 2016-01-01, Query 1 returns no result. In query 2, you've already deleted the node -> no result.

Hence, the difference of query 1 and query 2 is also empty, as both of them are empty in the first place.

mmd-osm avatar Nov 16 '16 14:11 mmd-osm

That makes sense.

It would be nice if there was a way to do the 'what has this user deleted since some date' query.

maxerickson avatar Nov 16 '16 20:11 maxerickson

This came up again for me as something that would be nice to have, but this time I wonder about having an out deleted that would return just deleted objects.

maxerickson avatar Nov 14 '17 13:11 maxerickson

Would be good if out meta and out deleted could be combined so that node(id:322918555,322918556);out meta deleted; would return data for both nodes, similar to the OSM multi fetch call https://api.openstreetmap.org/api/0.6/nodes?nodes=322918555,322918556

GerdP avatar Jan 27 '20 13:01 GerdP