{"action":"created","issue":{"url":"https://api.github.com/repos/orbitjs/ember-orbit/issues/60","labels_url":"https://api.github.com/repos/orbitjs/ember-orbit/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/orbitjs/ember-orbit/issues/60/comments","events_url":"https://api.github.com/repos/orbitjs/ember-orbit/issues/60/events","html_url":"https://github.com/orbitjs/ember-orbit/pull/60","id":63418219,"number":60,"title":"Add failing test for findLinked with chained sources","user":{"login":"opsb","id":46232,"avatar_url":"https://avatars.githubusercontent.com/u/46232?v=3","gravatar_id":"","url":"https://api.github.com/users/opsb","html_url":"https://github.com/opsb","followers_url":"https://api.github.com/users/opsb/followers","following_url":"https://api.github.com/users/opsb/following{/other_user}","gists_url":"https://api.github.com/users/opsb/gists{/gist_id}","starred_url":"https://api.github.com/users/opsb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opsb/subscriptions","organizations_url":"https://api.github.com/users/opsb/orgs","repos_url":"https://api.github.com/users/opsb/repos","events_url":"https://api.github.com/users/opsb/events{/privacy}","received_events_url":"https://api.github.com/users/opsb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-21T15:25:03Z","updated_at":"2015-03-25T01:53:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/orbitjs/ember-orbit/pulls/60","html_url":"https://github.com/orbitjs/ember-orbit/pull/60","diff_url":"https://github.com/orbitjs/ember-orbit/pull/60.diff","patch_url":"https://github.com/orbitjs/ember-orbit/pull/60.patch"},"body":"@dgeb currently findLinked returns stubs(i.e. only the primaryId is populated) if the records have not already been loaded into the store's orbitSource (it calls through to https://github.com/orbitjs/ember-orbit/blob/master/lib/ember-orbit/store.js#L319). \r\n\r\nIt's not immediately obvious what the expected data flow should be here. The populated records are returned by the store's orbitSource but store.findLinked throws this information away and returns stubs. This seems to be an intentional measure to ensure that records aren't created without first being added to the store's orbitSource. "},"comment":{"url":"https://api.github.com/repos/orbitjs/ember-orbit/issues/comments/85783330","html_url":"https://github.com/orbitjs/ember-orbit/pull/60#issuecomment-85783330","issue_url":"https://api.github.com/repos/orbitjs/ember-orbit/issues/60","id":85783330,"user":{"login":"dgeb","id":29122,"avatar_url":"https://avatars.githubusercontent.com/u/29122?v=3","gravatar_id":"","url":"https://api.github.com/users/dgeb","html_url":"https://github.com/dgeb","followers_url":"https://api.github.com/users/dgeb/followers","following_url":"https://api.github.com/users/dgeb/following{/other_user}","gists_url":"https://api.github.com/users/dgeb/gists{/gist_id}","starred_url":"https://api.github.com/users/dgeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgeb/subscriptions","organizations_url":"https://api.github.com/users/dgeb/orgs","repos_url":"https://api.github.com/users/dgeb/repos","events_url":"https://api.github.com/users/dgeb/events{/privacy}","received_events_url":"https://api.github.com/users/dgeb/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T01:53:09Z","updated_at":"2015-03-25T01:53:09Z","body":"> which does in fact return all the data, it's just thrown away by the current implementation of store.findLinked\r\n\r\nThose stubbed entries should be hydrated eventually if the data makes it to the associated source. I'm not saying there isn't a bug, just saying what should happen.\r\n\r\nIn this test, I see you're rescuing a find to return data from another source. Can you also use transform connectors to move that data into the store's backing source?\r\n\r\nI'm guessing we need to explore assist / rescue operations more closely with ember-orbit."}}