{"action":"created","issue":{"url":"https://api.github.com/repos/foodcoops/foodsoft/issues/347","labels_url":"https://api.github.com/repos/foodcoops/foodsoft/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/foodcoops/foodsoft/issues/347/comments","events_url":"https://api.github.com/repos/foodcoops/foodsoft/issues/347/events","html_url":"https://github.com/foodcoops/foodsoft/pull/347","id":58086537,"number":347,"title":"Show only suppliers with articles in the dropdown-menu for new orders","user":{"login":"paroga","id":337009,"avatar_url":"https://avatars.githubusercontent.com/u/337009?v=3","gravatar_id":"","url":"https://api.github.com/users/paroga","html_url":"https://github.com/paroga","followers_url":"https://api.github.com/users/paroga/followers","following_url":"https://api.github.com/users/paroga/following{/other_user}","gists_url":"https://api.github.com/users/paroga/gists{/gist_id}","starred_url":"https://api.github.com/users/paroga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paroga/subscriptions","organizations_url":"https://api.github.com/users/paroga/orgs","repos_url":"https://api.github.com/users/paroga/repos","events_url":"https://api.github.com/users/paroga/events{/privacy}","received_events_url":"https://api.github.com/users/paroga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-18T15:59:14Z","updated_at":"2015-02-18T20:38:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/foodcoops/foodsoft/pulls/347","html_url":"https://github.com/foodcoops/foodsoft/pull/347","diff_url":"https://github.com/foodcoops/foodsoft/pull/347.diff","patch_url":"https://github.com/foodcoops/foodsoft/pull/347.patch"},"body":"When there are many suppliers to be able to select them for invoices,\r\nthe menu for creating new orders gets unclear."},"comment":{"url":"https://api.github.com/repos/foodcoops/foodsoft/issues/comments/74943038","html_url":"https://github.com/foodcoops/foodsoft/pull/347#issuecomment-74943038","issue_url":"https://api.github.com/repos/foodcoops/foodsoft/issues/347","id":74943038,"user":{"login":"wvengen","id":503804,"avatar_url":"https://avatars.githubusercontent.com/u/503804?v=3","gravatar_id":"","url":"https://api.github.com/users/wvengen","html_url":"https://github.com/wvengen","followers_url":"https://api.github.com/users/wvengen/followers","following_url":"https://api.github.com/users/wvengen/following{/other_user}","gists_url":"https://api.github.com/users/wvengen/gists{/gist_id}","starred_url":"https://api.github.com/users/wvengen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvengen/subscriptions","organizations_url":"https://api.github.com/users/wvengen/orgs","repos_url":"https://api.github.com/users/wvengen/repos","events_url":"https://api.github.com/users/wvengen/events{/privacy}","received_events_url":"https://api.github.com/users/wvengen/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T20:38:14Z","updated_at":"2015-02-18T20:38:14Z","body":"Nice idea! Does this generate [N+1 queries](http://www.ibm.com/developerworks/library/os-railsn1/index.html) for the article count? In that case it'd be useful to preload the article count. Or, better, update the controller to only return suppliers that have articles. Could be done using group_by and having."}}