osm-spline / xappy.js

Xappy.JS
Other
37 stars 4 forks source link

planetDate from DB #98

Closed andreasnuesslein closed 12 years ago

andreasnuesslein commented 13 years ago

we need to figure out a way to a) write the current planet date into our database and b) query it, when trying to generate a response, so that it can be included in the xml and json headers.

currently there's a static variable in xappy.js - this needs to be changed, asap.

mren commented 13 years ago

i looked at the database schema in the wiki. I don't know if this is similar to the current scheme, but there are rows like updated_at. Is this data similar to planet_date or is planet_date just the name of the diff file?

Which options do we have:

  1. write the planet date in the database and query it
  2. write the planet date in a file and watch the file for updates (
  3. have a set interface in the api (like POST /planetdate {planetdate = ...})

I would prefer option 2 and 3 before 1, because in this case we do not need to modify anything. I will write a little sample module with a watched file

mren commented 13 years ago

7454663b8347d43bfb6ce595322cdb0ec392c39e is a reference implementation of 2.

in this case the update script just changes the etc/planetdate.json file to the new planetdate

slomo commented 12 years ago

fixxed in my, as I see it http://github.com/osm-spline/xappy.js/blob/master/lib/xappy.js#L60. Importer export is needed, but not our Problem.