{"action":"created","issue":{"url":"https://api.github.com/repos/oppia/oppia/issues/2173","repository_url":"https://api.github.com/repos/oppia/oppia","labels_url":"https://api.github.com/repos/oppia/oppia/issues/2173/labels{/name}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/2173/comments","events_url":"https://api.github.com/repos/oppia/oppia/issues/2173/events","html_url":"https://github.com/oppia/oppia/pull/2173","id":162328613,"number":2173,"title":"Fix part of #1366: Cron job to keep history of dashboard statistics","user":{"login":"526avijitgupta","id":7583815,"avatar_url":"https://avatars.githubusercontent.com/u/7583815?v=3","gravatar_id":"","url":"https://api.github.com/users/526avijitgupta","html_url":"https://github.com/526avijitgupta","followers_url":"https://api.github.com/users/526avijitgupta/followers","following_url":"https://api.github.com/users/526avijitgupta/following{/other_user}","gists_url":"https://api.github.com/users/526avijitgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/526avijitgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/526avijitgupta/subscriptions","organizations_url":"https://api.github.com/users/526avijitgupta/orgs","repos_url":"https://api.github.com/users/526avijitgupta/repos","events_url":"https://api.github.com/users/526avijitgupta/events{/privacy}","received_events_url":"https://api.github.com/users/526avijitgupta/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/oppia/oppia/labels/PR:%20LGTM","name":"PR: LGTM","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"wxyxinyu","id":5061134,"avatar_url":"https://avatars.githubusercontent.com/u/5061134?v=3","gravatar_id":"","url":"https://api.github.com/users/wxyxinyu","html_url":"https://github.com/wxyxinyu","followers_url":"https://api.github.com/users/wxyxinyu/followers","following_url":"https://api.github.com/users/wxyxinyu/following{/other_user}","gists_url":"https://api.github.com/users/wxyxinyu/gists{/gist_id}","starred_url":"https://api.github.com/users/wxyxinyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wxyxinyu/subscriptions","organizations_url":"https://api.github.com/users/wxyxinyu/orgs","repos_url":"https://api.github.com/users/wxyxinyu/repos","events_url":"https://api.github.com/users/wxyxinyu/events{/privacy}","received_events_url":"https://api.github.com/users/wxyxinyu/received_events","type":"User","site_admin":false},"assignees":[{"login":"wxyxinyu","id":5061134,"avatar_url":"https://avatars.githubusercontent.com/u/5061134?v=3","gravatar_id":"","url":"https://api.github.com/users/wxyxinyu","html_url":"https://github.com/wxyxinyu","followers_url":"https://api.github.com/users/wxyxinyu/followers","following_url":"https://api.github.com/users/wxyxinyu/following{/other_user}","gists_url":"https://api.github.com/users/wxyxinyu/gists{/gist_id}","starred_url":"https://api.github.com/users/wxyxinyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wxyxinyu/subscriptions","organizations_url":"https://api.github.com/users/wxyxinyu/orgs","repos_url":"https://api.github.com/users/wxyxinyu/repos","events_url":"https://api.github.com/users/wxyxinyu/events{/privacy}","received_events_url":"https://api.github.com/users/wxyxinyu/received_events","type":"User","site_admin":false},{"login":"AllanYangZhou","id":8732147,"avatar_url":"https://avatars.githubusercontent.com/u/8732147?v=3","gravatar_id":"","url":"https://api.github.com/users/AllanYangZhou","html_url":"https://github.com/AllanYangZhou","followers_url":"https://api.github.com/users/AllanYangZhou/followers","following_url":"https://api.github.com/users/AllanYangZhou/following{/other_user}","gists_url":"https://api.github.com/users/AllanYangZhou/gists{/gist_id}","starred_url":"https://api.github.com/users/AllanYangZhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllanYangZhou/subscriptions","organizations_url":"https://api.github.com/users/AllanYangZhou/orgs","repos_url":"https://api.github.com/users/AllanYangZhou/repos","events_url":"https://api.github.com/users/AllanYangZhou/events{/privacy}","received_events_url":"https://api.github.com/users/AllanYangZhou/received_events","type":"User","site_admin":false},{"login":"seanlip","id":10575562,"avatar_url":"https://avatars.githubusercontent.com/u/10575562?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlip","html_url":"https://github.com/seanlip","followers_url":"https://api.github.com/users/seanlip/followers","following_url":"https://api.github.com/users/seanlip/following{/other_user}","gists_url":"https://api.github.com/users/seanlip/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlip/subscriptions","organizations_url":"https://api.github.com/users/seanlip/orgs","repos_url":"https://api.github.com/users/seanlip/repos","events_url":"https://api.github.com/users/seanlip/events{/privacy}","received_events_url":"https://api.github.com/users/seanlip/received_events","type":"User","site_admin":false}],"milestone":null,"comments":13,"created_at":"2016-06-26T13:49:50Z","updated_at":"2016-07-07T06:23:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/2173","html_url":"https://github.com/oppia/oppia/pull/2173","diff_url":"https://github.com/oppia/oppia/pull/2173.diff","patch_url":"https://github.com/oppia/oppia/pull/2173.patch"},"body":"Tasks to be completed as a part of this PR:\r\n\r\n- [x] Create model property for storing weekly stats in UserStatsModel\r\n- [x] Create a service method to update this model with the last week's stats.\r\n- [x] Write getter to get value of weekly stats list accompanied by tests for this service method.\r\n- [x] Create cron job that class this service method for all users, weekly.\r\n- [x] Testing this job manually, as well as writing tests for this."},"comment":{"url":"https://api.github.com/repos/oppia/oppia/issues/comments/230989262","html_url":"https://github.com/oppia/oppia/pull/2173#issuecomment-230989262","issue_url":"https://api.github.com/repos/oppia/oppia/issues/2173","id":230989262,"user":{"login":"wxyxinyu","id":5061134,"avatar_url":"https://avatars.githubusercontent.com/u/5061134?v=3","gravatar_id":"","url":"https://api.github.com/users/wxyxinyu","html_url":"https://github.com/wxyxinyu","followers_url":"https://api.github.com/users/wxyxinyu/followers","following_url":"https://api.github.com/users/wxyxinyu/following{/other_user}","gists_url":"https://api.github.com/users/wxyxinyu/gists{/gist_id}","starred_url":"https://api.github.com/users/wxyxinyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wxyxinyu/subscriptions","organizations_url":"https://api.github.com/users/wxyxinyu/orgs","repos_url":"https://api.github.com/users/wxyxinyu/repos","events_url":"https://api.github.com/users/wxyxinyu/events{/privacy}","received_events_url":"https://api.github.com/users/wxyxinyu/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T06:23:19Z","updated_at":"2016-07-07T06:23:19Z","body":"I just have one really small thing, and this will be good to merge."}}
{"actor":{"display_login":"wxyxinyu"}}