[aerogear-dev] AEROGEAR-540 - Aerogear.js filtering

Kris Borchers kris at redhat.com
Mon Oct 22 08:05:32 EDT 2012


My vote for now would be to leave this out.

On Oct 19, 2012, at 7:09 AM, Lucas Holmquist <lholmqui at redhat.com> wrote:

> https://issues.jboss.org/browse/AEROGEAR-540
> 
> i created this on monday,  but now i'm thinking otherwise.
> 
> The Data Manager Memory adapters filter method will only search on level of an object( at least i think).  i was thinking we might need it to do a recursive search to find items not on the first level.
> 
> ex:
> 
> var object = {
>     name: thing,
>     value: {
>                  thing2: thing3
>                 }
> }
> 
> alreadyCreatedDataManager.filter(  { name:'thing' }  )   =>  returns  object
> 
> //currently this happens
> alreadyCreatedDataManager.filter(  { thing2:'thing3' }  )   =>  returns empty [ ]
> 
> //with recursive 
> alreadyCreatedDataManager.filter(  { thing2:'thing3' }  )   =>  returns object
> 
> Now i'm not sure if thats the way to go.
> 
> Thoughts against:
> 
> bloat the code, developers could do this themselves when they get the data back, keeping our library leaner
> 
> Thoughts for:
> 
> Be nice to the developer 
> 
> like to hear other thoughts
> 
> 
> 
> 
> 
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20121022/16b1bdd8/attachment.html 


More information about the aerogear-dev mailing list