{"action":"closed","number":274,"pull_request":{"url":"https://api.github.com/repos/square/metrics/pulls/274","id":65717579,"html_url":"https://github.com/square/metrics/pull/274","diff_url":"https://github.com/square/metrics/pull/274.diff","patch_url":"https://github.com/square/metrics/pull/274.patch","issue_url":"https://api.github.com/repos/square/metrics/issues/274","number":274,"state":"closed","locked":false,"title":"Rework CachedMetricMetadataAPI","user":{"login":"drcapulet","id":50848,"avatar_url":"https://avatars.githubusercontent.com/u/50848?v=3","gravatar_id":"","url":"https://api.github.com/users/drcapulet","html_url":"https://github.com/drcapulet","followers_url":"https://api.github.com/users/drcapulet/followers","following_url":"https://api.github.com/users/drcapulet/following{/other_user}","gists_url":"https://api.github.com/users/drcapulet/gists{/gist_id}","starred_url":"https://api.github.com/users/drcapulet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drcapulet/subscriptions","organizations_url":"https://api.github.com/users/drcapulet/orgs","repos_url":"https://api.github.com/users/drcapulet/repos","events_url":"https://api.github.com/users/drcapulet/events{/privacy}","received_events_url":"https://api.github.com/users/drcapulet/received_events","type":"User","site_admin":false},"body":"* Adds in concept of Stale (by default disabled) whereupon if the cache entry is older than that a background fetch request will be enqueued.\r\n* Any request for a metric key where a fetch is already in progress and the cache item has expired will wait for that fetch to come back (instead of issuing it's own synchronous call).\r\n* Added some more logging.\r\n\r\nR: @Nathan-Fenner || @DanielNi || @syamp || @cuzelac ","created_at":"2016-04-07T23:44:25Z","updated_at":"2016-04-28T20:41:09Z","closed_at":"2016-04-28T20:41:08Z","merged_at":"2016-04-28T20:41:08Z","merge_commit_sha":"f38235de97e36df37b758e9a9600ae31e93fe853","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/square/metrics/pulls/274/commits","review_comments_url":"https://api.github.com/repos/square/metrics/pulls/274/comments","review_comment_url":"https://api.github.com/repos/square/metrics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/square/metrics/issues/274/comments","statuses_url":"https://api.github.com/repos/square/metrics/statuses/5a3362c33364511234cd6e457a994fbf0615602d","head":{"label":"square:alexc-cached","ref":"alexc-cached","sha":"5a3362c33364511234cd6e457a994fbf0615602d","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":34279409,"name":"metrics","full_name":"square/metrics","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/metrics","description":"Metrics Query Engine","fork":false,"url":"https://api.github.com/repos/square/metrics","forks_url":"https://api.github.com/repos/square/metrics/forks","keys_url":"https://api.github.com/repos/square/metrics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/metrics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/metrics/teams","hooks_url":"https://api.github.com/repos/square/metrics/hooks","issue_events_url":"https://api.github.com/repos/square/metrics/issues/events{/number}","events_url":"https://api.github.com/repos/square/metrics/events","assignees_url":"https://api.github.com/repos/square/metrics/assignees{/user}","branches_url":"https://api.github.com/repos/square/metrics/branches{/branch}","tags_url":"https://api.github.com/repos/square/metrics/tags","blobs_url":"https://api.github.com/repos/square/metrics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/metrics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/metrics/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/metrics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/metrics/statuses/{sha}","languages_url":"https://api.github.com/repos/square/metrics/languages","stargazers_url":"https://api.github.com/repos/square/metrics/stargazers","contributors_url":"https://api.github.com/repos/square/metrics/contributors","subscribers_url":"https://api.github.com/repos/square/metrics/subscribers","subscription_url":"https://api.github.com/repos/square/metrics/subscription","commits_url":"https://api.github.com/repos/square/metrics/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/metrics/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/metrics/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/metrics/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/metrics/contents/{+path}","compare_url":"https://api.github.com/repos/square/metrics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/metrics/merges","archive_url":"https://api.github.com/repos/square/metrics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/metrics/downloads","issues_url":"https://api.github.com/repos/square/metrics/issues{/number}","pulls_url":"https://api.github.com/repos/square/metrics/pulls{/number}","milestones_url":"https://api.github.com/repos/square/metrics/milestones{/number}","notifications_url":"https://api.github.com/repos/square/metrics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/metrics/labels{/name}","releases_url":"https://api.github.com/repos/square/metrics/releases{/id}","deployments_url":"https://api.github.com/repos/square/metrics/deployments","created_at":"2015-04-20T18:43:35Z","updated_at":"2016-04-27T14:44:31Z","pushed_at":"2016-04-28T20:41:08Z","git_url":"git://github.com/square/metrics.git","ssh_url":"git@github.com:square/metrics.git","clone_url":"https://github.com/square/metrics.git","svn_url":"https://github.com/square/metrics","homepage":"","size":2187,"stargazers_count":99,"watchers_count":99,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":6,"forks":10,"open_issues":6,"watchers":99,"default_branch":"master"}},"base":{"label":"square:master","ref":"master","sha":"6361bc6d59605e8c8ba6452f7fec8a10e0a9335d","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":34279409,"name":"metrics","full_name":"square/metrics","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/metrics","description":"Metrics Query Engine","fork":false,"url":"https://api.github.com/repos/square/metrics","forks_url":"https://api.github.com/repos/square/metrics/forks","keys_url":"https://api.github.com/repos/square/metrics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/metrics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/metrics/teams","hooks_url":"https://api.github.com/repos/square/metrics/hooks","issue_events_url":"https://api.github.com/repos/square/metrics/issues/events{/number}","events_url":"https://api.github.com/repos/square/metrics/events","assignees_url":"https://api.github.com/repos/square/metrics/assignees{/user}","branches_url":"https://api.github.com/repos/square/metrics/branches{/branch}","tags_url":"https://api.github.com/repos/square/metrics/tags","blobs_url":"https://api.github.com/repos/square/metrics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/metrics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/metrics/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/metrics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/metrics/statuses/{sha}","languages_url":"https://api.github.com/repos/square/metrics/languages","stargazers_url":"https://api.github.com/repos/square/metrics/stargazers","contributors_url":"https://api.github.com/repos/square/metrics/contributors","subscribers_url":"https://api.github.com/repos/square/metrics/subscribers","subscription_url":"https://api.github.com/repos/square/metrics/subscription","commits_url":"https://api.github.com/repos/square/metrics/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/metrics/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/metrics/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/metrics/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/metrics/contents/{+path}","compare_url":"https://api.github.com/repos/square/metrics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/metrics/merges","archive_url":"https://api.github.com/repos/square/metrics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/metrics/downloads","issues_url":"https://api.github.com/repos/square/metrics/issues{/number}","pulls_url":"https://api.github.com/repos/square/metrics/pulls{/number}","milestones_url":"https://api.github.com/repos/square/metrics/milestones{/number}","notifications_url":"https://api.github.com/repos/square/metrics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/metrics/labels{/name}","releases_url":"https://api.github.com/repos/square/metrics/releases{/id}","deployments_url":"https://api.github.com/repos/square/metrics/deployments","created_at":"2015-04-20T18:43:35Z","updated_at":"2016-04-27T14:44:31Z","pushed_at":"2016-04-28T20:41:08Z","git_url":"git://github.com/square/metrics.git","ssh_url":"git@github.com:square/metrics.git","clone_url":"https://github.com/square/metrics.git","svn_url":"https://github.com/square/metrics","homepage":"","size":2187,"stargazers_count":99,"watchers_count":99,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":6,"forks":10,"open_issues":6,"watchers":99,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/square/metrics/pulls/274"},"html":{"href":"https://github.com/square/metrics/pull/274"},"issue":{"href":"https://api.github.com/repos/square/metrics/issues/274"},"comments":{"href":"https://api.github.com/repos/square/metrics/issues/274/comments"},"review_comments":{"href":"https://api.github.com/repos/square/metrics/pulls/274/comments"},"review_comment":{"href":"https://api.github.com/repos/square/metrics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/square/metrics/pulls/274/commits"},"statuses":{"href":"https://api.github.com/repos/square/metrics/statuses/5a3362c33364511234cd6e457a994fbf0615602d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"drcapulet","id":50848,"avatar_url":"https://avatars.githubusercontent.com/u/50848?v=3","gravatar_id":"","url":"https://api.github.com/users/drcapulet","html_url":"https://github.com/drcapulet","followers_url":"https://api.github.com/users/drcapulet/followers","following_url":"https://api.github.com/users/drcapulet/following{/other_user}","gists_url":"https://api.github.com/users/drcapulet/gists{/gist_id}","starred_url":"https://api.github.com/users/drcapulet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drcapulet/subscriptions","organizations_url":"https://api.github.com/users/drcapulet/orgs","repos_url":"https://api.github.com/users/drcapulet/repos","events_url":"https://api.github.com/users/drcapulet/events{/privacy}","received_events_url":"https://api.github.com/users/drcapulet/received_events","type":"User","site_admin":false},"comments":5,"review_comments":22,"commits":1,"additions":739,"deletions":91,"changed_files":6}}