[OSM-dev] Potlatch undelete/revert - beta-testers wanted
Richard Fairhurst
richard at systemeD.net
Sat Nov 10 22:03:24 GMT 2007
Hi all,
I've committed an experimental version of Potlatch with undelete and
revert support. Because this is new ground for OSM, I'd appreciate it
if people could test it on their local installs.
<blink>
Though the code is in svn, the functionality is expressly disabled on
the main server for now. If you want to test it, you will need to
edit your environment file (rails_port/config/environment.rb) so that
SERVER_URL is not www.openstreetmap.org.
</blink>
I'm primarily interested in the effect on the db; don't worry too
much yet about the fact the UI could be more obvious. Here's how to
do it:
* To revert to an earlier version of a way: select the way, press H
('history'), select the version, click 'Revert'.
* To undelete a way: press 'U'; all deleted ways in the bounding box
will be shown (in red); choose the one you want; unlock it (click on
the padlock), then deselect to upload as usual.
Please have a play: create ways, delete them, create intersections,
connect to your Rails install with JOSM, anything you can think of.
Look at its effect on the db tables, and let me know if it's doing
anything it shouldn't. I'll continue to test it. If it's ok, then we
can go live with it on the main box.
As ever, if you want to look at the code that interacts with the db,
it's amf_controller.rb; getway_history, getway_old, and
whichways_deleted are the methods to look at. Yell if you need
anything explaining.
cheers
Richard
More information about the dev
mailing list