{"action":"created","comment":{"url":"https://api.github.com/repos/codecombat/codecombat/pulls/comments/208094442","pull_request_review_id":143835204,"id":208094442,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwODA5NDQ0Mg==","diff_hunk":"@@ -51,6 +56,17 @@ module.exports = class TeacherCoursesView extends RootView\n     @paidTeacher = @paidTeacher or @prepaids.find((p) => p.get('type') in ['course', 'starter_license'] and p.get('maxRedeemers') > 0)?\n     @render?()\n \n+  fetchChangeLog: co.wrap ->\n+    yield api.courses.fetchChangeLog()\n+    .then((changeLogInfo) => \n+      @courses.models.forEach (course) =>\n+        changeLog = _.filter(changeLogInfo, { 'c' : course.get('slug') })\n+        @courseChangeLog[course.id] = _.mapValues(_.groupBy(changeLog, 'd'))\n+    )","path":"app/views/courses/TeacherCoursesView.coffee","position":36,"original_position":36,"commit_id":"0ca16f437d011ca40c862e01348df13bbb730859","original_commit_id":"0ca16f437d011ca40c862e01348df13bbb730859","user":{"login":"differentmatt","id":2965172,"node_id":"MDQ6VXNlcjI5NjUxNzI=","avatar_url":"https://avatars2.githubusercontent.com/u/2965172?v=4","gravatar_id":"","url":"https://api.github.com/users/differentmatt","html_url":"https://github.com/differentmatt","followers_url":"https://api.github.com/users/differentmatt/followers","following_url":"https://api.github.com/users/differentmatt/following{/other_user}","gists_url":"https://api.github.com/users/differentmatt/gists{/gist_id}","starred_url":"https://api.github.com/users/differentmatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/differentmatt/subscriptions","organizations_url":"https://api.github.com/users/differentmatt/orgs","repos_url":"https://api.github.com/users/differentmatt/repos","events_url":"https://api.github.com/users/differentmatt/events{/privacy}","received_events_url":"https://api.github.com/users/differentmatt/received_events","type":"User","site_admin":false},"body":"Locally this probably returns very quickly, before the page is rendered.  However, this fetch could potentially take long enough in production to return after the page has rendered with an empty `@courseChangeLog`, after which returned logs would not be visible.  I'd suggest added a `@render?()` at the end of this `.then` handler to be sure.","created_at":"2018-08-07T04:15:18Z","updated_at":"2018-08-07T04:15:18Z","html_url":"https://github.com/codecombat/codecombat/pull/4813#discussion_r208094442","pull_request_url":"https://api.github.com/repos/codecombat/codecombat/pulls/4813","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/codecombat/codecombat/pulls/comments/208094442"},"html":{"href":"https://github.com/codecombat/codecombat/pull/4813#discussion_r208094442"},"pull_request":{"href":"https://api.github.com/repos/codecombat/codecombat/pulls/4813"}},"in_reply_to_id":208055850},"pull_request":{"url":"https://api.github.com/repos/codecombat/codecombat/pulls/4813","id":206531919,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2NTMxOTE5","html_url":"https://github.com/codecombat/codecombat/pull/4813","diff_url":"https://github.com/codecombat/codecombat/pull/4813.diff","patch_url":"https://github.com/codecombat/codecombat/pull/4813.patch","issue_url":"https://api.github.com/repos/codecombat/codecombat/issues/4813","number":4813,"state":"open","locked":false,"title":"Changes to show course change log in course guides","user":{"login":"shubhi1092","id":22322514,"node_id":"MDQ6VXNlcjIyMzIyNTE0","avatar_url":"https://avatars0.githubusercontent.com/u/22322514?v=4","gravatar_id":"","url":"https://api.github.com/users/shubhi1092","html_url":"https://github.com/shubhi1092","followers_url":"https://api.github.com/users/shubhi1092/followers","following_url":"https://api.github.com/users/shubhi1092/following{/other_user}","gists_url":"https://api.github.com/users/shubhi1092/gists{/gist_id}","starred_url":"https://api.github.com/users/shubhi1092/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shubhi1092/subscriptions","organizations_url":"https://api.github.com/users/shubhi1092/orgs","repos_url":"https://api.github.com/users/shubhi1092/repos","events_url":"https://api.github.com/users/shubhi1092/events{/privacy}","received_events_url":"https://api.github.com/users/shubhi1092/received_events","type":"User","site_admin":false},"body":"Related changes in server- https://github.com/codecombat/codecombat-server/pull/6","created_at":"2018-08-06T22:20:46Z","updated_at":"2018-08-07T04:15:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3f412634b02b7aad940766ca2dc31e8da489271d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/codecombat/codecombat/pulls/4813/commits","review_comments_url":"https://api.github.com/repos/codecombat/codecombat/pulls/4813/comments","review_comment_url":"https://api.github.com/repos/codecombat/codecombat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codecombat/codecombat/issues/4813/comments","statuses_url":"https://api.github.com/repos/codecombat/codecombat/statuses/0ca16f437d011ca40c862e01348df13bbb730859","head":{"label":"codecombat:course-change-log","ref":"course-change-log","sha":"0ca16f437d011ca40c862e01348df13bbb730859","user":{"login":"codecombat","id":5795842,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3OTU4NDI=","avatar_url":"https://avatars2.githubusercontent.com/u/5795842?v=4","gravatar_id":"","url":"https://api.github.com/users/codecombat","html_url":"https://github.com/codecombat","followers_url":"https://api.github.com/users/codecombat/followers","following_url":"https://api.github.com/users/codecombat/following{/other_user}","gists_url":"https://api.github.com/users/codecombat/gists{/gist_id}","starred_url":"https://api.github.com/users/codecombat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecombat/subscriptions","organizations_url":"https://api.github.com/users/codecombat/orgs","repos_url":"https://api.github.com/users/codecombat/repos","events_url":"https://api.github.com/users/codecombat/events{/privacy}","received_events_url":"https://api.github.com/users/codecombat/received_events","type":"Organization","site_admin":false},"repo":{"id":15193430,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE5MzQzMA==","name":"codecombat","full_name":"codecombat/codecombat","owner":{"login":"codecombat","id":5795842,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3OTU4NDI=","avatar_url":"https://avatars2.githubusercontent.com/u/5795842?v=4","gravatar_id":"","url":"https://api.github.com/users/codecombat","html_url":"https://github.com/codecombat","followers_url":"https://api.github.com/users/codecombat/followers","following_url":"https://api.github.com/users/codecombat/following{/other_user}","gists_url":"https://api.github.com/users/codecombat/gists{/gist_id}","starred_url":"https://api.github.com/users/codecombat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecombat/subscriptions","organizations_url":"https://api.github.com/users/codecombat/orgs","repos_url":"https://api.github.com/users/codecombat/repos","events_url":"https://api.github.com/users/codecombat/events{/privacy}","received_events_url":"https://api.github.com/users/codecombat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codecombat/codecombat","description":"Game for learning how to code.","fork":false,"url":"https://api.github.com/repos/codecombat/codecombat","forks_url":"https://api.github.com/repos/codecombat/codecombat/forks","keys_url":"https://api.github.com/repos/codecombat/codecombat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codecombat/codecombat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codecombat/codecombat/teams","hooks_url":"https://api.github.com/repos/codecombat/codecombat/hooks","issue_events_url":"https://api.github.com/repos/codecombat/codecombat/issues/events{/number}","events_url":"https://api.github.com/repos/codecombat/codecombat/events","assignees_url":"https://api.github.com/repos/codecombat/codecombat/assignees{/user}","branches_url":"https://api.github.com/repos/codecombat/codecombat/branches{/branch}","tags_url":"https://api.github.com/repos/codecombat/codecombat/tags","blobs_url":"https://api.github.com/repos/codecombat/codecombat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codecombat/codecombat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codecombat/codecombat/git/refs{/sha}","trees_url":"https://api.github.com/repos/codecombat/codecombat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codecombat/codecombat/statuses/{sha}","languages_url":"https://api.github.com/repos/codecombat/codecombat/languages","stargazers_url":"https://api.github.com/repos/codecombat/codecombat/stargazers","contributors_url":"https://api.github.com/repos/codecombat/codecombat/contributors","subscribers_url":"https://api.github.com/repos/codecombat/codecombat/subscribers","subscription_url":"https://api.github.com/repos/codecombat/codecombat/subscription","commits_url":"https://api.github.com/repos/codecombat/codecombat/commits{/sha}","git_commits_url":"https://api.github.com/repos/codecombat/codecombat/git/commits{/sha}","comments_url":"https://api.github.com/repos/codecombat/codecombat/comments{/number}","issue_comment_url":"https://api.github.com/repos/codecombat/codecombat/issues/comments{/number}","contents_url":"https://api.github.com/repos/codecombat/codecombat/contents/{+path}","compare_url":"https://api.github.com/repos/codecombat/codecombat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codecombat/codecombat/merges","archive_url":"https://api.github.com/repos/codecombat/codecombat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codecombat/codecombat/downloads","issues_url":"https://api.github.com/repos/codecombat/codecombat/issues{/number}","pulls_url":"https://api.github.com/repos/codecombat/codecombat/pulls{/number}","milestones_url":"https://api.github.com/repos/codecombat/codecombat/milestones{/number}","notifications_url":"https://api.github.com/repos/codecombat/codecombat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codecombat/codecombat/labels{/name}","releases_url":"https://api.github.com/repos/codecombat/codecombat/releases{/id}","deployments_url":"https://api.github.com/repos/codecombat/codecombat/deployments","created_at":"2013-12-14T21:47:37Z","updated_at":"2018-08-06T15:47:54Z","pushed_at":"2018-08-07T01:42:48Z","git_url":"git://github.com/codecombat/codecombat.git","ssh_url":"git@github.com:codecombat/codecombat.git","clone_url":"https://github.com/codecombat/codecombat.git","svn_url":"https://github.com/codecombat/codecombat","homepage":"http://codecombat.com","size":225107,"stargazers_count":6368,"watchers_count":6368,"language":"CoffeeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3222,"mirror_url":null,"archived":false,"open_issues_count":358,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":3222,"open_issues":358,"watchers":6368,"default_branch":"master"}},"base":{"label":"codecombat:master","ref":"master","sha":"0944b232959b5eeef7042485745f380ee58e662c","user":{"login":"codecombat","id":5795842,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3OTU4NDI=","avatar_url":"https://avatars2.githubusercontent.com/u/5795842?v=4","gravatar_id":"","url":"https://api.github.com/users/codecombat","html_url":"https://github.com/codecombat","followers_url":"https://api.github.com/users/codecombat/followers","following_url":"https://api.github.com/users/codecombat/following{/other_user}","gists_url":"https://api.github.com/users/codecombat/gists{/gist_id}","starred_url":"https://api.github.com/users/codecombat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecombat/subscriptions","organizations_url":"https://api.github.com/users/codecombat/orgs","repos_url":"https://api.github.com/users/codecombat/repos","events_url":"https://api.github.com/users/codecombat/events{/privacy}","received_events_url":"https://api.github.com/users/codecombat/received_events","type":"Organization","site_admin":false},"repo":{"id":15193430,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE5MzQzMA==","name":"codecombat","full_name":"codecombat/codecombat","owner":{"login":"codecombat","id":5795842,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3OTU4NDI=","avatar_url":"https://avatars2.githubusercontent.com/u/5795842?v=4","gravatar_id":"","url":"https://api.github.com/users/codecombat","html_url":"https://github.com/codecombat","followers_url":"https://api.github.com/users/codecombat/followers","following_url":"https://api.github.com/users/codecombat/following{/other_user}","gists_url":"https://api.github.com/users/codecombat/gists{/gist_id}","starred_url":"https://api.github.com/users/codecombat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecombat/subscriptions","organizations_url":"https://api.github.com/users/codecombat/orgs","repos_url":"https://api.github.com/users/codecombat/repos","events_url":"https://api.github.com/users/codecombat/events{/privacy}","received_events_url":"https://api.github.com/users/codecombat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codecombat/codecombat","description":"Game for learning how to code.","fork":false,"url":"https://api.github.com/repos/codecombat/codecombat","forks_url":"https://api.github.com/repos/codecombat/codecombat/forks","keys_url":"https://api.github.com/repos/codecombat/codecombat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codecombat/codecombat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codecombat/codecombat/teams","hooks_url":"https://api.github.com/repos/codecombat/codecombat/hooks","issue_events_url":"https://api.github.com/repos/codecombat/codecombat/issues/events{/number}","events_url":"https://api.github.com/repos/codecombat/codecombat/events","assignees_url":"https://api.github.com/repos/codecombat/codecombat/assignees{/user}","branches_url":"https://api.github.com/repos/codecombat/codecombat/branches{/branch}","tags_url":"https://api.github.com/repos/codecombat/codecombat/tags","blobs_url":"https://api.github.com/repos/codecombat/codecombat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codecombat/codecombat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codecombat/codecombat/git/refs{/sha}","trees_url":"https://api.github.com/repos/codecombat/codecombat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codecombat/codecombat/statuses/{sha}","languages_url":"https://api.github.com/repos/codecombat/codecombat/languages","stargazers_url":"https://api.github.com/repos/codecombat/codecombat/stargazers","contributors_url":"https://api.github.com/repos/codecombat/codecombat/contributors","subscribers_url":"https://api.github.com/repos/codecombat/codecombat/subscribers","subscription_url":"https://api.github.com/repos/codecombat/codecombat/subscription","commits_url":"https://api.github.com/repos/codecombat/codecombat/commits{/sha}","git_commits_url":"https://api.github.com/repos/codecombat/codecombat/git/commits{/sha}","comments_url":"https://api.github.com/repos/codecombat/codecombat/comments{/number}","issue_comment_url":"https://api.github.com/repos/codecombat/codecombat/issues/comments{/number}","contents_url":"https://api.github.com/repos/codecombat/codecombat/contents/{+path}","compare_url":"https://api.github.com/repos/codecombat/codecombat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codecombat/codecombat/merges","archive_url":"https://api.github.com/repos/codecombat/codecombat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codecombat/codecombat/downloads","issues_url":"https://api.github.com/repos/codecombat/codecombat/issues{/number}","pulls_url":"https://api.github.com/repos/codecombat/codecombat/pulls{/number}","milestones_url":"https://api.github.com/repos/codecombat/codecombat/milestones{/number}","notifications_url":"https://api.github.com/repos/codecombat/codecombat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codecombat/codecombat/labels{/name}","releases_url":"https://api.github.com/repos/codecombat/codecombat/releases{/id}","deployments_url":"https://api.github.com/repos/codecombat/codecombat/deployments","created_at":"2013-12-14T21:47:37Z","updated_at":"2018-08-06T15:47:54Z","pushed_at":"2018-08-07T01:42:48Z","git_url":"git://github.com/codecombat/codecombat.git","ssh_url":"git@github.com:codecombat/codecombat.git","clone_url":"https://github.com/codecombat/codecombat.git","svn_url":"https://github.com/codecombat/codecombat","homepage":"http://codecombat.com","size":225107,"stargazers_count":6368,"watchers_count":6368,"language":"CoffeeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3222,"mirror_url":null,"archived":false,"open_issues_count":358,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":3222,"open_issues":358,"watchers":6368,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codecombat/codecombat/pulls/4813"},"html":{"href":"https://github.com/codecombat/codecombat/pull/4813"},"issue":{"href":"https://api.github.com/repos/codecombat/codecombat/issues/4813"},"comments":{"href":"https://api.github.com/repos/codecombat/codecombat/issues/4813/comments"},"review_comments":{"href":"https://api.github.com/repos/codecombat/codecombat/pulls/4813/comments"},"review_comment":{"href":"https://api.github.com/repos/codecombat/codecombat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codecombat/codecombat/pulls/4813/commits"},"statuses":{"href":"https://api.github.com/repos/codecombat/codecombat/statuses/0ca16f437d011ca40c862e01348df13bbb730859"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"differentmatt"}}