{"action":"created","comment":{"url":"https://api.github.com/repos/democracyworks/user-works/pulls/comments/31455956","id":31455956,"diff_hunk":"@@ -0,0 +1,68 @@\n+(ns user-works.entities.address","path":"src/user_works/entities/address.clj","position":1,"original_position":1,"commit_id":"a49cf726f6a3c6e2ee8b60eb01667ea8490f5581","original_commit_id":"76bfe18ff53457015d3cc405506124e2e2b70853","user":{"login":"tank157","id":4147,"avatar_url":"https://avatars.githubusercontent.com/u/4147?v=3","gravatar_id":"","url":"https://api.github.com/users/tank157","html_url":"https://github.com/tank157","followers_url":"https://api.github.com/users/tank157/followers","following_url":"https://api.github.com/users/tank157/following{/other_user}","gists_url":"https://api.github.com/users/tank157/gists{/gist_id}","starred_url":"https://api.github.com/users/tank157/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tank157/subscriptions","organizations_url":"https://api.github.com/users/tank157/orgs","repos_url":"https://api.github.com/users/tank157/repos","events_url":"https://api.github.com/users/tank157/events{/privacy}","received_events_url":"https://api.github.com/users/tank157/received_events","type":"User","site_admin":false},"body":"Out of scope for right now, but at some point this could/should be generified so we can reuse the base code for addresses attached to other things too (like election authorities).","created_at":"2015-06-01T18:39:04Z","updated_at":"2015-06-01T18:39:04Z","html_url":"https://github.com/democracyworks/user-works/pull/2#discussion_r31455956","pull_request_url":"https://api.github.com/repos/democracyworks/user-works/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/democracyworks/user-works/pulls/comments/31455956"},"html":{"href":"https://github.com/democracyworks/user-works/pull/2#discussion_r31455956"},"pull_request":{"href":"https://api.github.com/repos/democracyworks/user-works/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/democracyworks/user-works/pulls/2","id":36651454,"html_url":"https://github.com/democracyworks/user-works/pull/2","diff_url":"https://github.com/democracyworks/user-works/pull/2.diff","patch_url":"https://github.com/democracyworks/user-works/pull/2.patch","issue_url":"https://api.github.com/repos/democracyworks/user-works/issues/2","number":2,"state":"open","locked":false,"title":"Addresses","user":{"login":"tie-rack","id":3526,"avatar_url":"https://avatars.githubusercontent.com/u/3526?v=3","gravatar_id":"","url":"https://api.github.com/users/tie-rack","html_url":"https://github.com/tie-rack","followers_url":"https://api.github.com/users/tie-rack/followers","following_url":"https://api.github.com/users/tie-rack/following{/other_user}","gists_url":"https://api.github.com/users/tie-rack/gists{/gist_id}","starred_url":"https://api.github.com/users/tie-rack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tie-rack/subscriptions","organizations_url":"https://api.github.com/users/tie-rack/orgs","repos_url":"https://api.github.com/users/tie-rack/repos","events_url":"https://api.github.com/users/tie-rack/events{/privacy}","received_events_url":"https://api.github.com/users/tie-rack/received_events","type":"User","site_admin":false},"body":"Pivotal: [95494362](https://www.pivotaltracker.com/story/show/95494362)\r\n\r\nChanges the `:user/address` attribute to cardinality many in the Datomic schema and adds an :address/type attribute, allowing for multiple, arbitrarily-typed addresses for each user.\r\n\r\nFor example:\r\n\r\n```clojure\r\n{:first-name \"John\"\r\n :last-name \"Adams\"\r\n :email \"jadams1735@example.com\"\r\n :phone \"202-456-1414\"\r\n :addresses [{:type :home\r\n              :street \"1600 Pennsylvania Ave NW\"\r\n              :city \"Washington\"\r\n              :state \"DC\"\r\n              :zip \"20500\"}\r\n             {:type :birthplace\r\n              :street \"133 Franklin St\"\r\n              :city \"Quincy\"\r\n              :state \"MA\"\r\n              :zip \"02169\"}]}\r\n```\r\n\r\nIncludes namespace gardening so everything's not all sitting in `user-works.handlers`.","created_at":"2015-06-01T17:33:22Z","updated_at":"2015-06-01T18:39:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee4026249a64aa614b6ac1d2e9d6450021e65299","assignee":{"login":"tank157","id":4147,"avatar_url":"https://avatars.githubusercontent.com/u/4147?v=3","gravatar_id":"","url":"https://api.github.com/users/tank157","html_url":"https://github.com/tank157","followers_url":"https://api.github.com/users/tank157/followers","following_url":"https://api.github.com/users/tank157/following{/other_user}","gists_url":"https://api.github.com/users/tank157/gists{/gist_id}","starred_url":"https://api.github.com/users/tank157/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tank157/subscriptions","organizations_url":"https://api.github.com/users/tank157/orgs","repos_url":"https://api.github.com/users/tank157/repos","events_url":"https://api.github.com/users/tank157/events{/privacy}","received_events_url":"https://api.github.com/users/tank157/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/democracyworks/user-works/pulls/2/commits","review_comments_url":"https://api.github.com/repos/democracyworks/user-works/pulls/2/comments","review_comment_url":"https://api.github.com/repos/democracyworks/user-works/pulls/comments{/number}","comments_url":"https://api.github.com/repos/democracyworks/user-works/issues/2/comments","statuses_url":"https://api.github.com/repos/democracyworks/user-works/statuses/a49cf726f6a3c6e2ee8b60eb01667ea8490f5581","head":{"label":"democracyworks:addresses","ref":"addresses","sha":"a49cf726f6a3c6e2ee8b60eb01667ea8490f5581","user":{"login":"democracyworks","id":1373557,"avatar_url":"https://avatars.githubusercontent.com/u/1373557?v=3","gravatar_id":"","url":"https://api.github.com/users/democracyworks","html_url":"https://github.com/democracyworks","followers_url":"https://api.github.com/users/democracyworks/followers","following_url":"https://api.github.com/users/democracyworks/following{/other_user}","gists_url":"https://api.github.com/users/democracyworks/gists{/gist_id}","starred_url":"https://api.github.com/users/democracyworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/democracyworks/subscriptions","organizations_url":"https://api.github.com/users/democracyworks/orgs","repos_url":"https://api.github.com/users/democracyworks/repos","events_url":"https://api.github.com/users/democracyworks/events{/privacy}","received_events_url":"https://api.github.com/users/democracyworks/received_events","type":"Organization","site_admin":false},"repo":{"id":35972977,"name":"user-works","full_name":"democracyworks/user-works","owner":{"login":"democracyworks","id":1373557,"avatar_url":"https://avatars.githubusercontent.com/u/1373557?v=3","gravatar_id":"","url":"https://api.github.com/users/democracyworks","html_url":"https://github.com/democracyworks","followers_url":"https://api.github.com/users/democracyworks/followers","following_url":"https://api.github.com/users/democracyworks/following{/other_user}","gists_url":"https://api.github.com/users/democracyworks/gists{/gist_id}","starred_url":"https://api.github.com/users/democracyworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/democracyworks/subscriptions","organizations_url":"https://api.github.com/users/democracyworks/orgs","repos_url":"https://api.github.com/users/democracyworks/repos","events_url":"https://api.github.com/users/democracyworks/events{/privacy}","received_events_url":"https://api.github.com/users/democracyworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/democracyworks/user-works","description":"Store user information.","fork":false,"url":"https://api.github.com/repos/democracyworks/user-works","forks_url":"https://api.github.com/repos/democracyworks/user-works/forks","keys_url":"https://api.github.com/repos/democracyworks/user-works/keys{/key_id}","collaborators_url":"https://api.github.com/repos/democracyworks/user-works/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/democracyworks/user-works/teams","hooks_url":"https://api.github.com/repos/democracyworks/user-works/hooks","issue_events_url":"https://api.github.com/repos/democracyworks/user-works/issues/events{/number}","events_url":"https://api.github.com/repos/democracyworks/user-works/events","assignees_url":"https://api.github.com/repos/democracyworks/user-works/assignees{/user}","branches_url":"https://api.github.com/repos/democracyworks/user-works/branches{/branch}","tags_url":"https://api.github.com/repos/democracyworks/user-works/tags","blobs_url":"https://api.github.com/repos/democracyworks/user-works/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/democracyworks/user-works/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/democracyworks/user-works/git/refs{/sha}","trees_url":"https://api.github.com/repos/democracyworks/user-works/git/trees{/sha}","statuses_url":"https://api.github.com/repos/democracyworks/user-works/statuses/{sha}","languages_url":"https://api.github.com/repos/democracyworks/user-works/languages","stargazers_url":"https://api.github.com/repos/democracyworks/user-works/stargazers","contributors_url":"https://api.github.com/repos/democracyworks/user-works/contributors","subscribers_url":"https://api.github.com/repos/democracyworks/user-works/subscribers","subscription_url":"https://api.github.com/repos/democracyworks/user-works/subscription","commits_url":"https://api.github.com/repos/democracyworks/user-works/commits{/sha}","git_commits_url":"https://api.github.com/repos/democracyworks/user-works/git/commits{/sha}","comments_url":"https://api.github.com/repos/democracyworks/user-works/comments{/number}","issue_comment_url":"https://api.github.com/repos/democracyworks/user-works/issues/comments{/number}","contents_url":"https://api.github.com/repos/democracyworks/user-works/contents/{+path}","compare_url":"https://api.github.com/repos/democracyworks/user-works/compare/{base}...{head}","merges_url":"https://api.github.com/repos/democracyworks/user-works/merges","archive_url":"https://api.github.com/repos/democracyworks/user-works/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/democracyworks/user-works/downloads","issues_url":"https://api.github.com/repos/democracyworks/user-works/issues{/number}","pulls_url":"https://api.github.com/repos/democracyworks/user-works/pulls{/number}","milestones_url":"https://api.github.com/repos/democracyworks/user-works/milestones{/number}","notifications_url":"https://api.github.com/repos/democracyworks/user-works/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/democracyworks/user-works/labels{/name}","releases_url":"https://api.github.com/repos/democracyworks/user-works/releases{/id}","created_at":"2015-05-20T20:39:38Z","updated_at":"2015-05-20T20:40:29Z","pushed_at":"2015-06-01T18:29:24Z","git_url":"git://github.com/democracyworks/user-works.git","ssh_url":"git@github.com:democracyworks/user-works.git","clone_url":"https://github.com/democracyworks/user-works.git","svn_url":"https://github.com/democracyworks/user-works","homepage":null,"size":176,"stargazers_count":0,"watchers_count":0,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"democracyworks:master","ref":"master","sha":"acafde44dddd436fafd1d70f0b6e46a70438d956","user":{"login":"democracyworks","id":1373557,"avatar_url":"https://avatars.githubusercontent.com/u/1373557?v=3","gravatar_id":"","url":"https://api.github.com/users/democracyworks","html_url":"https://github.com/democracyworks","followers_url":"https://api.github.com/users/democracyworks/followers","following_url":"https://api.github.com/users/democracyworks/following{/other_user}","gists_url":"https://api.github.com/users/democracyworks/gists{/gist_id}","starred_url":"https://api.github.com/users/democracyworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/democracyworks/subscriptions","organizations_url":"https://api.github.com/users/democracyworks/orgs","repos_url":"https://api.github.com/users/democracyworks/repos","events_url":"https://api.github.com/users/democracyworks/events{/privacy}","received_events_url":"https://api.github.com/users/democracyworks/received_events","type":"Organization","site_admin":false},"repo":{"id":35972977,"name":"user-works","full_name":"democracyworks/user-works","owner":{"login":"democracyworks","id":1373557,"avatar_url":"https://avatars.githubusercontent.com/u/1373557?v=3","gravatar_id":"","url":"https://api.github.com/users/democracyworks","html_url":"https://github.com/democracyworks","followers_url":"https://api.github.com/users/democracyworks/followers","following_url":"https://api.github.com/users/democracyworks/following{/other_user}","gists_url":"https://api.github.com/users/democracyworks/gists{/gist_id}","starred_url":"https://api.github.com/users/democracyworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/democracyworks/subscriptions","organizations_url":"https://api.github.com/users/democracyworks/orgs","repos_url":"https://api.github.com/users/democracyworks/repos","events_url":"https://api.github.com/users/democracyworks/events{/privacy}","received_events_url":"https://api.github.com/users/democracyworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/democracyworks/user-works","description":"Store user information.","fork":false,"url":"https://api.github.com/repos/democracyworks/user-works","forks_url":"https://api.github.com/repos/democracyworks/user-works/forks","keys_url":"https://api.github.com/repos/democracyworks/user-works/keys{/key_id}","collaborators_url":"https://api.github.com/repos/democracyworks/user-works/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/democracyworks/user-works/teams","hooks_url":"https://api.github.com/repos/democracyworks/user-works/hooks","issue_events_url":"https://api.github.com/repos/democracyworks/user-works/issues/events{/number}","events_url":"https://api.github.com/repos/democracyworks/user-works/events","assignees_url":"https://api.github.com/repos/democracyworks/user-works/assignees{/user}","branches_url":"https://api.github.com/repos/democracyworks/user-works/branches{/branch}","tags_url":"https://api.github.com/repos/democracyworks/user-works/tags","blobs_url":"https://api.github.com/repos/democracyworks/user-works/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/democracyworks/user-works/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/democracyworks/user-works/git/refs{/sha}","trees_url":"https://api.github.com/repos/democracyworks/user-works/git/trees{/sha}","statuses_url":"https://api.github.com/repos/democracyworks/user-works/statuses/{sha}","languages_url":"https://api.github.com/repos/democracyworks/user-works/languages","stargazers_url":"https://api.github.com/repos/democracyworks/user-works/stargazers","contributors_url":"https://api.github.com/repos/democracyworks/user-works/contributors","subscribers_url":"https://api.github.com/repos/democracyworks/user-works/subscribers","subscription_url":"https://api.github.com/repos/democracyworks/user-works/subscription","commits_url":"https://api.github.com/repos/democracyworks/user-works/commits{/sha}","git_commits_url":"https://api.github.com/repos/democracyworks/user-works/git/commits{/sha}","comments_url":"https://api.github.com/repos/democracyworks/user-works/comments{/number}","issue_comment_url":"https://api.github.com/repos/democracyworks/user-works/issues/comments{/number}","contents_url":"https://api.github.com/repos/democracyworks/user-works/contents/{+path}","compare_url":"https://api.github.com/repos/democracyworks/user-works/compare/{base}...{head}","merges_url":"https://api.github.com/repos/democracyworks/user-works/merges","archive_url":"https://api.github.com/repos/democracyworks/user-works/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/democracyworks/user-works/downloads","issues_url":"https://api.github.com/repos/democracyworks/user-works/issues{/number}","pulls_url":"https://api.github.com/repos/democracyworks/user-works/pulls{/number}","milestones_url":"https://api.github.com/repos/democracyworks/user-works/milestones{/number}","notifications_url":"https://api.github.com/repos/democracyworks/user-works/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/democracyworks/user-works/labels{/name}","releases_url":"https://api.github.com/repos/democracyworks/user-works/releases{/id}","created_at":"2015-05-20T20:39:38Z","updated_at":"2015-05-20T20:40:29Z","pushed_at":"2015-06-01T18:29:24Z","git_url":"git://github.com/democracyworks/user-works.git","ssh_url":"git@github.com:democracyworks/user-works.git","clone_url":"https://github.com/democracyworks/user-works.git","svn_url":"https://github.com/democracyworks/user-works","homepage":null,"size":176,"stargazers_count":0,"watchers_count":0,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/democracyworks/user-works/pulls/2"},"html":{"href":"https://github.com/democracyworks/user-works/pull/2"},"issue":{"href":"https://api.github.com/repos/democracyworks/user-works/issues/2"},"comments":{"href":"https://api.github.com/repos/democracyworks/user-works/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/democracyworks/user-works/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/democracyworks/user-works/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/democracyworks/user-works/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/democracyworks/user-works/statuses/a49cf726f6a3c6e2ee8b60eb01667ea8490f5581"}}}}