Yes, standard data formats would be nice to have. Until common standards emerge from widely used best practices we can simply translate between different data formats.
What’s not clear to me is how a replication protocol would work
Is it possible with the current OFN rest API to get the products that have been modified since some (last sync) timestamp? How to detect deletes? What is soft delete mentioned in the API docs?
Most of the time two systems connect they will already be almost in sync. It would be great to quickly cheaply detect that… Any ideas?
@wvengen afaics you do quite some sophisticated data synchronisation between the central product database and various foodsoft instances. Do you delete and reimport everything to catch deleted products? Are there also (two-way-sync) changes uploaded from the instance to the central database?
@orangeman I am a programmer / designer community activist / CMS person
interested in using OFN here in the states for local food emphasis in
Colorado and upstate NY initially.
I have been working on getting a local copy of the software running via
docker or vagrant…
Once I have a local copy to experiment with, I’d be happy to construct a
query for you against the database that could be used with the rest API for
our future specialized needs like you are requiring…
How would you go about this?
extending the rails app rest api?
or build some kind of api node
that uses the same postgres?
Are you using the ansible playbooks to build the docker images?
Currently I’m stuck at the last webserver ansible task: update unicorn
it errors: "Could not find the requested service "‘unicorn_openfoodnetwork’"
any idea? @pmackay
yes, my thoughts were to add a new db class that the api talks to, and make that result available throygh the rest api…
looking here for how ‘unicorn_openfoodnetwork’ could be named as a service.
what order did you get that error in? were there any other steps completed beforehand?
the api responds that supplier is missing but supplier is not part of spree products, right? At least the product json from the api does not contain a supplier. Apending product[supplier]=foo seems to be ignored by the api
Is anyone using the product rest api so far?
write a separate ofn product api?
or decorate the spree api?
@NorthernColorado@orangeman hi guys, could I please suggest to create separate threads, or perhaps better to raise GH issues in ofn-install for problems with the install process? Its certainly not strongly related to this thread so would be better pulled out.
It is a decentralized social network.
Perhaps this could be very interesting to look at in terms of decentralization and privacy for the OFN project as well.