<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">My vote for now would be to leave this out.<div><br><div><div>On Oct 19, 2012, at 7:09 AM, Lucas Holmquist &lt;<a href="mailto:lholmqui@redhat.com">lholmqui@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><a href="https://issues.jboss.org/browse/AEROGEAR-540">https://issues.jboss.org/browse/AEROGEAR-540</a><div><br></div><div>i created this on monday, &nbsp;but now i'm thinking otherwise.</div><div><br></div><div>The Data Manager Memory adapters filter method will only search on level of an object( at least i think). &nbsp;i was thinking we might need it to do a recursive search to find items not on the first level.</div><div><br></div><div>ex:</div><div><br></div><div>var object = {</div><div>&nbsp; &nbsp; name: thing,</div><div>&nbsp; &nbsp; value: {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;thing2: thing3</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>}</div><div><br></div><div>alreadyCreatedDataManager.filter( &nbsp;{ name:'thing' } &nbsp;) &nbsp; =&gt; &nbsp;returns &nbsp;object</div><div><br></div><div>//currently this happens</div><div>alreadyCreatedDataManager.filter( &nbsp;{ thing2:'thing3' } &nbsp;) &nbsp; =&gt; &nbsp;returns empty [ ]</div><div><br></div><div>//with recursive&nbsp;</div><div>alreadyCreatedDataManager.filter( &nbsp;{ thing2:'thing3' } &nbsp;) &nbsp; =&gt; &nbsp;returns object</div><div><br></div><div>Now i'm not sure if thats the way to go.</div><div><br></div><div>Thoughts against:</div><div><br></div><div>bloat the code, developers could do this themselves when they get the data back, keeping our library leaner</div><div><br></div><div>Thoughts for:</div><div><br></div><div>Be nice to the developer&nbsp;</div><div><br></div><div>like to hear other thoughts</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev<br></blockquote></div><br></div></body></html>