Zverik / Level0

Web-based OpenStreetMap Editor
http://level0.osmz.ru
Do What The F*ck You Want To Public License
54 stars 14 forks source link

Undelete a node using Level0 editor seems to not be working #80

Closed fititnt closed 2 months ago

fititnt commented 3 months ago

Related question/issue: https://help.openstreetmap.org/questions/81087/how-to-undelete-a-node-using-level0-editor


Is the functionality of https://wiki.openstreetmap.org/wiki/Level0#Undelete_a_node (undeleting a node) still working?

I attempted undelete a node like the documentation and do other edit, however it does not undeleted the deleted node. Yes, I do know exist other tools, however was a simple change.

More context:

maro-21 commented 2 months ago

If there have been no recent changes to the code, it should work. I do this from time to time and it works for me. Write what steps you took to undelete the node and what message you saw.

fititnt commented 2 months ago

Yes, I noticed it had no recent code changes.

Not today, but seems reasonable I provide step by step, so I will do it with dummy data later

fititnt commented 2 months ago

I will use node/9560774926 (created as test node by someone else as example. Will add screenshots on the relevant steps.

Following the current version of documentation on https://wiki.openstreetmap.org/wiki/Level0

Undelete a node

  1. Open the node's page on osm.org: e.g. https://www.openstreetmap.org/node/345345

Ok, would be this https://www.openstreetmap.org/node/9560774926

  1. Check that it is deleted and find its version.

by https://www.openstreetmap.org/node/9560774926, this case, would be n9560774926 version 1. The version 2 was the deleted one.

  1. Enter n345345.W into Level0 editor's URL field, where 345345 is the node's identifier, and W is its version minus one (e.g. 2 if the version was 3).

Ok, on this case would be n9560774926.1

Screenshot from 2024-07-17 19-51-26

  1. Check that coordinates are there, then add the deletion version to the node's identifier after a dot, like that: "node 345345.3: , .

Ok, with coordinates, the browser shows this

node 9560774926: -30.0318242, -51.2221417

Screenshot from 2024-07-17 19-55-59

  1. Upload changes (see steps 6-7 of editing a POI). (from https://wiki.openstreetmap.org/wiki/Level0#Edit_a_POI_tags)
    1. Press Log in button and the press Accept (or whatever osm.org site asks).
    2. Type a changeset comment (e.g. updated opening hours) and press Upload to OSM.

Used the upload comment "undelete test. See https://github.com/Zverik/Level0/issues/80"

Screenshot from 2024-07-17 19-56-09

One error message "Nothing to upload." appears

(Note: one difference betwen the documentation and my test is at step 6, the account already is logged in. Unsure if this is the problem, because it would works for other edits)

maro-21 commented 2 months ago

You didn't complete step four:

4. then add the deletion version to the node's identifier after a dot, like that: "node 345345.3:

It this case it would be node 9560774926.2: -30.0318242, -51.2221417

fititnt commented 2 months ago

Oh, that explains. Thank you. I will post the screenshots here (in case anyone needs to know in the future), and then will close this issue.

For the object https://www.openstreetmap.org/node/9560774926/history version 2, the code used would need to be

node 9560774926.2: -30.0318242, -51.2221417

Screenshot from 2024-07-19 00-29-57


Then this time instead of "Nothing to upload" will appear the link for the changeset (this one) https://www.openstreetmap.org/changeset/154124990

Screenshot from 2024-07-19 00-30-07


Thank you @maro-21 !