{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/data/issues/4428","repository_url":"https://api.github.com/repos/emberjs/data","labels_url":"https://api.github.com/repos/emberjs/data/issues/4428/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/data/issues/4428/comments","events_url":"https://api.github.com/repos/emberjs/data/issues/4428/events","html_url":"https://github.com/emberjs/data/issues/4428","id":159934329,"number":4428,"title":"Async in prod and debug version does not perform the same","user":{"login":"cbou","id":611389,"avatar_url":"https://avatars.githubusercontent.com/u/611389?v=3","gravatar_id":"","url":"https://api.github.com/users/cbou","html_url":"https://github.com/cbou","followers_url":"https://api.github.com/users/cbou/followers","following_url":"https://api.github.com/users/cbou/following{/other_user}","gists_url":"https://api.github.com/users/cbou/gists{/gist_id}","starred_url":"https://api.github.com/users/cbou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbou/subscriptions","organizations_url":"https://api.github.com/users/cbou/orgs","repos_url":"https://api.github.com/users/cbou/repos","events_url":"https://api.github.com/users/cbou/events{/privacy}","received_events_url":"https://api.github.com/users/cbou/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/emberjs/data/labels/Needs%20Team%20Discussion","name":"Needs Team Discussion","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-06-13T12:03:07Z","updated_at":"2016-08-17T15:00:54Z","closed_at":null,"body":"Because of the use of `assert` in the debug version of EmberJS Data, when using relationship with `async: false` the records needs to be loaded before using the relationship.\r\n\r\nIn the prod version, the `assert` is not present which is allow to the relationship even if the related record is not loaded yet. It will be updated as soon as the record is loaded.\r\n\r\nTo me the `assert` should be changed into a `warn`.\r\n\r\nhttps://github.com/emberjs/data/blob/master/addon/-private/system/relationships/state/belongs-to.js#L143\r\nhttps://github.com/emberjs/data/blob/master/addon/-private/system/relationships/state/has-many.js#L207"},"comment":{"url":"https://api.github.com/repos/emberjs/data/issues/comments/240439982","html_url":"https://github.com/emberjs/data/issues/4428#issuecomment-240439982","issue_url":"https://api.github.com/repos/emberjs/data/issues/4428","id":240439982,"user":{"login":"pangratz","id":341877,"avatar_url":"https://avatars.githubusercontent.com/u/341877?v=3","gravatar_id":"","url":"https://api.github.com/users/pangratz","html_url":"https://github.com/pangratz","followers_url":"https://api.github.com/users/pangratz/followers","following_url":"https://api.github.com/users/pangratz/following{/other_user}","gists_url":"https://api.github.com/users/pangratz/gists{/gist_id}","starred_url":"https://api.github.com/users/pangratz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pangratz/subscriptions","organizations_url":"https://api.github.com/users/pangratz/orgs","repos_url":"https://api.github.com/users/pangratz/repos","events_url":"https://api.github.com/users/pangratz/events{/privacy}","received_events_url":"https://api.github.com/users/pangratz/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T15:00:54Z","updated_at":"2016-08-17T15:00:54Z","body":"Hmm, I don't know of any easy solution to that at the moment 😔  \r\n\r\nReferences added in #3303 allow you to check the loading state of relationships without triggering a fetch, but they are currently not available in templates..."}}
{"actor":{"display_login":"pangratz"}}