{"action":"created","issue":{"url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/991","repository_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X","labels_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/991/labels{/name}","comments_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/991/comments","events_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/991/events","html_url":"https://github.com/IMA-WorldHealth/bhima-2.X/issues/991","id":192521968,"number":991,"title":"Inventory groups configuration makes a request for every inventory groups ","user":{"login":"sfount","id":2844572,"avatar_url":"https://avatars.githubusercontent.com/u/2844572?v=3","gravatar_id":"","url":"https://api.github.com/users/sfount","html_url":"https://github.com/sfount","followers_url":"https://api.github.com/users/sfount/followers","following_url":"https://api.github.com/users/sfount/following{/other_user}","gists_url":"https://api.github.com/users/sfount/gists{/gist_id}","starred_url":"https://api.github.com/users/sfount/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfount/subscriptions","organizations_url":"https://api.github.com/users/sfount/orgs","repos_url":"https://api.github.com/users/sfount/repos","events_url":"https://api.github.com/users/sfount/events{/privacy}","received_events_url":"https://api.github.com/users/sfount/received_events","type":"User","site_admin":false},"labels":[{"id":346219463,"url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/labels/refactor","name":"refactor","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-30T09:57:26Z","updated_at":"2016-12-14T08:23:23Z","closed_at":null,"body":"Inventory groups configuration currently lets you see how many inventory items are subscribed to a group. This (relatively) expensive calculation is requested and performed for every inventory group individually.  This results in **n** `GET` requests where **n** is the number of inventory groups. \r\n\r\nThis information should be compiled and sent in one request - ideally it can be determined using a `GROUP_BY` to reduce MySQL connection requests."},"comment":{"url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/comments/266972196","html_url":"https://github.com/IMA-WorldHealth/bhima-2.X/issues/991#issuecomment-266972196","issue_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/991","id":266972196,"user":{"login":"jniles","id":896472,"avatar_url":"https://avatars.githubusercontent.com/u/896472?v=3","gravatar_id":"","url":"https://api.github.com/users/jniles","html_url":"https://github.com/jniles","followers_url":"https://api.github.com/users/jniles/followers","following_url":"https://api.github.com/users/jniles/following{/other_user}","gists_url":"https://api.github.com/users/jniles/gists{/gist_id}","starred_url":"https://api.github.com/users/jniles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jniles/subscriptions","organizations_url":"https://api.github.com/users/jniles/orgs","repos_url":"https://api.github.com/users/jniles/repos","events_url":"https://api.github.com/users/jniles/events{/privacy}","received_events_url":"https://api.github.com/users/jniles/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T08:23:23Z","updated_at":"2016-12-14T08:23:23Z","body":"This should be refactored to be a single GET request that totals the number of items in each inventory group.  Like this: `GET /inventory/groups?include_members=1`.  The inventory configuration page could then send a single GET request instead of many.\r\n\r\n@lomamech, when you are doing with the translation key work, can do tackle this?"}}
{"actor":{"display_login":"jniles"}}