Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add failing tests for Model.find() not returning sideloaded data #315

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cjroebuck
Copy link

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.

@ebryn
Copy link
Owner

ebryn commented Mar 5, 2014

@jnovatnack want to take a stab at this? :)

@jnovatnack
Copy link
Contributor

Funny enough I noticed this yesterday as well.

@ebryn
Copy link
Owner

ebryn commented Mar 10, 2014

@jnovatnack you got this?

@jnovatnack
Copy link
Contributor

Sure, I'll take a shot at it.

On Mon, Mar 10, 2014 at 5:24 PM, Erik Bryn notifications@github.com wrote:

@jnovatnack https://github.com/jnovatnack you got this?

Reply to this email directly or view it on GitHubhttps://github.com//pull/315#issuecomment-37236284
.

@ebryn
Copy link
Owner

ebryn commented Mar 17, 2014

@jnovatnack ping ;)

@jnovatnack
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants