{"action":"created","issue":{"url":"https://api.github.com/repos/view-components/view-components/issues/33","repository_url":"https://api.github.com/repos/view-components/view-components","labels_url":"https://api.github.com/repos/view-components/view-components/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/view-components/view-components/issues/33/comments","events_url":"https://api.github.com/repos/view-components/view-components/issues/33/events","html_url":"https://github.com/view-components/view-components/issues/33","id":197561634,"number":33,"title":"Problem with column sorting and postgres with pagination","user":{"login":"DigiDaz","id":9353544,"avatar_url":"https://avatars.githubusercontent.com/u/9353544?v=3","gravatar_id":"","url":"https://api.github.com/users/DigiDaz","html_url":"https://github.com/DigiDaz","followers_url":"https://api.github.com/users/DigiDaz/followers","following_url":"https://api.github.com/users/DigiDaz/following{/other_user}","gists_url":"https://api.github.com/users/DigiDaz/gists{/gist_id}","starred_url":"https://api.github.com/users/DigiDaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DigiDaz/subscriptions","organizations_url":"https://api.github.com/users/DigiDaz/orgs","repos_url":"https://api.github.com/users/DigiDaz/repos","events_url":"https://api.github.com/users/DigiDaz/events{/privacy}","received_events_url":"https://api.github.com/users/DigiDaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-26T09:05:08Z","updated_at":"2016-12-27T13:20:48Z","closed_at":null,"body":"When using column sorting with postgres and error is returned.\r\n\r\nThe error only happens when you have column sorting AND pagination.\r\n\r\nMethod ViewComponents\\Grids\\Grid::__toString() must not throw an exception, caught Illuminate\\Database\\QueryException: SQLSTATE[42803]: Grouping error: 7 ERROR: column \"clientaccounts.last_name\" must appear in the GROUP BY clause or be used in an aggregate function\r\nLINE 1: ...nt(*) as aggregate from \"clientaccounts\" order by \"last_name...\r\n^ (SQL: select count(*) as aggregate from \"clientaccounts\" order by \"last_name\" asc)\r\n\r\nThis does not seem valid postgres sql: select count(*) as aggregate from \"clientaccounts\" order by \"last_name\" asc\r\n"},"comment":{"url":"https://api.github.com/repos/view-components/view-components/issues/comments/269324995","html_url":"https://github.com/view-components/view-components/issues/33#issuecomment-269324995","issue_url":"https://api.github.com/repos/view-components/view-components/issues/33","id":269324995,"user":{"login":"DigiDaz","id":9353544,"avatar_url":"https://avatars.githubusercontent.com/u/9353544?v=3","gravatar_id":"","url":"https://api.github.com/users/DigiDaz","html_url":"https://github.com/DigiDaz","followers_url":"https://api.github.com/users/DigiDaz/followers","following_url":"https://api.github.com/users/DigiDaz/following{/other_user}","gists_url":"https://api.github.com/users/DigiDaz/gists{/gist_id}","starred_url":"https://api.github.com/users/DigiDaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DigiDaz/subscriptions","organizations_url":"https://api.github.com/users/DigiDaz/orgs","repos_url":"https://api.github.com/users/DigiDaz/repos","events_url":"https://api.github.com/users/DigiDaz/events{/privacy}","received_events_url":"https://api.github.com/users/DigiDaz/received_events","type":"User","site_admin":false},"created_at":"2016-12-27T13:20:48Z","updated_at":"2016-12-27T13:20:48Z","body":"Hi, yes, I think this works, it seems to come in in $operations and if I remove it from there then it works."}}
{"actor":{"display_login":"DigiDaz"}}