Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Standardise storage of information upon deletion of object #3047

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 8 comments
Closed

Standardise storage of information upon deletion of object #3047

openstreetmap-trac opened this issue Jul 23, 2021 · 8 comments

Comments

@openstreetmap-trac
Copy link

Reporter: dankarran
[Submitted to the original trac issue database at 10.21pm, Wednesday, 9th June 2010]

When deleting a way, the tags are removed from the latest version of the way when viewing it through the data browser. Ways should keep their latest set of tags when the object is deleted, as nodes do.

I tested this in Potlatch[1] but it also seems to be happening with JOSM[2] so it seems like it may be an issue with the API.

[1] http://www.openstreetmap.org/browse/way/25989238/history
[2] http://www.openstreetmap.org/browse/way/27880764/history

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 12.39pm, Thursday, 10th June 2010]

Personally I'd say the node behaviour is wrong - if the object doesn't exist any more why should it have any tags?

@openstreetmap-trac
Copy link
Author

Author: dan[at]karran.net
[Added to the original trac issue at 7.20pm, Thursday, 10th June 2010]

Yeah, I wasn't sure which behaviour was right (or prefered) here either. To me though, the last object should preserve its metadata along with the deleted flag. It would show the state it was in when it was deleted.

The reason I noticed it is that when you delete a way, nothing about that way (in particular, its name) shows up in the changeset browser, so things can get deleted without people being able to see that at a glance, which is pretty bad when monitoring changes in an area.

Personally, I'm convinced those details should be kept on the last version of an object. That said, I am undecided on whether the constituent nodes of a way should be kept or not. Part of me thinks they should, part of me doesn't care :)

I checked out the code, and to 'fix' this would be a one line change in the way model, but it all depends on what the concensus is.

@openstreetmap-trac
Copy link
Author

Author: dan[at]karran.net
[Added to the original trac issue at 8.40pm, Friday, 11th June 2010]

If we were to make this change ([patch http://github.com/dankarran/openstreetmap-website/commit/f04976db93cb6ee5887a7a78954324bccea4bc8e]), should we also go back through all deleted ways and add the tags into the latest version for consistency, or just make it have effect from that point onwards?

Either way, do you know if this change would have any effect on other parts of the rails port, or on apps that are using the data?

@openstreetmap-trac
Copy link
Author

Author: LarsF
[Added to the original trac issue at 8.34pm, Sunday, 20th June 2010]

I don't really have an opinion on this but don't forget the relations in case you decide to keep tags. They seem to lose their tags as well.

@openstreetmap-trac
Copy link
Author

Author: Andy Allan
[Added to the original trac issue at 11.41am, Monday, 21st June 2010]

I don't think we should conflate two issues here - it would be fairly easy to make the data browser or changeset browser display version n-1 if we want to show the tags.

I don't think they should have the tags on the deleted object, since it's deleted. It makes little sense to say that it's a deleted pub, for example, but it makes sense to say it's a deleted node, and just before it was deleted it was a pub.

@openstreetmap-trac
Copy link
Author

Author: matthias[at]julius-net.net
[Added to the original trac issue at 2.10pm, Monday, 21st June 2010]

Keeping all properties, tags and members would make it a little bit easier to "undelete" objects without having to look up the history.

@openstreetmap-trac
Copy link
Author

Author: dan[at]karran.net
[Added to the original trac issue at 1.29pm, Wednesday, 23rd June 2010]

Andy, that's a good point. I came at this from the angle of wanting to see the latest relevant information after an object had been deleted. The actual last state doesn't matter too much to me, as long as we can display the latest relevant information in the browser.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 8.33pm, Wednesday, 24th August 2011]

I changed this a couple of months ago, so the tags are now removed from a deleted node in the database.

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

No branches or pull requests

1 participant