{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/addons-server/pulls/comments/199570270","pull_request_review_id":133715515,"id":199570270,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTU3MDI3MA==","diff_hunk":"@@ -91,6 +91,7 @@ def handle(self, *args, **options):\n         ThemeUpdateCount.objects.filter(date=day).delete()\n \n         theme_update_counts = {}\n+        new_st_update_counts = {}","path":"src/olympia/stats/management/commands/theme_update_counts_from_file.py","position":null,"original_position":15,"commit_id":"9640efdb9321ce670e3e045e4384a3cf2c02f00b","original_commit_id":"fe7f93603b398db53d51f9b5b3e4ebab6065ec1e","user":{"login":"eviljeff","id":768592,"node_id":"MDQ6VXNlcjc2ODU5Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/768592?v=4","gravatar_id":"","url":"https://api.github.com/users/eviljeff","html_url":"https://github.com/eviljeff","followers_url":"https://api.github.com/users/eviljeff/followers","following_url":"https://api.github.com/users/eviljeff/following{/other_user}","gists_url":"https://api.github.com/users/eviljeff/gists{/gist_id}","starred_url":"https://api.github.com/users/eviljeff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eviljeff/subscriptions","organizations_url":"https://api.github.com/users/eviljeff/orgs","repos_url":"https://api.github.com/users/eviljeff/repos","events_url":"https://api.github.com/users/eviljeff/events{/privacy}","received_events_url":"https://api.github.com/users/eviljeff/received_events","type":"User","site_admin":false},"body":"\"st\" become \"stheme\" for a little better readability (without having to overflow every statement onto multiple lines).","created_at":"2018-07-02T17:36:14Z","updated_at":"2018-07-02T17:36:15Z","html_url":"https://github.com/mozilla/addons-server/pull/8684#discussion_r199570270","pull_request_url":"https://api.github.com/repos/mozilla/addons-server/pulls/8684","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/mozilla/addons-server/pulls/comments/199570270"},"html":{"href":"https://github.com/mozilla/addons-server/pull/8684#discussion_r199570270"},"pull_request":{"href":"https://api.github.com/repos/mozilla/addons-server/pulls/8684"}},"in_reply_to_id":199190862},"pull_request":{"url":"https://api.github.com/repos/mozilla/addons-server/pulls/8684","id":198068217,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4MDY4MjE3","html_url":"https://github.com/mozilla/addons-server/pull/8684","diff_url":"https://github.com/mozilla/addons-server/pull/8684.diff","patch_url":"https://github.com/mozilla/addons-server/pull/8684.patch","issue_url":"https://api.github.com/repos/mozilla/addons-server/issues/8684","number":8684,"state":"open","locked":false,"title":"Migrate LWT update counts to static themes.  popularity -> ADU","user":{"login":"eviljeff","id":768592,"node_id":"MDQ6VXNlcjc2ODU5Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/768592?v=4","gravatar_id":"","url":"https://api.github.com/users/eviljeff","html_url":"https://github.com/eviljeff","followers_url":"https://api.github.com/users/eviljeff/followers","following_url":"https://api.github.com/users/eviljeff/following{/other_user}","gists_url":"https://api.github.com/users/eviljeff/gists{/gist_id}","starred_url":"https://api.github.com/users/eviljeff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eviljeff/subscriptions","organizations_url":"https://api.github.com/users/eviljeff/orgs","repos_url":"https://api.github.com/users/eviljeff/repos","events_url":"https://api.github.com/users/eviljeff/events{/privacy}","received_events_url":"https://api.github.com/users/eviljeff/received_events","type":"User","site_admin":false},"body":"Fixes #8662 as much as we can.  Download counts I can't see a way to replicate.\r\n\r\nLooking at the way and the order in which the crons operate, the ADU and hotness calculations happen after both the theme and extension update counts are processed, so counts from the existing LWTs installed will be added and included in the migrated theme ADU.","created_at":"2018-06-28T15:27:47Z","updated_at":"2018-07-02T17:36:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"519c6c54e9018c64d97929b14677f682824bd98a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/addons-server/pulls/8684/commits","review_comments_url":"https://api.github.com/repos/mozilla/addons-server/pulls/8684/comments","review_comment_url":"https://api.github.com/repos/mozilla/addons-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/addons-server/issues/8684/comments","statuses_url":"https://api.github.com/repos/mozilla/addons-server/statuses/9640efdb9321ce670e3e045e4384a3cf2c02f00b","head":{"label":"eviljeff:8662-migrate-lwt-statistics","ref":"8662-migrate-lwt-statistics","sha":"9640efdb9321ce670e3e045e4384a3cf2c02f00b","user":{"login":"eviljeff","id":768592,"node_id":"MDQ6VXNlcjc2ODU5Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/768592?v=4","gravatar_id":"","url":"https://api.github.com/users/eviljeff","html_url":"https://github.com/eviljeff","followers_url":"https://api.github.com/users/eviljeff/followers","following_url":"https://api.github.com/users/eviljeff/following{/other_user}","gists_url":"https://api.github.com/users/eviljeff/gists{/gist_id}","starred_url":"https://api.github.com/users/eviljeff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eviljeff/subscriptions","organizations_url":"https://api.github.com/users/eviljeff/orgs","repos_url":"https://api.github.com/users/eviljeff/repos","events_url":"https://api.github.com/users/eviljeff/events{/privacy}","received_events_url":"https://api.github.com/users/eviljeff/received_events","type":"User","site_admin":false},"repo":{"id":28150170,"node_id":"MDEwOlJlcG9zaXRvcnkyODE1MDE3MA==","name":"olympia","full_name":"eviljeff/olympia","owner":{"login":"eviljeff","id":768592,"node_id":"MDQ6VXNlcjc2ODU5Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/768592?v=4","gravatar_id":"","url":"https://api.github.com/users/eviljeff","html_url":"https://github.com/eviljeff","followers_url":"https://api.github.com/users/eviljeff/followers","following_url":"https://api.github.com/users/eviljeff/following{/other_user}","gists_url":"https://api.github.com/users/eviljeff/gists{/gist_id}","starred_url":"https://api.github.com/users/eviljeff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eviljeff/subscriptions","organizations_url":"https://api.github.com/users/eviljeff/orgs","repos_url":"https://api.github.com/users/eviljeff/repos","events_url":"https://api.github.com/users/eviljeff/events{/privacy}","received_events_url":"https://api.github.com/users/eviljeff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eviljeff/olympia","description":"addons.mozilla.org, reloaded.","fork":true,"url":"https://api.github.com/repos/eviljeff/olympia","forks_url":"https://api.github.com/repos/eviljeff/olympia/forks","keys_url":"https://api.github.com/repos/eviljeff/olympia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eviljeff/olympia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eviljeff/olympia/teams","hooks_url":"https://api.github.com/repos/eviljeff/olympia/hooks","issue_events_url":"https://api.github.com/repos/eviljeff/olympia/issues/events{/number}","events_url":"https://api.github.com/repos/eviljeff/olympia/events","assignees_url":"https://api.github.com/repos/eviljeff/olympia/assignees{/user}","branches_url":"https://api.github.com/repos/eviljeff/olympia/branches{/branch}","tags_url":"https://api.github.com/repos/eviljeff/olympia/tags","blobs_url":"https://api.github.com/repos/eviljeff/olympia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eviljeff/olympia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eviljeff/olympia/git/refs{/sha}","trees_url":"https://api.github.com/repos/eviljeff/olympia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eviljeff/olympia/statuses/{sha}","languages_url":"https://api.github.com/repos/eviljeff/olympia/languages","stargazers_url":"https://api.github.com/repos/eviljeff/olympia/stargazers","contributors_url":"https://api.github.com/repos/eviljeff/olympia/contributors","subscribers_url":"https://api.github.com/repos/eviljeff/olympia/subscribers","subscription_url":"https://api.github.com/repos/eviljeff/olympia/subscription","commits_url":"https://api.github.com/repos/eviljeff/olympia/commits{/sha}","git_commits_url":"https://api.github.com/repos/eviljeff/olympia/git/commits{/sha}","comments_url":"https://api.github.com/repos/eviljeff/olympia/comments{/number}","issue_comment_url":"https://api.github.com/repos/eviljeff/olympia/issues/comments{/number}","contents_url":"https://api.github.com/repos/eviljeff/olympia/contents/{+path}","compare_url":"https://api.github.com/repos/eviljeff/olympia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eviljeff/olympia/merges","archive_url":"https://api.github.com/repos/eviljeff/olympia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eviljeff/olympia/downloads","issues_url":"https://api.github.com/repos/eviljeff/olympia/issues{/number}","pulls_url":"https://api.github.com/repos/eviljeff/olympia/pulls{/number}","milestones_url":"https://api.github.com/repos/eviljeff/olympia/milestones{/number}","notifications_url":"https://api.github.com/repos/eviljeff/olympia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eviljeff/olympia/labels{/name}","releases_url":"https://api.github.com/repos/eviljeff/olympia/releases{/id}","deployments_url":"https://api.github.com/repos/eviljeff/olympia/deployments","created_at":"2014-12-17T18:38:57Z","updated_at":"2017-06-15T11:55:30Z","pushed_at":"2018-07-02T17:21:07Z","git_url":"git://github.com/eviljeff/olympia.git","ssh_url":"git@github.com:eviljeff/olympia.git","clone_url":"https://github.com/eviljeff/olympia.git","svn_url":"https://github.com/eviljeff/olympia","homepage":"https://addons.mozilla.org/","size":892016,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"390a4b7cc31dc23c28ce2feac6ec24fb7681728b","user":{"login":"mozilla","id":131524,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTUyNA==","avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":16416867,"node_id":"MDEwOlJlcG9zaXRvcnkxNjQxNjg2Nw==","name":"addons-server","full_name":"mozilla/addons-server","owner":{"login":"mozilla","id":131524,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTUyNA==","avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/addons-server","description":"🕶 addons.mozilla.org Django app and API 🎉","fork":false,"url":"https://api.github.com/repos/mozilla/addons-server","forks_url":"https://api.github.com/repos/mozilla/addons-server/forks","keys_url":"https://api.github.com/repos/mozilla/addons-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/addons-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/addons-server/teams","hooks_url":"https://api.github.com/repos/mozilla/addons-server/hooks","issue_events_url":"https://api.github.com/repos/mozilla/addons-server/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/addons-server/events","assignees_url":"https://api.github.com/repos/mozilla/addons-server/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/addons-server/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/addons-server/tags","blobs_url":"https://api.github.com/repos/mozilla/addons-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/addons-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/addons-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/addons-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/addons-server/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/addons-server/languages","stargazers_url":"https://api.github.com/repos/mozilla/addons-server/stargazers","contributors_url":"https://api.github.com/repos/mozilla/addons-server/contributors","subscribers_url":"https://api.github.com/repos/mozilla/addons-server/subscribers","subscription_url":"https://api.github.com/repos/mozilla/addons-server/subscription","commits_url":"https://api.github.com/repos/mozilla/addons-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/addons-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/addons-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/addons-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/addons-server/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/addons-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/addons-server/merges","archive_url":"https://api.github.com/repos/mozilla/addons-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/addons-server/downloads","issues_url":"https://api.github.com/repos/mozilla/addons-server/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/addons-server/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/addons-server/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/addons-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/addons-server/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/addons-server/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/addons-server/deployments","created_at":"2014-01-31T18:44:15Z","updated_at":"2018-07-02T16:32:37Z","pushed_at":"2018-07-02T17:21:09Z","git_url":"git://github.com/mozilla/addons-server.git","ssh_url":"git@github.com:mozilla/addons-server.git","clone_url":"https://github.com/mozilla/addons-server.git","svn_url":"https://github.com/mozilla/addons-server","homepage":"https://addons.mozilla.org/","size":894521,"stargazers_count":318,"watchers_count":318,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":299,"mirror_url":null,"archived":false,"open_issues_count":370,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":299,"open_issues":370,"watchers":318,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/addons-server/pulls/8684"},"html":{"href":"https://github.com/mozilla/addons-server/pull/8684"},"issue":{"href":"https://api.github.com/repos/mozilla/addons-server/issues/8684"},"comments":{"href":"https://api.github.com/repos/mozilla/addons-server/issues/8684/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/addons-server/pulls/8684/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/addons-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/addons-server/pulls/8684/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/addons-server/statuses/9640efdb9321ce670e3e045e4384a3cf2c02f00b"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"eviljeff"}}