{"action":"opened","issue":{"url":"https://api.github.com/repos/cerebris/jsonapi-resources/issues/925","repository_url":"https://api.github.com/repos/cerebris/jsonapi-resources","labels_url":"https://api.github.com/repos/cerebris/jsonapi-resources/issues/925/labels{/name}","comments_url":"https://api.github.com/repos/cerebris/jsonapi-resources/issues/925/comments","events_url":"https://api.github.com/repos/cerebris/jsonapi-resources/issues/925/events","html_url":"https://github.com/cerebris/jsonapi-resources/issues/925","id":194725372,"number":925,"title":"Sideloading namespaced models working erratically ","user":{"login":"joshuacronemeyer","id":31906,"avatar_url":"https://avatars.githubusercontent.com/u/31906?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuacronemeyer","html_url":"https://github.com/joshuacronemeyer","followers_url":"https://api.github.com/users/joshuacronemeyer/followers","following_url":"https://api.github.com/users/joshuacronemeyer/following{/other_user}","gists_url":"https://api.github.com/users/joshuacronemeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuacronemeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuacronemeyer/subscriptions","organizations_url":"https://api.github.com/users/joshuacronemeyer/orgs","repos_url":"https://api.github.com/users/joshuacronemeyer/repos","events_url":"https://api.github.com/users/joshuacronemeyer/events{/privacy}","received_events_url":"https://api.github.com/users/joshuacronemeyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-09T23:53:30Z","updated_at":"2016-12-09T23:53:30Z","closed_at":null,"body":"Hi, I have a user resource for a namespaced user model with 2 has_many associations: addresses and credit_cards. When I request a user and include addresses everything works fine. When I request user and include the credit_cards I get a 400 bad request. My understanding is that the server should respond with a 400 when I've requested to include something that isn't available (like it says [here](http://jsonapi.org/format/#fetching-includes)) But i've setup the associations in the same way, so I'm not sure the models which are identical behave differently.\r\n\r\nI created [a dummy rails app](https://github.com/joshuacronemeyer/jsonapi_resource_namespaces) with tests that illustrate this issue. Specifically Core::UsersControllerTest#test_should_get_user_from_api_with_credit_card_association and Core::UsersControllerTest#test_should_get_user_from_api_with_both_associations are failing. Any help determining if I'm doing something wrong or this is a bug would be appreciated, and thanks in advance!"}}
{"actor":{"display_login":"joshuacronemeyer"}}