{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-ecto/ecto/issues/1960","repository_url":"https://api.github.com/repos/elixir-ecto/ecto","labels_url":"https://api.github.com/repos/elixir-ecto/ecto/issues/1960/labels{/name}","comments_url":"https://api.github.com/repos/elixir-ecto/ecto/issues/1960/comments","events_url":"https://api.github.com/repos/elixir-ecto/ecto/issues/1960/events","html_url":"https://github.com/elixir-ecto/ecto/pull/1960","id":209881425,"number":1960,"title":"Add queryable field to %Ecto.Association.NotLoaded","user":{"login":"aditya7iyengar","id":10440910,"avatar_url":"https://avatars.githubusercontent.com/u/10440910?v=3","gravatar_id":"","url":"https://api.github.com/users/aditya7iyengar","html_url":"https://github.com/aditya7iyengar","followers_url":"https://api.github.com/users/aditya7iyengar/followers","following_url":"https://api.github.com/users/aditya7iyengar/following{/other_user}","gists_url":"https://api.github.com/users/aditya7iyengar/gists{/gist_id}","starred_url":"https://api.github.com/users/aditya7iyengar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aditya7iyengar/subscriptions","organizations_url":"https://api.github.com/users/aditya7iyengar/orgs","repos_url":"https://api.github.com/users/aditya7iyengar/repos","events_url":"https://api.github.com/users/aditya7iyengar/events{/privacy}","received_events_url":"https://api.github.com/users/aditya7iyengar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-23T20:55:09Z","updated_at":"2017-02-23T20:55:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elixir-ecto/ecto/pulls/1960","html_url":"https://github.com/elixir-ecto/ecto/pull/1960","diff_url":"https://github.com/elixir-ecto/ecto/pull/1960.diff","patch_url":"https://github.com/elixir-ecto/ecto/pull/1960.patch"},"body":"- This could be helpful when trying to get the queryable.struct type without hitting the database.\r\n*It feels weird that we have to do a ```owner.preload(:association).assoc``` to get the struct_type as it is defined in `Ecto.Schema` in the application layer.*\r\nThoughts? "},"comment":{"url":"https://api.github.com/repos/elixir-ecto/ecto/issues/comments/282118145","html_url":"https://github.com/elixir-ecto/ecto/pull/1960#issuecomment-282118145","issue_url":"https://api.github.com/repos/elixir-ecto/ecto/issues/1960","id":282118145,"user":{"login":"ebert[bot]","id":23344435,"avatar_url":"https://avatars.githubusercontent.com/in/597?v=3","gravatar_id":"","url":"https://api.github.com/users/ebert%5Bbot%5D","html_url":"https://github.com/integration/ebert","followers_url":"https://api.github.com/users/ebert%5Bbot%5D/followers","following_url":"https://api.github.com/users/ebert%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/ebert%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/ebert%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebert%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/ebert%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/ebert%5Bbot%5D/repos","events_url":"https://api.github.com/users/ebert%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/ebert%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2017-02-23T20:55:15Z","updated_at":"2017-02-23T20:55:15Z","body":"Hello, @aditya7iyengar! This is your first Pull Request that will be reviewed by [Ebert](https://ebertapp.io/), an automatic Code Review service. It will leave comments on this diff with potential issues and style violations found in the code as you push new commits. You can also see all the issues found on this Pull Request on its [review page](https://ebertapp.io/github/elixir-ecto/ecto/pulls/1960). Please check our [documentation](https://ebertapp.io/docs) for more information. "}}
{"actor":{"display_login":"ebert"}}