{"action":"created","comment":{"url":"https://api.github.com/repos/lokalebasen/postalex/pulls/comments/24903716","id":24903716,"diff_hunk":"@@ -1,11 +1,13 @@\n defmodule Postalex.Service.PostalCode do\n   import CouchHelper\n \n-  def all(ctry_cat), do: all(ctry_cat, default_clients)\n-  def all(ctry_cat, clients ) do\n-    %{ country: country, category: category } = ctry_cat\n-    sums = clients.location_aggregation.postal_code_sums_by_kind(country, category)\n-    postal_codes(country, clients) |> add_sums(sums, HashDict.new)\n+  def all(ctry_cat, %{stale: stale, couch_client: cc, location_aggregation: la}) do\n+    %{country: country, category: category} = ctry_cat","path":"lib/service/postal_code.ex","position":10,"original_position":10,"commit_id":"d2a12d0a3eeaf9db6d4fb9faf6e21786e8653dc6","original_commit_id":"d2a12d0a3eeaf9db6d4fb9faf6e21786e8653dc6","user":{"login":"omegahm","id":178448,"avatar_url":"https://avatars.githubusercontent.com/u/178448?v=3","gravatar_id":"","url":"https://api.github.com/users/omegahm","html_url":"https://github.com/omegahm","followers_url":"https://api.github.com/users/omegahm/followers","following_url":"https://api.github.com/users/omegahm/following{/other_user}","gists_url":"https://api.github.com/users/omegahm/gists{/gist_id}","starred_url":"https://api.github.com/users/omegahm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omegahm/subscriptions","organizations_url":"https://api.github.com/users/omegahm/orgs","repos_url":"https://api.github.com/users/omegahm/repos","events_url":"https://api.github.com/users/omegahm/events{/privacy}","received_events_url":"https://api.github.com/users/omegahm/received_events","type":"User","site_admin":false},"body":"Du kan vel også blot bruge `ctry_cat.country`, når du bruger `country` nedenfor?","created_at":"2015-02-18T14:26:22Z","updated_at":"2015-02-18T14:26:22Z","html_url":"https://github.com/lokalebasen/postalex/pull/5#discussion_r24903716","pull_request_url":"https://api.github.com/repos/lokalebasen/postalex/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/lokalebasen/postalex/pulls/comments/24903716"},"html":{"href":"https://github.com/lokalebasen/postalex/pull/5#discussion_r24903716"},"pull_request":{"href":"https://api.github.com/repos/lokalebasen/postalex/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/lokalebasen/postalex/pulls/5","id":29528378,"html_url":"https://github.com/lokalebasen/postalex/pull/5","diff_url":"https://github.com/lokalebasen/postalex/pull/5.diff","patch_url":"https://github.com/lokalebasen/postalex/pull/5.patch","issue_url":"https://api.github.com/repos/lokalebasen/postalex/issues/5","number":5,"state":"open","locked":false,"title":"Return stale stats data and update afterwards","user":{"login":"ringling","id":651302,"avatar_url":"https://avatars.githubusercontent.com/u/651302?v=3","gravatar_id":"","url":"https://api.github.com/users/ringling","html_url":"https://github.com/ringling","followers_url":"https://api.github.com/users/ringling/followers","following_url":"https://api.github.com/users/ringling/following{/other_user}","gists_url":"https://api.github.com/users/ringling/gists{/gist_id}","starred_url":"https://api.github.com/users/ringling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ringling/subscriptions","organizations_url":"https://api.github.com/users/ringling/orgs","repos_url":"https://api.github.com/users/ringling/repos","events_url":"https://api.github.com/users/ringling/events{/privacy}","received_events_url":"https://api.github.com/users/ringling/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-18T14:19:57Z","updated_at":"2015-02-18T14:26:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d002fd6b96e88645f630ce5ab076175a27b33a11","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lokalebasen/postalex/pulls/5/commits","review_comments_url":"https://api.github.com/repos/lokalebasen/postalex/pulls/5/comments","review_comment_url":"https://api.github.com/repos/lokalebasen/postalex/pulls/comments/{number}","comments_url":"https://api.github.com/repos/lokalebasen/postalex/issues/5/comments","statuses_url":"https://api.github.com/repos/lokalebasen/postalex/statuses/d2a12d0a3eeaf9db6d4fb9faf6e21786e8653dc6","head":{"label":"ringling:stale_stats_data","ref":"stale_stats_data","sha":"d2a12d0a3eeaf9db6d4fb9faf6e21786e8653dc6","user":{"login":"ringling","id":651302,"avatar_url":"https://avatars.githubusercontent.com/u/651302?v=3","gravatar_id":"","url":"https://api.github.com/users/ringling","html_url":"https://github.com/ringling","followers_url":"https://api.github.com/users/ringling/followers","following_url":"https://api.github.com/users/ringling/following{/other_user}","gists_url":"https://api.github.com/users/ringling/gists{/gist_id}","starred_url":"https://api.github.com/users/ringling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ringling/subscriptions","organizations_url":"https://api.github.com/users/ringling/orgs","repos_url":"https://api.github.com/users/ringling/repos","events_url":"https://api.github.com/users/ringling/events{/privacy}","received_events_url":"https://api.github.com/users/ringling/received_events","type":"User","site_admin":false},"repo":{"id":28787485,"name":"postalex","full_name":"ringling/postalex","owner":{"login":"ringling","id":651302,"avatar_url":"https://avatars.githubusercontent.com/u/651302?v=3","gravatar_id":"","url":"https://api.github.com/users/ringling","html_url":"https://github.com/ringling","followers_url":"https://api.github.com/users/ringling/followers","following_url":"https://api.github.com/users/ringling/following{/other_user}","gists_url":"https://api.github.com/users/ringling/gists{/gist_id}","starred_url":"https://api.github.com/users/ringling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ringling/subscriptions","organizations_url":"https://api.github.com/users/ringling/orgs","repos_url":"https://api.github.com/users/ringling/repos","events_url":"https://api.github.com/users/ringling/events{/privacy}","received_events_url":"https://api.github.com/users/ringling/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ringling/postalex","description":"","fork":true,"url":"https://api.github.com/repos/ringling/postalex","forks_url":"https://api.github.com/repos/ringling/postalex/forks","keys_url":"https://api.github.com/repos/ringling/postalex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ringling/postalex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ringling/postalex/teams","hooks_url":"https://api.github.com/repos/ringling/postalex/hooks","issue_events_url":"https://api.github.com/repos/ringling/postalex/issues/events{/number}","events_url":"https://api.github.com/repos/ringling/postalex/events","assignees_url":"https://api.github.com/repos/ringling/postalex/assignees{/user}","branches_url":"https://api.github.com/repos/ringling/postalex/branches{/branch}","tags_url":"https://api.github.com/repos/ringling/postalex/tags","blobs_url":"https://api.github.com/repos/ringling/postalex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ringling/postalex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ringling/postalex/git/refs{/sha}","trees_url":"https://api.github.com/repos/ringling/postalex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ringling/postalex/statuses/{sha}","languages_url":"https://api.github.com/repos/ringling/postalex/languages","stargazers_url":"https://api.github.com/repos/ringling/postalex/stargazers","contributors_url":"https://api.github.com/repos/ringling/postalex/contributors","subscribers_url":"https://api.github.com/repos/ringling/postalex/subscribers","subscription_url":"https://api.github.com/repos/ringling/postalex/subscription","commits_url":"https://api.github.com/repos/ringling/postalex/commits{/sha}","git_commits_url":"https://api.github.com/repos/ringling/postalex/git/commits{/sha}","comments_url":"https://api.github.com/repos/ringling/postalex/comments{/number}","issue_comment_url":"https://api.github.com/repos/ringling/postalex/issues/comments/{number}","contents_url":"https://api.github.com/repos/ringling/postalex/contents/{+path}","compare_url":"https://api.github.com/repos/ringling/postalex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ringling/postalex/merges","archive_url":"https://api.github.com/repos/ringling/postalex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ringling/postalex/downloads","issues_url":"https://api.github.com/repos/ringling/postalex/issues{/number}","pulls_url":"https://api.github.com/repos/ringling/postalex/pulls{/number}","milestones_url":"https://api.github.com/repos/ringling/postalex/milestones{/number}","notifications_url":"https://api.github.com/repos/ringling/postalex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ringling/postalex/labels{/name}","releases_url":"https://api.github.com/repos/ringling/postalex/releases{/id}","created_at":"2015-01-04T22:04:19Z","updated_at":"2015-02-09T14:21:14Z","pushed_at":"2015-02-18T14:18:44Z","git_url":"git://github.com/ringling/postalex.git","ssh_url":"git@github.com:ringling/postalex.git","clone_url":"https://github.com/ringling/postalex.git","svn_url":"https://github.com/ringling/postalex","homepage":null,"size":844,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lokalebasen:master","ref":"master","sha":"0aefc523370c02edaffe80735a8a7fd715db2303","user":{"login":"lokalebasen","id":33633,"avatar_url":"https://avatars.githubusercontent.com/u/33633?v=3","gravatar_id":"","url":"https://api.github.com/users/lokalebasen","html_url":"https://github.com/lokalebasen","followers_url":"https://api.github.com/users/lokalebasen/followers","following_url":"https://api.github.com/users/lokalebasen/following{/other_user}","gists_url":"https://api.github.com/users/lokalebasen/gists{/gist_id}","starred_url":"https://api.github.com/users/lokalebasen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lokalebasen/subscriptions","organizations_url":"https://api.github.com/users/lokalebasen/orgs","repos_url":"https://api.github.com/users/lokalebasen/repos","events_url":"https://api.github.com/users/lokalebasen/events{/privacy}","received_events_url":"https://api.github.com/users/lokalebasen/received_events","type":"Organization","site_admin":false},"repo":{"id":28787446,"name":"postalex","full_name":"lokalebasen/postalex","owner":{"login":"lokalebasen","id":33633,"avatar_url":"https://avatars.githubusercontent.com/u/33633?v=3","gravatar_id":"","url":"https://api.github.com/users/lokalebasen","html_url":"https://github.com/lokalebasen","followers_url":"https://api.github.com/users/lokalebasen/followers","following_url":"https://api.github.com/users/lokalebasen/following{/other_user}","gists_url":"https://api.github.com/users/lokalebasen/gists{/gist_id}","starred_url":"https://api.github.com/users/lokalebasen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lokalebasen/subscriptions","organizations_url":"https://api.github.com/users/lokalebasen/orgs","repos_url":"https://api.github.com/users/lokalebasen/repos","events_url":"https://api.github.com/users/lokalebasen/events{/privacy}","received_events_url":"https://api.github.com/users/lokalebasen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lokalebasen/postalex","description":"","fork":false,"url":"https://api.github.com/repos/lokalebasen/postalex","forks_url":"https://api.github.com/repos/lokalebasen/postalex/forks","keys_url":"https://api.github.com/repos/lokalebasen/postalex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lokalebasen/postalex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lokalebasen/postalex/teams","hooks_url":"https://api.github.com/repos/lokalebasen/postalex/hooks","issue_events_url":"https://api.github.com/repos/lokalebasen/postalex/issues/events{/number}","events_url":"https://api.github.com/repos/lokalebasen/postalex/events","assignees_url":"https://api.github.com/repos/lokalebasen/postalex/assignees{/user}","branches_url":"https://api.github.com/repos/lokalebasen/postalex/branches{/branch}","tags_url":"https://api.github.com/repos/lokalebasen/postalex/tags","blobs_url":"https://api.github.com/repos/lokalebasen/postalex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lokalebasen/postalex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lokalebasen/postalex/git/refs{/sha}","trees_url":"https://api.github.com/repos/lokalebasen/postalex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lokalebasen/postalex/statuses/{sha}","languages_url":"https://api.github.com/repos/lokalebasen/postalex/languages","stargazers_url":"https://api.github.com/repos/lokalebasen/postalex/stargazers","contributors_url":"https://api.github.com/repos/lokalebasen/postalex/contributors","subscribers_url":"https://api.github.com/repos/lokalebasen/postalex/subscribers","subscription_url":"https://api.github.com/repos/lokalebasen/postalex/subscription","commits_url":"https://api.github.com/repos/lokalebasen/postalex/commits{/sha}","git_commits_url":"https://api.github.com/repos/lokalebasen/postalex/git/commits{/sha}","comments_url":"https://api.github.com/repos/lokalebasen/postalex/comments{/number}","issue_comment_url":"https://api.github.com/repos/lokalebasen/postalex/issues/comments/{number}","contents_url":"https://api.github.com/repos/lokalebasen/postalex/contents/{+path}","compare_url":"https://api.github.com/repos/lokalebasen/postalex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lokalebasen/postalex/merges","archive_url":"https://api.github.com/repos/lokalebasen/postalex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lokalebasen/postalex/downloads","issues_url":"https://api.github.com/repos/lokalebasen/postalex/issues{/number}","pulls_url":"https://api.github.com/repos/lokalebasen/postalex/pulls{/number}","milestones_url":"https://api.github.com/repos/lokalebasen/postalex/milestones{/number}","notifications_url":"https://api.github.com/repos/lokalebasen/postalex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lokalebasen/postalex/labels{/name}","releases_url":"https://api.github.com/repos/lokalebasen/postalex/releases{/id}","created_at":"2015-01-04T22:02:42Z","updated_at":"2015-02-09T14:20:16Z","pushed_at":"2015-02-09T14:21:31Z","git_url":"git://github.com/lokalebasen/postalex.git","ssh_url":"git@github.com:lokalebasen/postalex.git","clone_url":"https://github.com/lokalebasen/postalex.git","svn_url":"https://github.com/lokalebasen/postalex","homepage":null,"size":343,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lokalebasen/postalex/pulls/5"},"html":{"href":"https://github.com/lokalebasen/postalex/pull/5"},"issue":{"href":"https://api.github.com/repos/lokalebasen/postalex/issues/5"},"comments":{"href":"https://api.github.com/repos/lokalebasen/postalex/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/lokalebasen/postalex/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/lokalebasen/postalex/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/lokalebasen/postalex/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/lokalebasen/postalex/statuses/d2a12d0a3eeaf9db6d4fb9faf6e21786e8653dc6"}}}}