Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find deleted objects filtered by user. #338

Open
maxerickson opened this issue Nov 16, 2016 · 4 comments
Open

Find deleted objects filtered by user. #338

maxerickson opened this issue Nov 16, 2016 · 4 comments

Comments

@maxerickson
Copy link

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.

@mmd-osm
Copy link
Contributor

mmd-osm commented Nov 16, 2016

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.

@maxerickson
Copy link
Author

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
Copy link
Author

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.

@GerdP
Copy link

GerdP commented Jan 27, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants