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

A cvs-like API #152

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

A cvs-like API #152

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

Comments

@openstreetmap-trac
Copy link

Reporter: immanuel.scholz[at]gmx.de
[Submitted to the original trac issue database at 2.09pm, Tuesday, 28th March 2006]

I suggest the following changes to the API:

  • Server tells on every data object the date of last modify. Alternative, he
    can just send a timestamp on the overall response which must not be before
    the edit time of the latest change (current server time fits ;).

  • The client must specify on each upload the timestamp he thinks is the latest
    version (obtained by downloading).

  • The server reject an upload, if the timestamp sent is before the latest
    change timestamp of the object to upload.

@openstreetmap-trac
Copy link
Author

Author: immanuel.scholz[at]gmx.de
[Added to the original trac issue at 11.06am, Saturday, 1st April 2006]

I'd like to see this done before IoW, since there we will have several editings on a very small area.

If the server part is done, I'll implement it for the applet and JOSM. :-)

@openstreetmap-trac
Copy link
Author

Author: immanuel.scholz[at]gmx.de
[Added to the original trac issue at 1.03pm, Saturday, 1st April 2006]

Ok. Steve is busy installing the new boxes. Ruby can't be THAT difficult.. I try! ;-)

@openstreetmap-trac
Copy link
Author

Author: writetodan[at]yahoo.com
[Added to the original trac issue at 11.02pm, Thursday, 22nd February 2007]

perhaps an incrementing database revision number would be better, is more explicit about ordering, simpler, no time sync issues...

@openstreetmap-trac
Copy link
Author

Author: writetodan[at]yahoo.com
[Added to the original trac issue at 11.05pm, Thursday, 22nd February 2007]

plus transactional commit / rollback for multiple changes?

@openstreetmap-trac
Copy link
Author

Author: shaunmcdonald131[at]gmail.com
[Added to the original trac issue at 6.19pm, Monday, 5th May 2008]

This has been started at http://wiki.openstreetmap.org/index.php/Monitoring_and_Rollback_Hack-a-thon_London

Adding tom to cc.

@openstreetmap-trac
Copy link
Author

Author: osm[at]gravitystorm.co.uk
[Added to the original trac issue at 5.09pm, Tuesday, 21st April 2009]

This functionality has now been fixed with API 0.6. However instead of the timestamp of the latest version of the node/way/relation, it has been implemented with explicit version numbers instead. The server will now reject uploads where the client has the wrong version number.

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