{"action":"created","issue":{"url":"https://api.github.com/repos/tiagopog/jsonapi-utils/issues/43","repository_url":"https://api.github.com/repos/tiagopog/jsonapi-utils","labels_url":"https://api.github.com/repos/tiagopog/jsonapi-utils/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/tiagopog/jsonapi-utils/issues/43/comments","events_url":"https://api.github.com/repos/tiagopog/jsonapi-utils/issues/43/events","html_url":"https://github.com/tiagopog/jsonapi-utils/issues/43","id":183650699,"number":43,"title":"Error 500 when request wants to sort by non database resident attribute","user":{"login":"MrBananane","id":8092994,"avatar_url":"https://avatars.githubusercontent.com/u/8092994?v=3","gravatar_id":"","url":"https://api.github.com/users/MrBananane","html_url":"https://github.com/MrBananane","followers_url":"https://api.github.com/users/MrBananane/followers","following_url":"https://api.github.com/users/MrBananane/following{/other_user}","gists_url":"https://api.github.com/users/MrBananane/gists{/gist_id}","starred_url":"https://api.github.com/users/MrBananane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrBananane/subscriptions","organizations_url":"https://api.github.com/users/MrBananane/orgs","repos_url":"https://api.github.com/users/MrBananane/repos","events_url":"https://api.github.com/users/MrBananane/events{/privacy}","received_events_url":"https://api.github.com/users/MrBananane/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-18T10:42:23Z","updated_at":"2016-10-18T15:34:57Z","closed_at":"2016-10-18T12:55:55Z","body":"To clarify:\r\n\r\n```\r\n# app/resources/user_resource.rb\r\nclass UserResource < JSONAPI::Resource\r\n  attributes :first_name, :last_name, :full_name, :email, :image_url, :is_admin                                                                                                                                    \r\n\r\n  has_many :projects\r\n\r\n  def full_name\r\n    @model.name\r\n  end\r\nend\r\n```\r\n\r\n```\r\n# app/models/user_model.rb\r\n...\r\n  # Convenient way of getting full name                                                                                                                                                                            \r\n  def name\r\n    [first_name, last_name].join(' ')                                                                                                                                                                              \r\n  end\r\n```\r\n\r\nThe request was : _http://localhost:3000/users?sort=fullName_"},"comment":{"url":"https://api.github.com/repos/tiagopog/jsonapi-utils/issues/comments/254546400","html_url":"https://github.com/tiagopog/jsonapi-utils/issues/43#issuecomment-254546400","issue_url":"https://api.github.com/repos/tiagopog/jsonapi-utils/issues/43","id":254546400,"user":{"login":"tiagopog","id":760933,"avatar_url":"https://avatars.githubusercontent.com/u/760933?v=3","gravatar_id":"","url":"https://api.github.com/users/tiagopog","html_url":"https://github.com/tiagopog","followers_url":"https://api.github.com/users/tiagopog/followers","following_url":"https://api.github.com/users/tiagopog/following{/other_user}","gists_url":"https://api.github.com/users/tiagopog/gists{/gist_id}","starred_url":"https://api.github.com/users/tiagopog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiagopog/subscriptions","organizations_url":"https://api.github.com/users/tiagopog/orgs","repos_url":"https://api.github.com/users/tiagopog/repos","events_url":"https://api.github.com/users/tiagopog/events{/privacy}","received_events_url":"https://api.github.com/users/tiagopog/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T15:34:57Z","updated_at":"2016-10-18T15:34:57Z","body":"👍 "}}
{"actor":{"display_login":"tiagopog"}}