Add failing tests for Model.find() not returning sideloaded data
Failing tests for #314, #247
When sideloading data and subsequently calling find() or find([array of ids]), ember-model will call through to the adapter and try to retrieve data from the server, instead of materializing and returning the sideloaded data instantly.
@jnovatnack want to take a stab at this? :)
Funny enough I noticed this yesterday as well.
@jnovatnack you got this?
Sure, I'll take a shot at it.
On Mon, Mar 10, 2014 at 5:24 PM, Erik Bryn [email protected] wrote:
@jnovatnack https://github.com/jnovatnack you got this?
Reply to this email directly or view it on GitHubhttps://github.com/ebryn/ember-model/pull/315#issuecomment-37236284 .
@jnovatnack ping ;)
Dug into this a bit. Are we sure that if you sideload data with load() then find() should not execute a remote request and only return the side loaded data?
The second test case makes sense to me though since find([single-id]) already returns the sideloaded data.