{"action":"created","comment":{"url":"https://api.github.com/repos/juju/charmstore/pulls/comments/34882517","id":34882517,"diff_hunk":"@@ -614,8 +614,10 @@ func (h *ReqHandler) metaTags(entity *mongodoc.Entity, id *router.ResolvedURL, p\n // GET id/meta/stats/\n // https://github.com/juju/charmstore/blob/v4/docs/API.md#get-idmetastats\n func (h *ReqHandler) metaStats(entity *mongodoc.Entity, id *router.ResolvedURL, path string, flags url.Values, req *http.Request) (interface{}, error) {\n+\n \t// Retrieve the aggregated downloads count for the specific revision.\n-\tcounts, countsAllRevisions, err := h.Store.ArchiveDownloadCounts(id.PreferredURL())\n+\t_, forceRefreshPresent := flags[\"force_refresh\"]","path":"internal/v4/api.go","position":null,"original_position":7,"commit_id":"b8e3d75ce4ee2f1ae0f364e63535b1cb7e6997c8","original_commit_id":"a785124e80a2321f57e4f2fc96727f28155b1e01","user":{"login":"fabricematrat","id":1395842,"avatar_url":"https://avatars.githubusercontent.com/u/1395842?v=3","gravatar_id":"","url":"https://api.github.com/users/fabricematrat","html_url":"https://github.com/fabricematrat","followers_url":"https://api.github.com/users/fabricematrat/followers","following_url":"https://api.github.com/users/fabricematrat/following{/other_user}","gists_url":"https://api.github.com/users/fabricematrat/gists{/gist_id}","starred_url":"https://api.github.com/users/fabricematrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabricematrat/subscriptions","organizations_url":"https://api.github.com/users/fabricematrat/orgs","repos_url":"https://api.github.com/users/fabricematrat/repos","events_url":"https://api.github.com/users/fabricematrat/events{/privacy}","received_events_url":"https://api.github.com/users/fabricematrat/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2015-07-17T11:49:23Z","updated_at":"2015-07-17T11:49:23Z","html_url":"https://github.com/juju/charmstore/pull/412#discussion_r34882517","pull_request_url":"https://api.github.com/repos/juju/charmstore/pulls/412","_links":{"self":{"href":"https://api.github.com/repos/juju/charmstore/pulls/comments/34882517"},"html":{"href":"https://github.com/juju/charmstore/pull/412#discussion_r34882517"},"pull_request":{"href":"https://api.github.com/repos/juju/charmstore/pulls/412"}}},"pull_request":{"url":"https://api.github.com/repos/juju/charmstore/pulls/412","id":40208419,"html_url":"https://github.com/juju/charmstore/pull/412","diff_url":"https://github.com/juju/charmstore/pull/412.diff","patch_url":"https://github.com/juju/charmstore/pull/412.patch","issue_url":"https://api.github.com/repos/juju/charmstore/issues/412","number":412,"state":"open","locked":false,"title":"Invalidate cache entry for meta stats on demand.","user":{"login":"fabricematrat","id":1395842,"avatar_url":"https://avatars.githubusercontent.com/u/1395842?v=3","gravatar_id":"","url":"https://api.github.com/users/fabricematrat","html_url":"https://github.com/fabricematrat","followers_url":"https://api.github.com/users/fabricematrat/followers","following_url":"https://api.github.com/users/fabricematrat/following{/other_user}","gists_url":"https://api.github.com/users/fabricematrat/gists{/gist_id}","starred_url":"https://api.github.com/users/fabricematrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabricematrat/subscriptions","organizations_url":"https://api.github.com/users/fabricematrat/orgs","repos_url":"https://api.github.com/users/fabricematrat/repos","events_url":"https://api.github.com/users/fabricematrat/events{/privacy}","received_events_url":"https://api.github.com/users/fabricematrat/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-17T08:04:38Z","updated_at":"2015-07-17T11:49:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0bd49362e5fc7f15126dc3056e10757910ad6b9c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/juju/charmstore/pulls/412/commits","review_comments_url":"https://api.github.com/repos/juju/charmstore/pulls/412/comments","review_comment_url":"https://api.github.com/repos/juju/charmstore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/juju/charmstore/issues/412/comments","statuses_url":"https://api.github.com/repos/juju/charmstore/statuses/b8e3d75ce4ee2f1ae0f364e63535b1cb7e6997c8","head":{"label":"fabricematrat:cache-stats","ref":"cache-stats","sha":"b8e3d75ce4ee2f1ae0f364e63535b1cb7e6997c8","user":{"login":"fabricematrat","id":1395842,"avatar_url":"https://avatars.githubusercontent.com/u/1395842?v=3","gravatar_id":"","url":"https://api.github.com/users/fabricematrat","html_url":"https://github.com/fabricematrat","followers_url":"https://api.github.com/users/fabricematrat/followers","following_url":"https://api.github.com/users/fabricematrat/following{/other_user}","gists_url":"https://api.github.com/users/fabricematrat/gists{/gist_id}","starred_url":"https://api.github.com/users/fabricematrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabricematrat/subscriptions","organizations_url":"https://api.github.com/users/fabricematrat/orgs","repos_url":"https://api.github.com/users/fabricematrat/repos","events_url":"https://api.github.com/users/fabricematrat/events{/privacy}","received_events_url":"https://api.github.com/users/fabricematrat/received_events","type":"User","site_admin":false},"repo":{"id":37056606,"name":"charmstore","full_name":"fabricematrat/charmstore","owner":{"login":"fabricematrat","id":1395842,"avatar_url":"https://avatars.githubusercontent.com/u/1395842?v=3","gravatar_id":"","url":"https://api.github.com/users/fabricematrat","html_url":"https://github.com/fabricematrat","followers_url":"https://api.github.com/users/fabricematrat/followers","following_url":"https://api.github.com/users/fabricematrat/following{/other_user}","gists_url":"https://api.github.com/users/fabricematrat/gists{/gist_id}","starred_url":"https://api.github.com/users/fabricematrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabricematrat/subscriptions","organizations_url":"https://api.github.com/users/fabricematrat/orgs","repos_url":"https://api.github.com/users/fabricematrat/repos","events_url":"https://api.github.com/users/fabricematrat/events{/privacy}","received_events_url":"https://api.github.com/users/fabricematrat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fabricematrat/charmstore","description":"The charm store server.","fork":true,"url":"https://api.github.com/repos/fabricematrat/charmstore","forks_url":"https://api.github.com/repos/fabricematrat/charmstore/forks","keys_url":"https://api.github.com/repos/fabricematrat/charmstore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fabricematrat/charmstore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fabricematrat/charmstore/teams","hooks_url":"https://api.github.com/repos/fabricematrat/charmstore/hooks","issue_events_url":"https://api.github.com/repos/fabricematrat/charmstore/issues/events{/number}","events_url":"https://api.github.com/repos/fabricematrat/charmstore/events","assignees_url":"https://api.github.com/repos/fabricematrat/charmstore/assignees{/user}","branches_url":"https://api.github.com/repos/fabricematrat/charmstore/branches{/branch}","tags_url":"https://api.github.com/repos/fabricematrat/charmstore/tags","blobs_url":"https://api.github.com/repos/fabricematrat/charmstore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fabricematrat/charmstore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fabricematrat/charmstore/git/refs{/sha}","trees_url":"https://api.github.com/repos/fabricematrat/charmstore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fabricematrat/charmstore/statuses/{sha}","languages_url":"https://api.github.com/repos/fabricematrat/charmstore/languages","stargazers_url":"https://api.github.com/repos/fabricematrat/charmstore/stargazers","contributors_url":"https://api.github.com/repos/fabricematrat/charmstore/contributors","subscribers_url":"https://api.github.com/repos/fabricematrat/charmstore/subscribers","subscription_url":"https://api.github.com/repos/fabricematrat/charmstore/subscription","commits_url":"https://api.github.com/repos/fabricematrat/charmstore/commits{/sha}","git_commits_url":"https://api.github.com/repos/fabricematrat/charmstore/git/commits{/sha}","comments_url":"https://api.github.com/repos/fabricematrat/charmstore/comments{/number}","issue_comment_url":"https://api.github.com/repos/fabricematrat/charmstore/issues/comments{/number}","contents_url":"https://api.github.com/repos/fabricematrat/charmstore/contents/{+path}","compare_url":"https://api.github.com/repos/fabricematrat/charmstore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fabricematrat/charmstore/merges","archive_url":"https://api.github.com/repos/fabricematrat/charmstore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fabricematrat/charmstore/downloads","issues_url":"https://api.github.com/repos/fabricematrat/charmstore/issues{/number}","pulls_url":"https://api.github.com/repos/fabricematrat/charmstore/pulls{/number}","milestones_url":"https://api.github.com/repos/fabricematrat/charmstore/milestones{/number}","notifications_url":"https://api.github.com/repos/fabricematrat/charmstore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fabricematrat/charmstore/labels{/name}","releases_url":"https://api.github.com/repos/fabricematrat/charmstore/releases{/id}","created_at":"2015-06-08T09:02:41Z","updated_at":"2015-06-08T09:02:42Z","pushed_at":"2015-07-17T11:48:49Z","git_url":"git://github.com/fabricematrat/charmstore.git","ssh_url":"git@github.com:fabricematrat/charmstore.git","clone_url":"https://github.com/fabricematrat/charmstore.git","svn_url":"https://github.com/fabricematrat/charmstore","homepage":null,"size":2684,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"v4"}},"base":{"label":"juju:v5-unstable","ref":"v5-unstable","sha":"8f9106f9fbe2c827319f14f758c54c52753e8a29","user":{"login":"juju","id":4604548,"avatar_url":"https://avatars.githubusercontent.com/u/4604548?v=3","gravatar_id":"","url":"https://api.github.com/users/juju","html_url":"https://github.com/juju","followers_url":"https://api.github.com/users/juju/followers","following_url":"https://api.github.com/users/juju/following{/other_user}","gists_url":"https://api.github.com/users/juju/gists{/gist_id}","starred_url":"https://api.github.com/users/juju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juju/subscriptions","organizations_url":"https://api.github.com/users/juju/orgs","repos_url":"https://api.github.com/users/juju/repos","events_url":"https://api.github.com/users/juju/events{/privacy}","received_events_url":"https://api.github.com/users/juju/received_events","type":"Organization","site_admin":false},"repo":{"id":20720417,"name":"charmstore","full_name":"juju/charmstore","owner":{"login":"juju","id":4604548,"avatar_url":"https://avatars.githubusercontent.com/u/4604548?v=3","gravatar_id":"","url":"https://api.github.com/users/juju","html_url":"https://github.com/juju","followers_url":"https://api.github.com/users/juju/followers","following_url":"https://api.github.com/users/juju/following{/other_user}","gists_url":"https://api.github.com/users/juju/gists{/gist_id}","starred_url":"https://api.github.com/users/juju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juju/subscriptions","organizations_url":"https://api.github.com/users/juju/orgs","repos_url":"https://api.github.com/users/juju/repos","events_url":"https://api.github.com/users/juju/events{/privacy}","received_events_url":"https://api.github.com/users/juju/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/juju/charmstore","description":"The charm store server.","fork":false,"url":"https://api.github.com/repos/juju/charmstore","forks_url":"https://api.github.com/repos/juju/charmstore/forks","keys_url":"https://api.github.com/repos/juju/charmstore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juju/charmstore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juju/charmstore/teams","hooks_url":"https://api.github.com/repos/juju/charmstore/hooks","issue_events_url":"https://api.github.com/repos/juju/charmstore/issues/events{/number}","events_url":"https://api.github.com/repos/juju/charmstore/events","assignees_url":"https://api.github.com/repos/juju/charmstore/assignees{/user}","branches_url":"https://api.github.com/repos/juju/charmstore/branches{/branch}","tags_url":"https://api.github.com/repos/juju/charmstore/tags","blobs_url":"https://api.github.com/repos/juju/charmstore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juju/charmstore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juju/charmstore/git/refs{/sha}","trees_url":"https://api.github.com/repos/juju/charmstore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juju/charmstore/statuses/{sha}","languages_url":"https://api.github.com/repos/juju/charmstore/languages","stargazers_url":"https://api.github.com/repos/juju/charmstore/stargazers","contributors_url":"https://api.github.com/repos/juju/charmstore/contributors","subscribers_url":"https://api.github.com/repos/juju/charmstore/subscribers","subscription_url":"https://api.github.com/repos/juju/charmstore/subscription","commits_url":"https://api.github.com/repos/juju/charmstore/commits{/sha}","git_commits_url":"https://api.github.com/repos/juju/charmstore/git/commits{/sha}","comments_url":"https://api.github.com/repos/juju/charmstore/comments{/number}","issue_comment_url":"https://api.github.com/repos/juju/charmstore/issues/comments{/number}","contents_url":"https://api.github.com/repos/juju/charmstore/contents/{+path}","compare_url":"https://api.github.com/repos/juju/charmstore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juju/charmstore/merges","archive_url":"https://api.github.com/repos/juju/charmstore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juju/charmstore/downloads","issues_url":"https://api.github.com/repos/juju/charmstore/issues{/number}","pulls_url":"https://api.github.com/repos/juju/charmstore/pulls{/number}","milestones_url":"https://api.github.com/repos/juju/charmstore/milestones{/number}","notifications_url":"https://api.github.com/repos/juju/charmstore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juju/charmstore/labels{/name}","releases_url":"https://api.github.com/repos/juju/charmstore/releases{/id}","created_at":"2014-06-11T09:53:37Z","updated_at":"2015-05-08T13:47:14Z","pushed_at":"2015-07-17T11:48:49Z","git_url":"git://github.com/juju/charmstore.git","ssh_url":"git@github.com:juju/charmstore.git","clone_url":"https://github.com/juju/charmstore.git","svn_url":"https://github.com/juju/charmstore","homepage":null,"size":5818,"stargazers_count":6,"watchers_count":6,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":14,"forks":13,"open_issues":14,"watchers":6,"default_branch":"v5-unstable"}},"_links":{"self":{"href":"https://api.github.com/repos/juju/charmstore/pulls/412"},"html":{"href":"https://github.com/juju/charmstore/pull/412"},"issue":{"href":"https://api.github.com/repos/juju/charmstore/issues/412"},"comments":{"href":"https://api.github.com/repos/juju/charmstore/issues/412/comments"},"review_comments":{"href":"https://api.github.com/repos/juju/charmstore/pulls/412/comments"},"review_comment":{"href":"https://api.github.com/repos/juju/charmstore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/juju/charmstore/pulls/412/commits"},"statuses":{"href":"https://api.github.com/repos/juju/charmstore/statuses/b8e3d75ce4ee2f1ae0f364e63535b1cb7e6997c8"}}}}