{"action":"closed","number":409,"pull_request":{"url":"https://api.github.com/repos/ato/clojars-web/pulls/409","id":50041304,"html_url":"https://github.com/ato/clojars-web/pull/409","diff_url":"https://github.com/ato/clojars-web/pull/409.diff","patch_url":"https://github.com/ato/clojars-web/pull/409.patch","issue_url":"https://api.github.com/repos/ato/clojars-web/issues/409","number":409,"state":"closed","locked":false,"title":"Thread object for stats lookup and use a protocol","user":{"login":"xeqi","id":51907,"avatar_url":"https://avatars.githubusercontent.com/u/51907?v=3","gravatar_id":"","url":"https://api.github.com/users/xeqi","html_url":"https://github.com/xeqi","followers_url":"https://api.github.com/users/xeqi/followers","following_url":"https://api.github.com/users/xeqi/following{/other_user}","gists_url":"https://api.github.com/users/xeqi/gists{/gist_id}","starred_url":"https://api.github.com/users/xeqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xeqi/subscriptions","organizations_url":"https://api.github.com/users/xeqi/orgs","repos_url":"https://api.github.com/users/xeqi/repos","events_url":"https://api.github.com/users/xeqi/events{/privacy}","received_events_url":"https://api.github.com/users/xeqi/received_events","type":"User","site_admin":false},"body":"This allows different implementations based on usage:\r\n\r\n1. FileStat for dev and production system. This one reads a\r\nfile (memoized!) just like previously. It takes a filesystem factory,\r\nso that unit tests can be created for it that use an in memory filesystem.\r\n\r\n2. MapStat for in memory version. This is delegated to for computation\r\nby FileStat. It is also used in the tests to provide 0 downloads without\r\nhaving to touch a filesystem.\r\n\r\n3. A reified stub used for unit testing search.","created_at":"2015-11-07T17:58:15Z","updated_at":"2015-11-13T20:28:58Z","closed_at":"2015-11-13T20:28:58Z","merged_at":"2015-11-13T20:28:58Z","merge_commit_sha":"16186928565128caff744ea220cd237a478730c8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ato/clojars-web/pulls/409/commits","review_comments_url":"https://api.github.com/repos/ato/clojars-web/pulls/409/comments","review_comment_url":"https://api.github.com/repos/ato/clojars-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ato/clojars-web/issues/409/comments","statuses_url":"https://api.github.com/repos/ato/clojars-web/statuses/0611184939ae44f160791c0c8c453785dc362ee1","head":{"label":"xeqi:stats-protocol","ref":"stats-protocol","sha":"0611184939ae44f160791c0c8c453785dc362ee1","user":{"login":"xeqi","id":51907,"avatar_url":"https://avatars.githubusercontent.com/u/51907?v=3","gravatar_id":"","url":"https://api.github.com/users/xeqi","html_url":"https://github.com/xeqi","followers_url":"https://api.github.com/users/xeqi/followers","following_url":"https://api.github.com/users/xeqi/following{/other_user}","gists_url":"https://api.github.com/users/xeqi/gists{/gist_id}","starred_url":"https://api.github.com/users/xeqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xeqi/subscriptions","organizations_url":"https://api.github.com/users/xeqi/orgs","repos_url":"https://api.github.com/users/xeqi/repos","events_url":"https://api.github.com/users/xeqi/events{/privacy}","received_events_url":"https://api.github.com/users/xeqi/received_events","type":"User","site_admin":false},"repo":{"id":2912821,"name":"clojars-web","full_name":"xeqi/clojars-web","owner":{"login":"xeqi","id":51907,"avatar_url":"https://avatars.githubusercontent.com/u/51907?v=3","gravatar_id":"","url":"https://api.github.com/users/xeqi","html_url":"https://github.com/xeqi","followers_url":"https://api.github.com/users/xeqi/followers","following_url":"https://api.github.com/users/xeqi/following{/other_user}","gists_url":"https://api.github.com/users/xeqi/gists{/gist_id}","starred_url":"https://api.github.com/users/xeqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xeqi/subscriptions","organizations_url":"https://api.github.com/users/xeqi/orgs","repos_url":"https://api.github.com/users/xeqi/repos","events_url":"https://api.github.com/users/xeqi/events{/privacy}","received_events_url":"https://api.github.com/users/xeqi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xeqi/clojars-web","description":"A community repository for open-source Clojure libraries","fork":true,"url":"https://api.github.com/repos/xeqi/clojars-web","forks_url":"https://api.github.com/repos/xeqi/clojars-web/forks","keys_url":"https://api.github.com/repos/xeqi/clojars-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xeqi/clojars-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xeqi/clojars-web/teams","hooks_url":"https://api.github.com/repos/xeqi/clojars-web/hooks","issue_events_url":"https://api.github.com/repos/xeqi/clojars-web/issues/events{/number}","events_url":"https://api.github.com/repos/xeqi/clojars-web/events","assignees_url":"https://api.github.com/repos/xeqi/clojars-web/assignees{/user}","branches_url":"https://api.github.com/repos/xeqi/clojars-web/branches{/branch}","tags_url":"https://api.github.com/repos/xeqi/clojars-web/tags","blobs_url":"https://api.github.com/repos/xeqi/clojars-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xeqi/clojars-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xeqi/clojars-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/xeqi/clojars-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xeqi/clojars-web/statuses/{sha}","languages_url":"https://api.github.com/repos/xeqi/clojars-web/languages","stargazers_url":"https://api.github.com/repos/xeqi/clojars-web/stargazers","contributors_url":"https://api.github.com/repos/xeqi/clojars-web/contributors","subscribers_url":"https://api.github.com/repos/xeqi/clojars-web/subscribers","subscription_url":"https://api.github.com/repos/xeqi/clojars-web/subscription","commits_url":"https://api.github.com/repos/xeqi/clojars-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/xeqi/clojars-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/xeqi/clojars-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/xeqi/clojars-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/xeqi/clojars-web/contents/{+path}","compare_url":"https://api.github.com/repos/xeqi/clojars-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xeqi/clojars-web/merges","archive_url":"https://api.github.com/repos/xeqi/clojars-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xeqi/clojars-web/downloads","issues_url":"https://api.github.com/repos/xeqi/clojars-web/issues{/number}","pulls_url":"https://api.github.com/repos/xeqi/clojars-web/pulls{/number}","milestones_url":"https://api.github.com/repos/xeqi/clojars-web/milestones{/number}","notifications_url":"https://api.github.com/repos/xeqi/clojars-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xeqi/clojars-web/labels{/name}","releases_url":"https://api.github.com/repos/xeqi/clojars-web/releases{/id}","created_at":"2011-12-04T22:41:21Z","updated_at":"2015-10-28T11:01:52Z","pushed_at":"2015-11-08T17:57:31Z","git_url":"git://github.com/xeqi/clojars-web.git","ssh_url":"git@github.com:xeqi/clojars-web.git","clone_url":"https://github.com/xeqi/clojars-web.git","svn_url":"https://github.com/xeqi/clojars-web","homepage":"http://clojars.org/","size":1744,"stargazers_count":2,"watchers_count":2,"language":"Clojure","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":2,"default_branch":"master"}},"base":{"label":"ato:master","ref":"master","sha":"0a49601419a98b0c53d0fa37a7a0baeeb09f9355","user":{"login":"ato","id":10588,"avatar_url":"https://avatars.githubusercontent.com/u/10588?v=3","gravatar_id":"","url":"https://api.github.com/users/ato","html_url":"https://github.com/ato","followers_url":"https://api.github.com/users/ato/followers","following_url":"https://api.github.com/users/ato/following{/other_user}","gists_url":"https://api.github.com/users/ato/gists{/gist_id}","starred_url":"https://api.github.com/users/ato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ato/subscriptions","organizations_url":"https://api.github.com/users/ato/orgs","repos_url":"https://api.github.com/users/ato/repos","events_url":"https://api.github.com/users/ato/events{/privacy}","received_events_url":"https://api.github.com/users/ato/received_events","type":"User","site_admin":false},"repo":{"id":373267,"name":"clojars-web","full_name":"ato/clojars-web","owner":{"login":"ato","id":10588,"avatar_url":"https://avatars.githubusercontent.com/u/10588?v=3","gravatar_id":"","url":"https://api.github.com/users/ato","html_url":"https://github.com/ato","followers_url":"https://api.github.com/users/ato/followers","following_url":"https://api.github.com/users/ato/following{/other_user}","gists_url":"https://api.github.com/users/ato/gists{/gist_id}","starred_url":"https://api.github.com/users/ato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ato/subscriptions","organizations_url":"https://api.github.com/users/ato/orgs","repos_url":"https://api.github.com/users/ato/repos","events_url":"https://api.github.com/users/ato/events{/privacy}","received_events_url":"https://api.github.com/users/ato/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ato/clojars-web","description":"A community repository for open-source Clojure libraries","fork":false,"url":"https://api.github.com/repos/ato/clojars-web","forks_url":"https://api.github.com/repos/ato/clojars-web/forks","keys_url":"https://api.github.com/repos/ato/clojars-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ato/clojars-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ato/clojars-web/teams","hooks_url":"https://api.github.com/repos/ato/clojars-web/hooks","issue_events_url":"https://api.github.com/repos/ato/clojars-web/issues/events{/number}","events_url":"https://api.github.com/repos/ato/clojars-web/events","assignees_url":"https://api.github.com/repos/ato/clojars-web/assignees{/user}","branches_url":"https://api.github.com/repos/ato/clojars-web/branches{/branch}","tags_url":"https://api.github.com/repos/ato/clojars-web/tags","blobs_url":"https://api.github.com/repos/ato/clojars-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ato/clojars-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ato/clojars-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/ato/clojars-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ato/clojars-web/statuses/{sha}","languages_url":"https://api.github.com/repos/ato/clojars-web/languages","stargazers_url":"https://api.github.com/repos/ato/clojars-web/stargazers","contributors_url":"https://api.github.com/repos/ato/clojars-web/contributors","subscribers_url":"https://api.github.com/repos/ato/clojars-web/subscribers","subscription_url":"https://api.github.com/repos/ato/clojars-web/subscription","commits_url":"https://api.github.com/repos/ato/clojars-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/ato/clojars-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/ato/clojars-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/ato/clojars-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/ato/clojars-web/contents/{+path}","compare_url":"https://api.github.com/repos/ato/clojars-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ato/clojars-web/merges","archive_url":"https://api.github.com/repos/ato/clojars-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ato/clojars-web/downloads","issues_url":"https://api.github.com/repos/ato/clojars-web/issues{/number}","pulls_url":"https://api.github.com/repos/ato/clojars-web/pulls{/number}","milestones_url":"https://api.github.com/repos/ato/clojars-web/milestones{/number}","notifications_url":"https://api.github.com/repos/ato/clojars-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ato/clojars-web/labels{/name}","releases_url":"https://api.github.com/repos/ato/clojars-web/releases{/id}","created_at":"2009-11-15T00:19:16Z","updated_at":"2015-11-13T17:45:32Z","pushed_at":"2015-11-13T20:28:57Z","git_url":"git://github.com/ato/clojars-web.git","ssh_url":"git@github.com:ato/clojars-web.git","clone_url":"https://github.com/ato/clojars-web.git","svn_url":"https://github.com/ato/clojars-web","homepage":"http://clojars.org/","size":3065,"stargazers_count":222,"watchers_count":222,"language":"Clojure","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":72,"mirror_url":null,"open_issues_count":55,"forks":72,"open_issues":55,"watchers":222,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ato/clojars-web/pulls/409"},"html":{"href":"https://github.com/ato/clojars-web/pull/409"},"issue":{"href":"https://api.github.com/repos/ato/clojars-web/issues/409"},"comments":{"href":"https://api.github.com/repos/ato/clojars-web/issues/409/comments"},"review_comments":{"href":"https://api.github.com/repos/ato/clojars-web/pulls/409/comments"},"review_comment":{"href":"https://api.github.com/repos/ato/clojars-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ato/clojars-web/pulls/409/commits"},"statuses":{"href":"https://api.github.com/repos/ato/clojars-web/statuses/0611184939ae44f160791c0c8c453785dc362ee1"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"tobias","id":2631,"avatar_url":"https://avatars.githubusercontent.com/u/2631?v=3","gravatar_id":"","url":"https://api.github.com/users/tobias","html_url":"https://github.com/tobias","followers_url":"https://api.github.com/users/tobias/followers","following_url":"https://api.github.com/users/tobias/following{/other_user}","gists_url":"https://api.github.com/users/tobias/gists{/gist_id}","starred_url":"https://api.github.com/users/tobias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobias/subscriptions","organizations_url":"https://api.github.com/users/tobias/orgs","repos_url":"https://api.github.com/users/tobias/repos","events_url":"https://api.github.com/users/tobias/events{/privacy}","received_events_url":"https://api.github.com/users/tobias/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":254,"deletions":136,"changed_files":16}}