Prepping for Data Sync in AeroGear.js
by Kris Borchers
Hey all,
Just wanted to let you know what I am working on right now. It is very early but Matthias loves e-mail so I thought I would throw this out there.
Basically, right now all I am doing is working on keeping track of the status of data in DataManager. Assuming a new dataSync setting is set to true, these are the things I am planning.
New record is added to store, status is set to NEW and a UUID is generated
Record is updated, status is set to MODIFIED
Record is removed, status is set to REMOVED (data is not actually removed, future will need to keep storage limits in mind)
Add a new sync method that will run through the data and sync with the server. Assumes client is data of record for now during development until we can determine a strategy for informing the client how the server tracks data status and how it should be informed that this data is being synced
This brings us back to the discussion about sending metadata to the client on first app load. That metadata could inform the client of the sync strategy
There's probably more to this but these are my original thoughts right now.
Kris
12 years, 2 months
Pipeline jsonp
by Lucas Holmquist
Hi,
i've started to add jsonp support to aerogear.js pipeline and i wanted to get some feedback that i'm on the right track
i have a example project here : https://github.com/lholmquist/WoWAerogear
those of you with yeoman installed can type "yeoman build" then "yeoman server", you might be able to get away with just the second command.
There are 2 requests, the first using jQuery, so i had a baseline, and the second is with a modified version of aerogear.js
pipeline.add( {
…….
settings: {
………...
jsonp: true,
callback: "myCallback"
}
} );
I think declaring it during the creation makes sense.
Being able to override the jsonpCallback would add a layer of security for when the server defines the callback, I not sure if this should be put into a jsonpSettings:{ } or leave it were it is
i only tested read atm, just wanted to get some feedback first
-Luke
12 years, 2 months
PicketBox branch
by Bruno Oliveira
Hi guys, just to let you know the 'picketbox' branch from https://github.com/aerogear/TODO was merged against 'master' and the branch was deleted to avoid mistakes.
Now all the latest changes are located on **master**.
Thanks.
--
"The measure of a man is what he does with power" - Plato
-
@abstractj
-
Volenti Nihil Difficile
12 years, 2 months