{"action":"opened","issue":{"url":"https://api.github.com/repos/c4gnv/business-web/issues/15","repository_url":"https://api.github.com/repos/c4gnv/business-web","labels_url":"https://api.github.com/repos/c4gnv/business-web/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/c4gnv/business-web/issues/15/comments","events_url":"https://api.github.com/repos/c4gnv/business-web/issues/15/events","html_url":"https://github.com/c4gnv/business-web/issues/15","id":178402036,"number":15,"title":"Evaluate existing data structure returned by service layer","user":{"login":"Bjorn248","id":1063707,"avatar_url":"https://avatars.githubusercontent.com/u/1063707?v=3","gravatar_id":"","url":"https://api.github.com/users/Bjorn248","html_url":"https://github.com/Bjorn248","followers_url":"https://api.github.com/users/Bjorn248/followers","following_url":"https://api.github.com/users/Bjorn248/following{/other_user}","gists_url":"https://api.github.com/users/Bjorn248/gists{/gist_id}","starred_url":"https://api.github.com/users/Bjorn248/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bjorn248/subscriptions","organizations_url":"https://api.github.com/users/Bjorn248/orgs","repos_url":"https://api.github.com/users/Bjorn248/repos","events_url":"https://api.github.com/users/Bjorn248/events{/privacy}","received_events_url":"https://api.github.com/users/Bjorn248/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Bjorn248","id":1063707,"avatar_url":"https://avatars.githubusercontent.com/u/1063707?v=3","gravatar_id":"","url":"https://api.github.com/users/Bjorn248","html_url":"https://github.com/Bjorn248","followers_url":"https://api.github.com/users/Bjorn248/followers","following_url":"https://api.github.com/users/Bjorn248/following{/other_user}","gists_url":"https://api.github.com/users/Bjorn248/gists{/gist_id}","starred_url":"https://api.github.com/users/Bjorn248/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bjorn248/subscriptions","organizations_url":"https://api.github.com/users/Bjorn248/orgs","repos_url":"https://api.github.com/users/Bjorn248/repos","events_url":"https://api.github.com/users/Bjorn248/events{/privacy}","received_events_url":"https://api.github.com/users/Bjorn248/received_events","type":"User","site_admin":false},"assignees":[{"login":"Bjorn248","id":1063707,"avatar_url":"https://avatars.githubusercontent.com/u/1063707?v=3","gravatar_id":"","url":"https://api.github.com/users/Bjorn248","html_url":"https://github.com/Bjorn248","followers_url":"https://api.github.com/users/Bjorn248/followers","following_url":"https://api.github.com/users/Bjorn248/following{/other_user}","gists_url":"https://api.github.com/users/Bjorn248/gists{/gist_id}","starred_url":"https://api.github.com/users/Bjorn248/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bjorn248/subscriptions","organizations_url":"https://api.github.com/users/Bjorn248/orgs","repos_url":"https://api.github.com/users/Bjorn248/repos","events_url":"https://api.github.com/users/Bjorn248/events{/privacy}","received_events_url":"https://api.github.com/users/Bjorn248/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-09-21T16:44:42Z","updated_at":"2016-09-21T16:44:42Z","closed_at":null,"body":"Currently it is a `BusinessCategory[]` but if we are required to do lookups on categories to get business types, or business types to get permits, we will have to change the data structure to an object where the keys are the names of business categories, types, and permit names and the values are objects whose keys are the values we want returned. \r\n\r\nAnother option would be to add a function that takes the original data structure and creates a lookup object from it instead of the lookup object being returned from the service layer.\r\n\r\nThis assumes that lookup functions will be required by the frontend. If they are not required, then this is not relevant. "}}
{"actor":{"display_login":"Bjorn248"}}