Yo !
So, I've been playing with all these new features and it all works as expected. To test the stuff, I've done just a little modification to the AeroDoc Web Client to store the accepted leads in an indexedDB adapter with autoconnect : https://github.com/sebastienblanc/aerogear-push-quickstart-backend/blob/agjs-tests/src/main/webapp/client/scripts/services/dataService.js#L42-L47

On Chrome/FireFox, it stores the stuff in indexedDB and thanks to the autoconnect , I just have to do myStore.save() /read()
On Opera, it nicely fallback to Websql.

I have also used the "preferred" setting with passing "memory", again on Opera it falls back to "Memory".

So, you have my "Go!" for the release
Seb




On Thu, Dec 5, 2013 at 9:21 PM, Lucas Holmquist <lholmqui@redhat.com> wrote:
Hot on the heels of 1.3.0,  i am hoping to release 1.3.1 next week.

Here is a list of the JIRA's associated with it

https://issues.jboss.org/issues/?jql=project%20%3D%20AGJS%20AND%20fixVersion%20%3D%20%221.3.1%22%20ORDER%20BY%20updated%20DESC%2C%20priority%20DESC%2C%20created%20ASC

There was some bug fixes and test/documentation updates,  but there were 2 big option added in DataManager:

1. Auto Connect

Since IndexedDB and WebSQL needed to both be "opened" before doing a read/save/remove/filter , i've added an option " auto" to the creation of a store.  It will default to false, so it will not break any existing stuff.  if set to true,  then you can do the a read, for example and not have to worry about calling open.

2. Opt-Out of Fallback and "preferred"

this new option, 'fallback' will default to true, so data manager will fallback to a support adapter by default,  but if you want to make sure an error is thrown if an adapter is not supported then you can set fallback=false.

there is also a new "preferred" option.  By default when fallback is enabled,  this is the order the adapters are tried  [ "IndexedDB", "WebSQL", "SessionLocal", "Memory" ]

now a user can specify a list of adapters they want to try,  so they can do [ "Memory" ] if they only want to fallback to the memory adapter if lets say IndexedDB isn't available



So give it a try



_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev