{"action":"created","comment":{"url":"https://api.github.com/repos/source-academy/cadet/pulls/comments/200815320","pull_request_review_id":135207519,"id":200815320,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDgxNTMyMA==","diff_hunk":"@@ -5,27 +5,30 @@ defmodule Cadet.Assessments.Answer do\n   \"\"\"\n   use Cadet, :model\n \n-  alias Cadet.Assessments.ProblemType\n+  alias Cadet.Assessments.QuestionType\n   alias Cadet.Assessments.Submission\n   alias Cadet.Assessments.Question\n \n   schema \"answers\" do\n     field(:xp, :integer, default: 0)\n     field(:answer, :map)\n     field(:raw_answer, :string, virtual: true)\n+    field(:comment, :string)\n+    field(:adjustment, :integer, default: 0)\n     belongs_to(:submission, Submission)\n     belongs_to(:question, Question)\n     timestamps()\n   end\n \n   @required_fields ~w(answer)a\n-  @optional_fields ~w(xp raw_answer)a\n+  @optional_fields ~w(xp raw_answer comment adjustment)a\n \n   def changeset(answer, params) do\n     answer\n     |> cast(params, @required_fields ++ @optional_fields)\n     |> validate_required(@required_fields)\n     |> validate_number(:xp, greater_than_or_equal_to: 0.0)","path":"lib/cadet/assessments/answer.ex","position":28,"original_position":28,"commit_id":"cec7532678cbd5508f2dd9d32d033b5122e72311","original_commit_id":"3485498fcbaea5920a766a1cf6e487245f75c3c9","user":{"login":"tuesmiddt","id":24516383,"node_id":"MDQ6VXNlcjI0NTE2Mzgz","avatar_url":"https://avatars1.githubusercontent.com/u/24516383?v=4","gravatar_id":"","url":"https://api.github.com/users/tuesmiddt","html_url":"https://github.com/tuesmiddt","followers_url":"https://api.github.com/users/tuesmiddt/followers","following_url":"https://api.github.com/users/tuesmiddt/following{/other_user}","gists_url":"https://api.github.com/users/tuesmiddt/gists{/gist_id}","starred_url":"https://api.github.com/users/tuesmiddt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuesmiddt/subscriptions","organizations_url":"https://api.github.com/users/tuesmiddt/orgs","repos_url":"https://api.github.com/users/tuesmiddt/repos","events_url":"https://api.github.com/users/tuesmiddt/events{/privacy}","received_events_url":"https://api.github.com/users/tuesmiddt/received_events","type":"User","site_admin":false},"body":"changed","created_at":"2018-07-07T15:34:44Z","updated_at":"2018-07-07T15:34:44Z","html_url":"https://github.com/source-academy/cadet/pull/87#discussion_r200815320","pull_request_url":"https://api.github.com/repos/source-academy/cadet/pulls/87","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/source-academy/cadet/pulls/comments/200815320"},"html":{"href":"https://github.com/source-academy/cadet/pull/87#discussion_r200815320"},"pull_request":{"href":"https://api.github.com/repos/source-academy/cadet/pulls/87"}},"in_reply_to_id":200814305},"pull_request":{"url":"https://api.github.com/repos/source-academy/cadet/pulls/87","id":199297478,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5Mjk3NDc4","html_url":"https://github.com/source-academy/cadet/pull/87","diff_url":"https://github.com/source-academy/cadet/pull/87.diff","patch_url":"https://github.com/source-academy/cadet/pull/87.patch","issue_url":"https://api.github.com/repos/source-academy/cadet/issues/87","number":87,"state":"open","locked":false,"title":"Fix migrations","user":{"login":"tuesmiddt","id":24516383,"node_id":"MDQ6VXNlcjI0NTE2Mzgz","avatar_url":"https://avatars1.githubusercontent.com/u/24516383?v=4","gravatar_id":"","url":"https://api.github.com/users/tuesmiddt","html_url":"https://github.com/tuesmiddt","followers_url":"https://api.github.com/users/tuesmiddt/followers","following_url":"https://api.github.com/users/tuesmiddt/following{/other_user}","gists_url":"https://api.github.com/users/tuesmiddt/gists{/gist_id}","starred_url":"https://api.github.com/users/tuesmiddt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuesmiddt/subscriptions","organizations_url":"https://api.github.com/users/tuesmiddt/orgs","repos_url":"https://api.github.com/users/tuesmiddt/repos","events_url":"https://api.github.com/users/tuesmiddt/events{/privacy}","received_events_url":"https://api.github.com/users/tuesmiddt/received_events","type":"User","site_admin":false},"body":"THIS IS A BIG AND UGLY PR TO GET THE DB TO [THIS SCHEMA](https://app.sqldbm.com/MySQL/Share/CHATirAj92nmkSYqS44cjEGFrngIE8md_DYjF4jNYw0).\r\n\r\nFixes #94 \r\n\r\nTODO: \r\n- REFACTOR ASSESSMENTS\r\n- REFACTOR GROUPS CONTEXT METHODS AND TESTS\r\n","created_at":"2018-07-04T17:00:21Z","updated_at":"2018-07-07T15:34:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d03f2fdcda0427bde7b5ff4dd06fc369118e0d8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/source-academy/cadet/pulls/87/commits","review_comments_url":"https://api.github.com/repos/source-academy/cadet/pulls/87/comments","review_comment_url":"https://api.github.com/repos/source-academy/cadet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/source-academy/cadet/issues/87/comments","statuses_url":"https://api.github.com/repos/source-academy/cadet/statuses/cec7532678cbd5508f2dd9d32d033b5122e72311","head":{"label":"source-academy:fix-migrations","ref":"fix-migrations","sha":"cec7532678cbd5508f2dd9d32d033b5122e72311","user":{"login":"source-academy","id":35620705,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NjIwNzA1","avatar_url":"https://avatars1.githubusercontent.com/u/35620705?v=4","gravatar_id":"","url":"https://api.github.com/users/source-academy","html_url":"https://github.com/source-academy","followers_url":"https://api.github.com/users/source-academy/followers","following_url":"https://api.github.com/users/source-academy/following{/other_user}","gists_url":"https://api.github.com/users/source-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/source-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/source-academy/subscriptions","organizations_url":"https://api.github.com/users/source-academy/orgs","repos_url":"https://api.github.com/users/source-academy/repos","events_url":"https://api.github.com/users/source-academy/events{/privacy}","received_events_url":"https://api.github.com/users/source-academy/received_events","type":"Organization","site_admin":false},"repo":{"id":118212478,"node_id":"MDEwOlJlcG9zaXRvcnkxMTgyMTI0Nzg=","name":"cadet","full_name":"source-academy/cadet","owner":{"login":"source-academy","id":35620705,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NjIwNzA1","avatar_url":"https://avatars1.githubusercontent.com/u/35620705?v=4","gravatar_id":"","url":"https://api.github.com/users/source-academy","html_url":"https://github.com/source-academy","followers_url":"https://api.github.com/users/source-academy/followers","following_url":"https://api.github.com/users/source-academy/following{/other_user}","gists_url":"https://api.github.com/users/source-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/source-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/source-academy/subscriptions","organizations_url":"https://api.github.com/users/source-academy/orgs","repos_url":"https://api.github.com/users/source-academy/repos","events_url":"https://api.github.com/users/source-academy/events{/privacy}","received_events_url":"https://api.github.com/users/source-academy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/source-academy/cadet","description":null,"fork":false,"url":"https://api.github.com/repos/source-academy/cadet","forks_url":"https://api.github.com/repos/source-academy/cadet/forks","keys_url":"https://api.github.com/repos/source-academy/cadet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/source-academy/cadet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/source-academy/cadet/teams","hooks_url":"https://api.github.com/repos/source-academy/cadet/hooks","issue_events_url":"https://api.github.com/repos/source-academy/cadet/issues/events{/number}","events_url":"https://api.github.com/repos/source-academy/cadet/events","assignees_url":"https://api.github.com/repos/source-academy/cadet/assignees{/user}","branches_url":"https://api.github.com/repos/source-academy/cadet/branches{/branch}","tags_url":"https://api.github.com/repos/source-academy/cadet/tags","blobs_url":"https://api.github.com/repos/source-academy/cadet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/source-academy/cadet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/source-academy/cadet/git/refs{/sha}","trees_url":"https://api.github.com/repos/source-academy/cadet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/source-academy/cadet/statuses/{sha}","languages_url":"https://api.github.com/repos/source-academy/cadet/languages","stargazers_url":"https://api.github.com/repos/source-academy/cadet/stargazers","contributors_url":"https://api.github.com/repos/source-academy/cadet/contributors","subscribers_url":"https://api.github.com/repos/source-academy/cadet/subscribers","subscription_url":"https://api.github.com/repos/source-academy/cadet/subscription","commits_url":"https://api.github.com/repos/source-academy/cadet/commits{/sha}","git_commits_url":"https://api.github.com/repos/source-academy/cadet/git/commits{/sha}","comments_url":"https://api.github.com/repos/source-academy/cadet/comments{/number}","issue_comment_url":"https://api.github.com/repos/source-academy/cadet/issues/comments{/number}","contents_url":"https://api.github.com/repos/source-academy/cadet/contents/{+path}","compare_url":"https://api.github.com/repos/source-academy/cadet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/source-academy/cadet/merges","archive_url":"https://api.github.com/repos/source-academy/cadet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/source-academy/cadet/downloads","issues_url":"https://api.github.com/repos/source-academy/cadet/issues{/number}","pulls_url":"https://api.github.com/repos/source-academy/cadet/pulls{/number}","milestones_url":"https://api.github.com/repos/source-academy/cadet/milestones{/number}","notifications_url":"https://api.github.com/repos/source-academy/cadet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/source-academy/cadet/labels{/name}","releases_url":"https://api.github.com/repos/source-academy/cadet/releases{/id}","deployments_url":"https://api.github.com/repos/source-academy/cadet/deployments","created_at":"2018-01-20T05:32:02Z","updated_at":"2018-07-06T06:15:10Z","pushed_at":"2018-07-07T15:28:04Z","git_url":"git://github.com/source-academy/cadet.git","ssh_url":"git@github.com:source-academy/cadet.git","clone_url":"https://github.com/source-academy/cadet.git","svn_url":"https://github.com/source-academy/cadet","homepage":null,"size":1946,"stargazers_count":6,"watchers_count":6,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":30,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":30,"watchers":6,"default_branch":"master"}},"base":{"label":"source-academy:master","ref":"master","sha":"de2198aa18da34bd6e3d025441aaa43d979d1650","user":{"login":"source-academy","id":35620705,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NjIwNzA1","avatar_url":"https://avatars1.githubusercontent.com/u/35620705?v=4","gravatar_id":"","url":"https://api.github.com/users/source-academy","html_url":"https://github.com/source-academy","followers_url":"https://api.github.com/users/source-academy/followers","following_url":"https://api.github.com/users/source-academy/following{/other_user}","gists_url":"https://api.github.com/users/source-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/source-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/source-academy/subscriptions","organizations_url":"https://api.github.com/users/source-academy/orgs","repos_url":"https://api.github.com/users/source-academy/repos","events_url":"https://api.github.com/users/source-academy/events{/privacy}","received_events_url":"https://api.github.com/users/source-academy/received_events","type":"Organization","site_admin":false},"repo":{"id":118212478,"node_id":"MDEwOlJlcG9zaXRvcnkxMTgyMTI0Nzg=","name":"cadet","full_name":"source-academy/cadet","owner":{"login":"source-academy","id":35620705,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NjIwNzA1","avatar_url":"https://avatars1.githubusercontent.com/u/35620705?v=4","gravatar_id":"","url":"https://api.github.com/users/source-academy","html_url":"https://github.com/source-academy","followers_url":"https://api.github.com/users/source-academy/followers","following_url":"https://api.github.com/users/source-academy/following{/other_user}","gists_url":"https://api.github.com/users/source-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/source-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/source-academy/subscriptions","organizations_url":"https://api.github.com/users/source-academy/orgs","repos_url":"https://api.github.com/users/source-academy/repos","events_url":"https://api.github.com/users/source-academy/events{/privacy}","received_events_url":"https://api.github.com/users/source-academy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/source-academy/cadet","description":null,"fork":false,"url":"https://api.github.com/repos/source-academy/cadet","forks_url":"https://api.github.com/repos/source-academy/cadet/forks","keys_url":"https://api.github.com/repos/source-academy/cadet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/source-academy/cadet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/source-academy/cadet/teams","hooks_url":"https://api.github.com/repos/source-academy/cadet/hooks","issue_events_url":"https://api.github.com/repos/source-academy/cadet/issues/events{/number}","events_url":"https://api.github.com/repos/source-academy/cadet/events","assignees_url":"https://api.github.com/repos/source-academy/cadet/assignees{/user}","branches_url":"https://api.github.com/repos/source-academy/cadet/branches{/branch}","tags_url":"https://api.github.com/repos/source-academy/cadet/tags","blobs_url":"https://api.github.com/repos/source-academy/cadet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/source-academy/cadet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/source-academy/cadet/git/refs{/sha}","trees_url":"https://api.github.com/repos/source-academy/cadet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/source-academy/cadet/statuses/{sha}","languages_url":"https://api.github.com/repos/source-academy/cadet/languages","stargazers_url":"https://api.github.com/repos/source-academy/cadet/stargazers","contributors_url":"https://api.github.com/repos/source-academy/cadet/contributors","subscribers_url":"https://api.github.com/repos/source-academy/cadet/subscribers","subscription_url":"https://api.github.com/repos/source-academy/cadet/subscription","commits_url":"https://api.github.com/repos/source-academy/cadet/commits{/sha}","git_commits_url":"https://api.github.com/repos/source-academy/cadet/git/commits{/sha}","comments_url":"https://api.github.com/repos/source-academy/cadet/comments{/number}","issue_comment_url":"https://api.github.com/repos/source-academy/cadet/issues/comments{/number}","contents_url":"https://api.github.com/repos/source-academy/cadet/contents/{+path}","compare_url":"https://api.github.com/repos/source-academy/cadet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/source-academy/cadet/merges","archive_url":"https://api.github.com/repos/source-academy/cadet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/source-academy/cadet/downloads","issues_url":"https://api.github.com/repos/source-academy/cadet/issues{/number}","pulls_url":"https://api.github.com/repos/source-academy/cadet/pulls{/number}","milestones_url":"https://api.github.com/repos/source-academy/cadet/milestones{/number}","notifications_url":"https://api.github.com/repos/source-academy/cadet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/source-academy/cadet/labels{/name}","releases_url":"https://api.github.com/repos/source-academy/cadet/releases{/id}","deployments_url":"https://api.github.com/repos/source-academy/cadet/deployments","created_at":"2018-01-20T05:32:02Z","updated_at":"2018-07-06T06:15:10Z","pushed_at":"2018-07-07T15:28:04Z","git_url":"git://github.com/source-academy/cadet.git","ssh_url":"git@github.com:source-academy/cadet.git","clone_url":"https://github.com/source-academy/cadet.git","svn_url":"https://github.com/source-academy/cadet","homepage":null,"size":1946,"stargazers_count":6,"watchers_count":6,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":30,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":30,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/source-academy/cadet/pulls/87"},"html":{"href":"https://github.com/source-academy/cadet/pull/87"},"issue":{"href":"https://api.github.com/repos/source-academy/cadet/issues/87"},"comments":{"href":"https://api.github.com/repos/source-academy/cadet/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/source-academy/cadet/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/source-academy/cadet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/source-academy/cadet/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/source-academy/cadet/statuses/cec7532678cbd5508f2dd9d32d033b5122e72311"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"tuesmiddt"}}