{"action":"created","issue":{"url":"https://api.github.com/repos/Netflix/fast_jsonapi/issues/276","repository_url":"https://api.github.com/repos/Netflix/fast_jsonapi","labels_url":"https://api.github.com/repos/Netflix/fast_jsonapi/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/fast_jsonapi/issues/276/comments","events_url":"https://api.github.com/repos/Netflix/fast_jsonapi/issues/276/events","html_url":"https://github.com/Netflix/fast_jsonapi/issues/276","id":342763442,"node_id":"MDU6SXNzdWUzNDI3NjM0NDI=","number":276,"title":"Nested includes not working as documented","user":{"login":"TrevorHinesley","id":1079481,"node_id":"MDQ6VXNlcjEwNzk0ODE=","avatar_url":"https://avatars3.githubusercontent.com/u/1079481?v=4","gravatar_id":"","url":"https://api.github.com/users/TrevorHinesley","html_url":"https://github.com/TrevorHinesley","followers_url":"https://api.github.com/users/TrevorHinesley/followers","following_url":"https://api.github.com/users/TrevorHinesley/following{/other_user}","gists_url":"https://api.github.com/users/TrevorHinesley/gists{/gist_id}","starred_url":"https://api.github.com/users/TrevorHinesley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrevorHinesley/subscriptions","organizations_url":"https://api.github.com/users/TrevorHinesley/orgs","repos_url":"https://api.github.com/users/TrevorHinesley/repos","events_url":"https://api.github.com/users/TrevorHinesley/events{/privacy}","received_events_url":"https://api.github.com/users/TrevorHinesley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-19T14:52:53Z","updated_at":"2018-11-12T23:04:02Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Per the [documentation](https://github.com/Netflix/fast_jsonapi#compound-document), one should be able to specify nested relationships in the `include` key and only return the last relationship in dot notation. However, this is not working like that. Using the RSpec contexts:\r\n\r\n```\r\noptions = {}\r\noptions[:include] = [:\"actors.awards\"]\r\nMovieSerializer.new(movie, options).serializable_hash\r\n```\r\n\r\nThis should only include `awards`, but it includes `actors` and `awards`.\r\n\r\nPersonally, I prefer this, but is it the intended behavior?"},"comment":{"url":"https://api.github.com/repos/Netflix/fast_jsonapi/issues/comments/438060945","html_url":"https://github.com/Netflix/fast_jsonapi/issues/276#issuecomment-438060945","issue_url":"https://api.github.com/repos/Netflix/fast_jsonapi/issues/276","id":438060945,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODA2MDk0NQ==","user":{"login":"Karimit","id":2866797,"node_id":"MDQ6VXNlcjI4NjY3OTc=","avatar_url":"https://avatars1.githubusercontent.com/u/2866797?v=4","gravatar_id":"","url":"https://api.github.com/users/Karimit","html_url":"https://github.com/Karimit","followers_url":"https://api.github.com/users/Karimit/followers","following_url":"https://api.github.com/users/Karimit/following{/other_user}","gists_url":"https://api.github.com/users/Karimit/gists{/gist_id}","starred_url":"https://api.github.com/users/Karimit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Karimit/subscriptions","organizations_url":"https://api.github.com/users/Karimit/orgs","repos_url":"https://api.github.com/users/Karimit/repos","events_url":"https://api.github.com/users/Karimit/events{/privacy}","received_events_url":"https://api.github.com/users/Karimit/received_events","type":"User","site_admin":false},"created_at":"2018-11-12T23:04:02Z","updated_at":"2018-11-12T23:04:02Z","author_association":"NONE","body":"I have a _Trip_ model that _has_many_ _Ticket_s. Both _Trip_ and _Ticket_ _has_many_ _Node_s.\r\nRight now `options[:include] = [:'tickets.nodes']` includes ticket nodes as well as trip nodes, while I was expecting only ticket nodes to be included.\r\nI think `options[:include] = [:'tickets.nodes']` should only include tickets nodes."}}
{"actor":{"display_login":"Karimit"}}