3 ms·
We did not consider that, but thanks, I will take a look at ShareJS. Minisync is designed only for a non-concurrent single-user use case where a user fetches a
by skyraider 13y ago
We did not consider that, but thanks, I will take a look at ShareJS. Minisync is designed only for a non-concurrent single-user use case where a user fetches a document at point A in time, makes changes, and then submits the document to the server at point B.
In this case, we intelligently resolve attribute names to SQLAlchemy mapper class instances or mapped attributes. We let SQLAlchemy do the SQL generation.
Soon, we'll open source an AngularJS plugin that lets you just push/delete from regular old JavaScript objects in order to generate the diffset the server needs. We're hoping we don't have to implement a protocol, and will instead be able to just submit a list of changes to JavaScript objects.
- cpursley 13y agoI think you meant an Emberjs plugin : )
- avolcano 13y agoEmber - or Backbone, for that matter - would be a bit trickier to write a plugin for. Neither really handles hierarchal data structures in an elegant way - both have a model layer that assumes a "flat" structure, similar to server-side models. With Angular, on the other hand, you can just pop the full object from retrieved from the server into your $scope, change it like you would any other object, and then sync it back with a function that will create a diffset between the original object and the current state.