{"action":"created","comment":{"url":"https://api.github.com/repos/concord-consortium/rigse/pulls/comments/177516003","pull_request_review_id":107400786,"id":177516003,"diff_hunk":"@@ -46,6 +46,8 @@ def materials_data( materials,\n         has_activities = material.respond_to?(:activities) && !material.activities.nil?\n         has_pretest = material.respond_to?(:has_pretest) && material.has_pretest\n \n+        saves_student_data = material.respond_to?(:saves_student_data) && material.saves_student_data\n+","path":"lib/materials/data_helpers.rb","position":5,"original_position":5,"commit_id":"ad02f69cb45442050de1689de202a5559a9b77b2","original_commit_id":"ad02f69cb45442050de1689de202a5559a9b77b2","user":{"login":"scytacki","id":86016,"avatar_url":"https://avatars0.githubusercontent.com/u/86016?v=4","gravatar_id":"","url":"https://api.github.com/users/scytacki","html_url":"https://github.com/scytacki","followers_url":"https://api.github.com/users/scytacki/followers","following_url":"https://api.github.com/users/scytacki/following{/other_user}","gists_url":"https://api.github.com/users/scytacki/gists{/gist_id}","starred_url":"https://api.github.com/users/scytacki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scytacki/subscriptions","organizations_url":"https://api.github.com/users/scytacki/orgs","repos_url":"https://api.github.com/users/scytacki/repos","events_url":"https://api.github.com/users/scytacki/events{/privacy}","received_events_url":"https://api.github.com/users/scytacki/received_events","type":"User","site_admin":false},"body":"If the material doesn't respond to :saves_student_data, then it should default to `true`. Otherwise on old databases it will look like all of the materials do not save student data.","created_at":"2018-03-27T17:55:46Z","updated_at":"2018-03-27T17:56:10Z","html_url":"https://github.com/concord-consortium/rigse/pull/446#discussion_r177516003","pull_request_url":"https://api.github.com/repos/concord-consortium/rigse/pulls/446","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/concord-consortium/rigse/pulls/comments/177516003"},"html":{"href":"https://github.com/concord-consortium/rigse/pull/446#discussion_r177516003"},"pull_request":{"href":"https://api.github.com/repos/concord-consortium/rigse/pulls/446"}}},"pull_request":{"url":"https://api.github.com/repos/concord-consortium/rigse/pulls/446","id":175074758,"html_url":"https://github.com/concord-consortium/rigse/pull/446","diff_url":"https://github.com/concord-consortium/rigse/pull/446.diff","patch_url":"https://github.com/concord-consortium/rigse/pull/446.patch","issue_url":"https://api.github.com/repos/concord-consortium/rigse/issues/446","number":446,"state":"open","locked":false,"title":"Added saves_student_data field for external activities.","user":{"login":"emcelroy","id":367459,"avatar_url":"https://avatars2.githubusercontent.com/u/367459?v=4","gravatar_id":"","url":"https://api.github.com/users/emcelroy","html_url":"https://github.com/emcelroy","followers_url":"https://api.github.com/users/emcelroy/followers","following_url":"https://api.github.com/users/emcelroy/following{/other_user}","gists_url":"https://api.github.com/users/emcelroy/gists{/gist_id}","starred_url":"https://api.github.com/users/emcelroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emcelroy/subscriptions","organizations_url":"https://api.github.com/users/emcelroy/orgs","repos_url":"https://api.github.com/users/emcelroy/repos","events_url":"https://api.github.com/users/emcelroy/events{/privacy}","received_events_url":"https://api.github.com/users/emcelroy/received_events","type":"User","site_admin":false},"body":"@scytacki I've added a migration for adding a saves_student_data column to the external_activities table, and added the field to the external activity authoring form. \r\n\r\nIs that all I need to do before I start working on the related notification for teachers when they assign an activity?","created_at":"2018-03-14T20:24:20Z","updated_at":"2018-03-27T17:56:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ca22d4b0dc669b8006016ec96c13f84d7911bf63","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/concord-consortium/rigse/pulls/446/commits","review_comments_url":"https://api.github.com/repos/concord-consortium/rigse/pulls/446/comments","review_comment_url":"https://api.github.com/repos/concord-consortium/rigse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/concord-consortium/rigse/issues/446/comments","statuses_url":"https://api.github.com/repos/concord-consortium/rigse/statuses/ad02f69cb45442050de1689de202a5559a9b77b2","head":{"label":"concord-consortium:save-student-data-field","ref":"save-student-data-field","sha":"ad02f69cb45442050de1689de202a5559a9b77b2","user":{"login":"concord-consortium","id":319219,"avatar_url":"https://avatars1.githubusercontent.com/u/319219?v=4","gravatar_id":"","url":"https://api.github.com/users/concord-consortium","html_url":"https://github.com/concord-consortium","followers_url":"https://api.github.com/users/concord-consortium/followers","following_url":"https://api.github.com/users/concord-consortium/following{/other_user}","gists_url":"https://api.github.com/users/concord-consortium/gists{/gist_id}","starred_url":"https://api.github.com/users/concord-consortium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concord-consortium/subscriptions","organizations_url":"https://api.github.com/users/concord-consortium/orgs","repos_url":"https://api.github.com/users/concord-consortium/repos","events_url":"https://api.github.com/users/concord-consortium/events{/privacy}","received_events_url":"https://api.github.com/users/concord-consortium/received_events","type":"Organization","site_admin":false},"repo":{"id":2056634,"name":"rigse","full_name":"concord-consortium/rigse","owner":{"login":"concord-consortium","id":319219,"avatar_url":"https://avatars1.githubusercontent.com/u/319219?v=4","gravatar_id":"","url":"https://api.github.com/users/concord-consortium","html_url":"https://github.com/concord-consortium","followers_url":"https://api.github.com/users/concord-consortium/followers","following_url":"https://api.github.com/users/concord-consortium/following{/other_user}","gists_url":"https://api.github.com/users/concord-consortium/gists{/gist_id}","starred_url":"https://api.github.com/users/concord-consortium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concord-consortium/subscriptions","organizations_url":"https://api.github.com/users/concord-consortium/orgs","repos_url":"https://api.github.com/users/concord-consortium/repos","events_url":"https://api.github.com/users/concord-consortium/events{/privacy}","received_events_url":"https://api.github.com/users/concord-consortium/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/concord-consortium/rigse","description":"Concord Consortium Portal somewhat like an LMS","fork":false,"url":"https://api.github.com/repos/concord-consortium/rigse","forks_url":"https://api.github.com/repos/concord-consortium/rigse/forks","keys_url":"https://api.github.com/repos/concord-consortium/rigse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/concord-consortium/rigse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/concord-consortium/rigse/teams","hooks_url":"https://api.github.com/repos/concord-consortium/rigse/hooks","issue_events_url":"https://api.github.com/repos/concord-consortium/rigse/issues/events{/number}","events_url":"https://api.github.com/repos/concord-consortium/rigse/events","assignees_url":"https://api.github.com/repos/concord-consortium/rigse/assignees{/user}","branches_url":"https://api.github.com/repos/concord-consortium/rigse/branches{/branch}","tags_url":"https://api.github.com/repos/concord-consortium/rigse/tags","blobs_url":"https://api.github.com/repos/concord-consortium/rigse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/concord-consortium/rigse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/concord-consortium/rigse/git/refs{/sha}","trees_url":"https://api.github.com/repos/concord-consortium/rigse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/concord-consortium/rigse/statuses/{sha}","languages_url":"https://api.github.com/repos/concord-consortium/rigse/languages","stargazers_url":"https://api.github.com/repos/concord-consortium/rigse/stargazers","contributors_url":"https://api.github.com/repos/concord-consortium/rigse/contributors","subscribers_url":"https://api.github.com/repos/concord-consortium/rigse/subscribers","subscription_url":"https://api.github.com/repos/concord-consortium/rigse/subscription","commits_url":"https://api.github.com/repos/concord-consortium/rigse/commits{/sha}","git_commits_url":"https://api.github.com/repos/concord-consortium/rigse/git/commits{/sha}","comments_url":"https://api.github.com/repos/concord-consortium/rigse/comments{/number}","issue_comment_url":"https://api.github.com/repos/concord-consortium/rigse/issues/comments{/number}","contents_url":"https://api.github.com/repos/concord-consortium/rigse/contents/{+path}","compare_url":"https://api.github.com/repos/concord-consortium/rigse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/concord-consortium/rigse/merges","archive_url":"https://api.github.com/repos/concord-consortium/rigse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/concord-consortium/rigse/downloads","issues_url":"https://api.github.com/repos/concord-consortium/rigse/issues{/number}","pulls_url":"https://api.github.com/repos/concord-consortium/rigse/pulls{/number}","milestones_url":"https://api.github.com/repos/concord-consortium/rigse/milestones{/number}","notifications_url":"https://api.github.com/repos/concord-consortium/rigse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/concord-consortium/rigse/labels{/name}","releases_url":"https://api.github.com/repos/concord-consortium/rigse/releases{/id}","deployments_url":"https://api.github.com/repos/concord-consortium/rigse/deployments","created_at":"2011-07-16T03:22:38Z","updated_at":"2018-03-20T20:33:20Z","pushed_at":"2018-03-26T22:00:29Z","git_url":"git://github.com/concord-consortium/rigse.git","ssh_url":"git@github.com:concord-consortium/rigse.git","clone_url":"https://github.com/concord-consortium/rigse.git","svn_url":"https://github.com/concord-consortium/rigse","homepage":"","size":80749,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":8,"open_issues":3,"watchers":6,"default_branch":"master"}},"base":{"label":"concord-consortium:master","ref":"master","sha":"16cc9d0c2ba1fc1b77df93696db2f393a487431e","user":{"login":"concord-consortium","id":319219,"avatar_url":"https://avatars1.githubusercontent.com/u/319219?v=4","gravatar_id":"","url":"https://api.github.com/users/concord-consortium","html_url":"https://github.com/concord-consortium","followers_url":"https://api.github.com/users/concord-consortium/followers","following_url":"https://api.github.com/users/concord-consortium/following{/other_user}","gists_url":"https://api.github.com/users/concord-consortium/gists{/gist_id}","starred_url":"https://api.github.com/users/concord-consortium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concord-consortium/subscriptions","organizations_url":"https://api.github.com/users/concord-consortium/orgs","repos_url":"https://api.github.com/users/concord-consortium/repos","events_url":"https://api.github.com/users/concord-consortium/events{/privacy}","received_events_url":"https://api.github.com/users/concord-consortium/received_events","type":"Organization","site_admin":false},"repo":{"id":2056634,"name":"rigse","full_name":"concord-consortium/rigse","owner":{"login":"concord-consortium","id":319219,"avatar_url":"https://avatars1.githubusercontent.com/u/319219?v=4","gravatar_id":"","url":"https://api.github.com/users/concord-consortium","html_url":"https://github.com/concord-consortium","followers_url":"https://api.github.com/users/concord-consortium/followers","following_url":"https://api.github.com/users/concord-consortium/following{/other_user}","gists_url":"https://api.github.com/users/concord-consortium/gists{/gist_id}","starred_url":"https://api.github.com/users/concord-consortium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concord-consortium/subscriptions","organizations_url":"https://api.github.com/users/concord-consortium/orgs","repos_url":"https://api.github.com/users/concord-consortium/repos","events_url":"https://api.github.com/users/concord-consortium/events{/privacy}","received_events_url":"https://api.github.com/users/concord-consortium/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/concord-consortium/rigse","description":"Concord Consortium Portal somewhat like an LMS","fork":false,"url":"https://api.github.com/repos/concord-consortium/rigse","forks_url":"https://api.github.com/repos/concord-consortium/rigse/forks","keys_url":"https://api.github.com/repos/concord-consortium/rigse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/concord-consortium/rigse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/concord-consortium/rigse/teams","hooks_url":"https://api.github.com/repos/concord-consortium/rigse/hooks","issue_events_url":"https://api.github.com/repos/concord-consortium/rigse/issues/events{/number}","events_url":"https://api.github.com/repos/concord-consortium/rigse/events","assignees_url":"https://api.github.com/repos/concord-consortium/rigse/assignees{/user}","branches_url":"https://api.github.com/repos/concord-consortium/rigse/branches{/branch}","tags_url":"https://api.github.com/repos/concord-consortium/rigse/tags","blobs_url":"https://api.github.com/repos/concord-consortium/rigse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/concord-consortium/rigse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/concord-consortium/rigse/git/refs{/sha}","trees_url":"https://api.github.com/repos/concord-consortium/rigse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/concord-consortium/rigse/statuses/{sha}","languages_url":"https://api.github.com/repos/concord-consortium/rigse/languages","stargazers_url":"https://api.github.com/repos/concord-consortium/rigse/stargazers","contributors_url":"https://api.github.com/repos/concord-consortium/rigse/contributors","subscribers_url":"https://api.github.com/repos/concord-consortium/rigse/subscribers","subscription_url":"https://api.github.com/repos/concord-consortium/rigse/subscription","commits_url":"https://api.github.com/repos/concord-consortium/rigse/commits{/sha}","git_commits_url":"https://api.github.com/repos/concord-consortium/rigse/git/commits{/sha}","comments_url":"https://api.github.com/repos/concord-consortium/rigse/comments{/number}","issue_comment_url":"https://api.github.com/repos/concord-consortium/rigse/issues/comments{/number}","contents_url":"https://api.github.com/repos/concord-consortium/rigse/contents/{+path}","compare_url":"https://api.github.com/repos/concord-consortium/rigse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/concord-consortium/rigse/merges","archive_url":"https://api.github.com/repos/concord-consortium/rigse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/concord-consortium/rigse/downloads","issues_url":"https://api.github.com/repos/concord-consortium/rigse/issues{/number}","pulls_url":"https://api.github.com/repos/concord-consortium/rigse/pulls{/number}","milestones_url":"https://api.github.com/repos/concord-consortium/rigse/milestones{/number}","notifications_url":"https://api.github.com/repos/concord-consortium/rigse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/concord-consortium/rigse/labels{/name}","releases_url":"https://api.github.com/repos/concord-consortium/rigse/releases{/id}","deployments_url":"https://api.github.com/repos/concord-consortium/rigse/deployments","created_at":"2011-07-16T03:22:38Z","updated_at":"2018-03-20T20:33:20Z","pushed_at":"2018-03-26T22:00:29Z","git_url":"git://github.com/concord-consortium/rigse.git","ssh_url":"git@github.com:concord-consortium/rigse.git","clone_url":"https://github.com/concord-consortium/rigse.git","svn_url":"https://github.com/concord-consortium/rigse","homepage":"","size":80749,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":8,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/concord-consortium/rigse/pulls/446"},"html":{"href":"https://github.com/concord-consortium/rigse/pull/446"},"issue":{"href":"https://api.github.com/repos/concord-consortium/rigse/issues/446"},"comments":{"href":"https://api.github.com/repos/concord-consortium/rigse/issues/446/comments"},"review_comments":{"href":"https://api.github.com/repos/concord-consortium/rigse/pulls/446/comments"},"review_comment":{"href":"https://api.github.com/repos/concord-consortium/rigse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/concord-consortium/rigse/pulls/446/commits"},"statuses":{"href":"https://api.github.com/repos/concord-consortium/rigse/statuses/ad02f69cb45442050de1689de202a5559a9b77b2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"scytacki"}}