{"action":"created","issue":{"url":"https://api.github.com/repos/open-company/open-company-web/issues/8","labels_url":"https://api.github.com/repos/open-company/open-company-web/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/open-company/open-company-web/issues/8/comments","events_url":"https://api.github.com/repos/open-company/open-company-web/issues/8/events","html_url":"https://github.com/open-company/open-company-web/pull/8","id":96383625,"number":8,"title":"Api integration","user":{"login":"bago2k4","id":642704,"avatar_url":"https://avatars.githubusercontent.com/u/642704?v=3","gravatar_id":"","url":"https://api.github.com/users/bago2k4","html_url":"https://github.com/bago2k4","followers_url":"https://api.github.com/users/bago2k4/followers","following_url":"https://api.github.com/users/bago2k4/following{/other_user}","gists_url":"https://api.github.com/users/bago2k4/gists{/gist_id}","starred_url":"https://api.github.com/users/bago2k4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bago2k4/subscriptions","organizations_url":"https://api.github.com/users/bago2k4/orgs","repos_url":"https://api.github.com/users/bago2k4/repos","events_url":"https://api.github.com/users/bago2k4/events{/privacy}","received_events_url":"https://api.github.com/users/bago2k4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"belucid","id":12163,"avatar_url":"https://avatars.githubusercontent.com/u/12163?v=3","gravatar_id":"","url":"https://api.github.com/users/belucid","html_url":"https://github.com/belucid","followers_url":"https://api.github.com/users/belucid/followers","following_url":"https://api.github.com/users/belucid/following{/other_user}","gists_url":"https://api.github.com/users/belucid/gists{/gist_id}","starred_url":"https://api.github.com/users/belucid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belucid/subscriptions","organizations_url":"https://api.github.com/users/belucid/orgs","repos_url":"https://api.github.com/users/belucid/repos","events_url":"https://api.github.com/users/belucid/events{/privacy}","received_events_url":"https://api.github.com/users/belucid/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-07-21T18:23:14Z","updated_at":"2015-07-21T20:04:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/open-company/open-company-web/pulls/8","html_url":"https://github.com/open-company/open-company-web/pull/8","diff_url":"https://github.com/open-company/open-company-web/pull/8.diff","patch_url":"https://github.com/open-company/open-company-web/pull/8.patch"},"body":"card: https://trello.com/c/WLDgwPjX\r\n\r\nuse the api to load data to show.\r\n\r\n- load [localhost:3449](http://localhost:3449), the list of companies should be empty\r\n- add a couple of companies\r\n- reload [localhost:3449](http://localhost:3449), now you should see 2 companies\r\n- click on one, you should only the name of the company\r\n- add a couple of reports for the company\r\n- reload the page, now you should see 2 reports in the list\r\n- click on one, the report should load\r\n- go back and click on the other\r\n- all good? no errors in the console?\r\n- load a company that does not exist: [localhost:3449/companies/BAGO](http://localhost:3449/companies/BAGO)\r\n- load a report that does not exist: [localhost:3449/companies/OPEN/2015/m1](http://localhost:3449/companies/OPEN/2014/Q8)\r\n- all well? merge"},"comment":{"url":"https://api.github.com/repos/open-company/open-company-web/issues/comments/123462657","html_url":"https://github.com/open-company/open-company-web/pull/8#issuecomment-123462657","issue_url":"https://api.github.com/repos/open-company/open-company-web/issues/8","id":123462657,"user":{"login":"belucid","id":12163,"avatar_url":"https://avatars.githubusercontent.com/u/12163?v=3","gravatar_id":"","url":"https://api.github.com/users/belucid","html_url":"https://github.com/belucid","followers_url":"https://api.github.com/users/belucid/followers","following_url":"https://api.github.com/users/belucid/following{/other_user}","gists_url":"https://api.github.com/users/belucid/gists{/gist_id}","starred_url":"https://api.github.com/users/belucid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belucid/subscriptions","organizations_url":"https://api.github.com/users/belucid/orgs","repos_url":"https://api.github.com/users/belucid/repos","events_url":"https://api.github.com/users/belucid/events{/privacy}","received_events_url":"https://api.github.com/users/belucid/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T20:04:19Z","updated_at":"2015-07-21T20:04:19Z","body":"We don't have to use (get ...), when the key is a string can just reverse the order. (:key hash) works and of course (\"key\" hash) doesn't, but (hash \"key\") does:\r\n\r\n```clojure\r\n({\"compensation\" 100} \"compensation\")\r\n100\r\n```\r\n\r\nNot a big deal... just keeps the code a little tidier without all the (gets ...)\r\n\r\nThe other option is when the data comes in from the API you can keywordize it:\r\n\r\n```clojure\r\n(clojure.walk/keywordize-keys {\"foo\" \"bar\"})\r\n{:foo \"bar\"}\r\n```"}}