{"action":"closed","number":2205,"pull_request":{"url":"https://api.github.com/repos/UM-USElab/gradecraft-development/pulls/2205","id":77184856,"html_url":"https://github.com/UM-USElab/gradecraft-development/pull/2205","diff_url":"https://github.com/UM-USElab/gradecraft-development/pull/2205.diff","patch_url":"https://github.com/UM-USElab/gradecraft-development/pull/2205.patch","issue_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/issues/2205","number":2205,"state":"closed","locked":false,"title":"2171 import canvas assignment","user":{"login":"jwright","id":35017,"avatar_url":"https://avatars.githubusercontent.com/u/35017?v=3","gravatar_id":"","url":"https://api.github.com/users/jwright","html_url":"https://github.com/jwright","followers_url":"https://api.github.com/users/jwright/followers","following_url":"https://api.github.com/users/jwright/following{/other_user}","gists_url":"https://api.github.com/users/jwright/gists{/gist_id}","starred_url":"https://api.github.com/users/jwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwright/subscriptions","organizations_url":"https://api.github.com/users/jwright/orgs","repos_url":"https://api.github.com/users/jwright/repos","events_url":"https://api.github.com/users/jwright/events{/privacy}","received_events_url":"https://api.github.com/users/jwright/received_events","type":"User","site_admin":false},"body":"Import the assignments from Canvas into GradeCraft.\r\n\r\nFrom a professor's point of view, this is how they will be importing an assignment:\r\n\r\n1. Visit `/importers` and select \"Canvas\"\r\n\r\n<img width=\"1513\" alt=\"screen shot 2016-07-12 at 4 18 37 pm\" src=\"https://cloud.githubusercontent.com/assets/35017/16782200/7cf76374-484c-11e6-88b7-7c9bec8d077e.png\">\r\n\r\n2. Select the course from Canvas which holds the assignment or assignments to import\r\n\r\n<img width=\"1511\" alt=\"screen shot 2016-07-12 at 4 18 47 pm\" src=\"https://cloud.githubusercontent.com/assets/35017/16782227/9557143c-484c-11e6-8553-48e7382766f2.png\">\r\n\r\n3. Select the assignment or assignments that are to be imported and select the `AssignmentType`\r\n\r\n<img width=\"1517\" alt=\"screen shot 2016-07-12 at 4 19 01 pm\" src=\"https://cloud.githubusercontent.com/assets/35017/16782235/9bfb870a-484c-11e6-8d70-f0bff88d1540.png\">\r\n\r\n4. View the results of the import\r\n\r\n<img width=\"1532\" alt=\"screen shot 2016-07-12 at 4 19 14 pm\" src=\"https://cloud.githubusercontent.com/assets/35017/16782241/a175c7cc-484c-11e6-8799-ee43a5270bcd.png\">\r\n\r\nWhen importing an assignment from Canvas, the following fields are imported into a new `Assignment` object:\r\n\r\n* Canvas Assignment `name` -> GradeCraft Assignment `name`\r\n* Canvas Assignment `description` -> GradeCraft Assignment `description`\r\n* Canvas Assignment `due_at` -> GradeCraft Assignment `due_at`\r\n* Canvas Assignment `points_possible` -> GradeCraft Assignment `full_points`\r\n* Canvas Assignment `grading_type` == `pass_fail` -> GradeCraft Assignment `pass_fail`\r\n\r\nThe provider's name and assignment id are stored in a new table called `ImportedAssignments`. This will be useful when we need to sync assignments. I added this now in case professors start using this in production, we will be able to sync them in the future when we implement that feature.\r\n\r\nCloses #2171","created_at":"2016-07-12T20:22:30Z","updated_at":"2016-07-19T01:11:30Z","closed_at":"2016-07-19T01:11:30Z","merged_at":"2016-07-19T01:11:30Z","merge_commit_sha":"5386da31be05a3039533c09815f8d3d56bd01ab4","assignee":{"login":"chcholman","id":234276,"avatar_url":"https://avatars.githubusercontent.com/u/234276?v=3","gravatar_id":"","url":"https://api.github.com/users/chcholman","html_url":"https://github.com/chcholman","followers_url":"https://api.github.com/users/chcholman/followers","following_url":"https://api.github.com/users/chcholman/following{/other_user}","gists_url":"https://api.github.com/users/chcholman/gists{/gist_id}","starred_url":"https://api.github.com/users/chcholman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chcholman/subscriptions","organizations_url":"https://api.github.com/users/chcholman/orgs","repos_url":"https://api.github.com/users/chcholman/repos","events_url":"https://api.github.com/users/chcholman/events{/privacy}","received_events_url":"https://api.github.com/users/chcholman/received_events","type":"User","site_admin":false},"assignees":[{"login":"chcholman","id":234276,"avatar_url":"https://avatars.githubusercontent.com/u/234276?v=3","gravatar_id":"","url":"https://api.github.com/users/chcholman","html_url":"https://github.com/chcholman","followers_url":"https://api.github.com/users/chcholman/followers","following_url":"https://api.github.com/users/chcholman/following{/other_user}","gists_url":"https://api.github.com/users/chcholman/gists{/gist_id}","starred_url":"https://api.github.com/users/chcholman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chcholman/subscriptions","organizations_url":"https://api.github.com/users/chcholman/orgs","repos_url":"https://api.github.com/users/chcholman/repos","events_url":"https://api.github.com/users/chcholman/events{/privacy}","received_events_url":"https://api.github.com/users/chcholman/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/pulls/2205/commits","review_comments_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/pulls/2205/comments","review_comment_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/issues/2205/comments","statuses_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/statuses/3dcf003974f764a925a6ad78e544bfb86f880eca","head":{"label":"UM-USElab:2171-import-canvas-assignment","ref":"2171-import-canvas-assignment","sha":"3dcf003974f764a925a6ad78e544bfb86f880eca","user":{"login":"UM-USElab","id":4459066,"avatar_url":"https://avatars.githubusercontent.com/u/4459066?v=3","gravatar_id":"","url":"https://api.github.com/users/UM-USElab","html_url":"https://github.com/UM-USElab","followers_url":"https://api.github.com/users/UM-USElab/followers","following_url":"https://api.github.com/users/UM-USElab/following{/other_user}","gists_url":"https://api.github.com/users/UM-USElab/gists{/gist_id}","starred_url":"https://api.github.com/users/UM-USElab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UM-USElab/subscriptions","organizations_url":"https://api.github.com/users/UM-USElab/orgs","repos_url":"https://api.github.com/users/UM-USElab/repos","events_url":"https://api.github.com/users/UM-USElab/events{/privacy}","received_events_url":"https://api.github.com/users/UM-USElab/received_events","type":"Organization","site_admin":false},"repo":{"id":8105769,"name":"gradecraft-development","full_name":"UM-USElab/gradecraft-development","owner":{"login":"UM-USElab","id":4459066,"avatar_url":"https://avatars.githubusercontent.com/u/4459066?v=3","gravatar_id":"","url":"https://api.github.com/users/UM-USElab","html_url":"https://github.com/UM-USElab","followers_url":"https://api.github.com/users/UM-USElab/followers","following_url":"https://api.github.com/users/UM-USElab/following{/other_user}","gists_url":"https://api.github.com/users/UM-USElab/gists{/gist_id}","starred_url":"https://api.github.com/users/UM-USElab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UM-USElab/subscriptions","organizations_url":"https://api.github.com/users/UM-USElab/orgs","repos_url":"https://api.github.com/users/UM-USElab/repos","events_url":"https://api.github.com/users/UM-USElab/events{/privacy}","received_events_url":"https://api.github.com/users/UM-USElab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UM-USElab/gradecraft-development","description":"GradeCraft is a gameful learning management system, intended to help motivate students to be more engaged in their own learning.","fork":false,"url":"https://api.github.com/repos/UM-USElab/gradecraft-development","forks_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/forks","keys_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/teams","hooks_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/hooks","issue_events_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/issues/events{/number}","events_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/events","assignees_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/assignees{/user}","branches_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/branches{/branch}","tags_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/tags","blobs_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/git/refs{/sha}","trees_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/statuses/{sha}","languages_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/languages","stargazers_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/stargazers","contributors_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/contributors","subscribers_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/subscribers","subscription_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/subscription","commits_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/commits{/sha}","git_commits_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/git/commits{/sha}","comments_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/comments{/number}","issue_comment_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/issues/comments{/number}","contents_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/contents/{+path}","compare_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/merges","archive_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/downloads","issues_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/issues{/number}","pulls_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/pulls{/number}","milestones_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/milestones{/number}","notifications_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/labels{/name}","releases_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/releases{/id}","deployments_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/deployments","created_at":"2013-02-09T03:44:54Z","updated_at":"2016-07-16T08:42:18Z","pushed_at":"2016-07-19T01:11:30Z","git_url":"git://github.com/UM-USElab/gradecraft-development.git","ssh_url":"git@github.com:UM-USElab/gradecraft-development.git","clone_url":"https://github.com/UM-USElab/gradecraft-development.git","svn_url":"https://github.com/UM-USElab/gradecraft-development","homepage":"","size":69469,"stargazers_count":29,"watchers_count":29,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":151,"forks":19,"open_issues":151,"watchers":29,"default_branch":"master"}},"base":{"label":"UM-USElab:master","ref":"master","sha":"6758106ce03863c05047f62f95612903d3a5c905","user":{"login":"UM-USElab","id":4459066,"avatar_url":"https://avatars.githubusercontent.com/u/4459066?v=3","gravatar_id":"","url":"https://api.github.com/users/UM-USElab","html_url":"https://github.com/UM-USElab","followers_url":"https://api.github.com/users/UM-USElab/followers","following_url":"https://api.github.com/users/UM-USElab/following{/other_user}","gists_url":"https://api.github.com/users/UM-USElab/gists{/gist_id}","starred_url":"https://api.github.com/users/UM-USElab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UM-USElab/subscriptions","organizations_url":"https://api.github.com/users/UM-USElab/orgs","repos_url":"https://api.github.com/users/UM-USElab/repos","events_url":"https://api.github.com/users/UM-USElab/events{/privacy}","received_events_url":"https://api.github.com/users/UM-USElab/received_events","type":"Organization","site_admin":false},"repo":{"id":8105769,"name":"gradecraft-development","full_name":"UM-USElab/gradecraft-development","owner":{"login":"UM-USElab","id":4459066,"avatar_url":"https://avatars.githubusercontent.com/u/4459066?v=3","gravatar_id":"","url":"https://api.github.com/users/UM-USElab","html_url":"https://github.com/UM-USElab","followers_url":"https://api.github.com/users/UM-USElab/followers","following_url":"https://api.github.com/users/UM-USElab/following{/other_user}","gists_url":"https://api.github.com/users/UM-USElab/gists{/gist_id}","starred_url":"https://api.github.com/users/UM-USElab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UM-USElab/subscriptions","organizations_url":"https://api.github.com/users/UM-USElab/orgs","repos_url":"https://api.github.com/users/UM-USElab/repos","events_url":"https://api.github.com/users/UM-USElab/events{/privacy}","received_events_url":"https://api.github.com/users/UM-USElab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UM-USElab/gradecraft-development","description":"GradeCraft is a gameful learning management system, intended to help motivate students to be more engaged in their own learning.","fork":false,"url":"https://api.github.com/repos/UM-USElab/gradecraft-development","forks_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/forks","keys_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/teams","hooks_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/hooks","issue_events_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/issues/events{/number}","events_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/events","assignees_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/assignees{/user}","branches_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/branches{/branch}","tags_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/tags","blobs_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/git/refs{/sha}","trees_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/statuses/{sha}","languages_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/languages","stargazers_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/stargazers","contributors_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/contributors","subscribers_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/subscribers","subscription_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/subscription","commits_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/commits{/sha}","git_commits_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/git/commits{/sha}","comments_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/comments{/number}","issue_comment_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/issues/comments{/number}","contents_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/contents/{+path}","compare_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/merges","archive_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/downloads","issues_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/issues{/number}","pulls_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/pulls{/number}","milestones_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/milestones{/number}","notifications_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/labels{/name}","releases_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/releases{/id}","deployments_url":"https://api.github.com/repos/UM-USElab/gradecraft-development/deployments","created_at":"2013-02-09T03:44:54Z","updated_at":"2016-07-16T08:42:18Z","pushed_at":"2016-07-19T01:11:30Z","git_url":"git://github.com/UM-USElab/gradecraft-development.git","ssh_url":"git@github.com:UM-USElab/gradecraft-development.git","clone_url":"https://github.com/UM-USElab/gradecraft-development.git","svn_url":"https://github.com/UM-USElab/gradecraft-development","homepage":"","size":69469,"stargazers_count":29,"watchers_count":29,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":151,"forks":19,"open_issues":151,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UM-USElab/gradecraft-development/pulls/2205"},"html":{"href":"https://github.com/UM-USElab/gradecraft-development/pull/2205"},"issue":{"href":"https://api.github.com/repos/UM-USElab/gradecraft-development/issues/2205"},"comments":{"href":"https://api.github.com/repos/UM-USElab/gradecraft-development/issues/2205/comments"},"review_comments":{"href":"https://api.github.com/repos/UM-USElab/gradecraft-development/pulls/2205/comments"},"review_comment":{"href":"https://api.github.com/repos/UM-USElab/gradecraft-development/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UM-USElab/gradecraft-development/pulls/2205/commits"},"statuses":{"href":"https://api.github.com/repos/UM-USElab/gradecraft-development/statuses/3dcf003974f764a925a6ad78e544bfb86f880eca"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"chcholman","id":234276,"avatar_url":"https://avatars.githubusercontent.com/u/234276?v=3","gravatar_id":"","url":"https://api.github.com/users/chcholman","html_url":"https://github.com/chcholman","followers_url":"https://api.github.com/users/chcholman/followers","following_url":"https://api.github.com/users/chcholman/following{/other_user}","gists_url":"https://api.github.com/users/chcholman/gists{/gist_id}","starred_url":"https://api.github.com/users/chcholman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chcholman/subscriptions","organizations_url":"https://api.github.com/users/chcholman/orgs","repos_url":"https://api.github.com/users/chcholman/repos","events_url":"https://api.github.com/users/chcholman/events{/privacy}","received_events_url":"https://api.github.com/users/chcholman/received_events","type":"User","site_admin":false},"comments":3,"review_comments":12,"commits":29,"additions":633,"deletions":86,"changed_files":28}}
{"actor":{"display_login":"chcholman"}}