{"action":"created","comment":{"url":"https://api.github.com/repos/zooniverse/education-api/pulls/comments/130608345","pull_request_review_id":53501861,"id":130608345,"diff_hunk":"@@ -1,7 +1,7 @@\n module Assignments\n   class Create < Operation\n-    integer :base_project_id, default: Rails.application.secrets[\"zooniverse_project_id\"]","path":"app/operations/assignments/create.rb","position":3,"original_position":3,"commit_id":"935e4ccff3e355e93c3e31c841405b7f17cf0818","original_commit_id":"935e4ccff3e355e93c3e31c841405b7f17cf0818","user":{"login":"marten","id":277,"avatar_url":"https://avatars1.githubusercontent.com/u/277?v=4","gravatar_id":"","url":"https://api.github.com/users/marten","html_url":"https://github.com/marten","followers_url":"https://api.github.com/users/marten/followers","following_url":"https://api.github.com/users/marten/following{/other_user}","gists_url":"https://api.github.com/users/marten/gists{/gist_id}","starred_url":"https://api.github.com/users/marten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marten/subscriptions","organizations_url":"https://api.github.com/users/marten/orgs","repos_url":"https://api.github.com/users/marten/repos","events_url":"https://api.github.com/users/marten/events{/privacy}","received_events_url":"https://api.github.com/users/marten/received_events","type":"User","site_admin":false},"body":"Does this mean that API clients (i.e. the current Wildcam Labs frontend) need to pass these in? Or is that already being done? /cc @shaunanoordin ","created_at":"2017-08-01T13:36:40Z","updated_at":"2017-08-01T13:36:40Z","html_url":"https://github.com/zooniverse/education-api/pull/43#discussion_r130608345","pull_request_url":"https://api.github.com/repos/zooniverse/education-api/pulls/43","_links":{"self":{"href":"https://api.github.com/repos/zooniverse/education-api/pulls/comments/130608345"},"html":{"href":"https://github.com/zooniverse/education-api/pull/43#discussion_r130608345"},"pull_request":{"href":"https://api.github.com/repos/zooniverse/education-api/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/zooniverse/education-api/pulls/43","id":131844168,"html_url":"https://github.com/zooniverse/education-api/pull/43","diff_url":"https://github.com/zooniverse/education-api/pull/43.diff","patch_url":"https://github.com/zooniverse/education-api/pull/43.patch","issue_url":"https://api.github.com/repos/zooniverse/education-api/issues/43","number":43,"state":"open","locked":false,"title":"Projects and Assignment updates","user":{"login":"zwolf","id":374835,"avatar_url":"https://avatars2.githubusercontent.com/u/374835?v=4","gravatar_id":"","url":"https://api.github.com/users/zwolf","html_url":"https://github.com/zwolf","followers_url":"https://api.github.com/users/zwolf/followers","following_url":"https://api.github.com/users/zwolf/following{/other_user}","gists_url":"https://api.github.com/users/zwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/zwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zwolf/subscriptions","organizations_url":"https://api.github.com/users/zwolf/orgs","repos_url":"https://api.github.com/users/zwolf/repos","events_url":"https://api.github.com/users/zwolf/events{/privacy}","received_events_url":"https://api.github.com/users/zwolf/received_events","type":"User","site_admin":false},"body":"*Adds a Project model that allows differentiation between education projects that require custom workflows and subject sets and those that are static. \r\n*Adds controller/op for above, whereby you create a project with just a slug and the ID is grabbed from Panoptes to prevent incorrect pairings.\r\n*Updates the Assignments controller to check the project type and only clone workflows/populate new subject sets when necessary.\r\n\r\n@marten There are still a couple commented-out ProjectController specs that I couldn't figure out why were busted. They're supposed to work exactly like the AssignmentsController ones, but rspec wasn't matching anything I passed to the operation. Clearly it all still works as the response is correct, but this is probably worth a look. ActiveInteraction and rspec's matchers are a pretty gnarly pain to get to work together and there is probably a more clever way to test this that doesn't involve literal param matching, anyway.","created_at":"2017-07-21T19:37:16Z","updated_at":"2017-08-01T13:36:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f26d0c42ac6c22fa64949a9aafb232a728e97317","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/zooniverse/education-api/pulls/43/commits","review_comments_url":"https://api.github.com/repos/zooniverse/education-api/pulls/43/comments","review_comment_url":"https://api.github.com/repos/zooniverse/education-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zooniverse/education-api/issues/43/comments","statuses_url":"https://api.github.com/repos/zooniverse/education-api/statuses/935e4ccff3e355e93c3e31c841405b7f17cf0818","head":{"label":"zwolf:i2a","ref":"i2a","sha":"935e4ccff3e355e93c3e31c841405b7f17cf0818","user":{"login":"zwolf","id":374835,"avatar_url":"https://avatars2.githubusercontent.com/u/374835?v=4","gravatar_id":"","url":"https://api.github.com/users/zwolf","html_url":"https://github.com/zwolf","followers_url":"https://api.github.com/users/zwolf/followers","following_url":"https://api.github.com/users/zwolf/following{/other_user}","gists_url":"https://api.github.com/users/zwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/zwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zwolf/subscriptions","organizations_url":"https://api.github.com/users/zwolf/orgs","repos_url":"https://api.github.com/users/zwolf/repos","events_url":"https://api.github.com/users/zwolf/events{/privacy}","received_events_url":"https://api.github.com/users/zwolf/received_events","type":"User","site_admin":false},"repo":{"id":94372760,"name":"education-api","full_name":"zwolf/education-api","owner":{"login":"zwolf","id":374835,"avatar_url":"https://avatars2.githubusercontent.com/u/374835?v=4","gravatar_id":"","url":"https://api.github.com/users/zwolf","html_url":"https://github.com/zwolf","followers_url":"https://api.github.com/users/zwolf/followers","following_url":"https://api.github.com/users/zwolf/following{/other_user}","gists_url":"https://api.github.com/users/zwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/zwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zwolf/subscriptions","organizations_url":"https://api.github.com/users/zwolf/orgs","repos_url":"https://api.github.com/users/zwolf/repos","events_url":"https://api.github.com/users/zwolf/events{/privacy}","received_events_url":"https://api.github.com/users/zwolf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zwolf/education-api","description":"Backend for (at least) Wildcam Gorongosa educator portal","fork":true,"url":"https://api.github.com/repos/zwolf/education-api","forks_url":"https://api.github.com/repos/zwolf/education-api/forks","keys_url":"https://api.github.com/repos/zwolf/education-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zwolf/education-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zwolf/education-api/teams","hooks_url":"https://api.github.com/repos/zwolf/education-api/hooks","issue_events_url":"https://api.github.com/repos/zwolf/education-api/issues/events{/number}","events_url":"https://api.github.com/repos/zwolf/education-api/events","assignees_url":"https://api.github.com/repos/zwolf/education-api/assignees{/user}","branches_url":"https://api.github.com/repos/zwolf/education-api/branches{/branch}","tags_url":"https://api.github.com/repos/zwolf/education-api/tags","blobs_url":"https://api.github.com/repos/zwolf/education-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zwolf/education-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zwolf/education-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/zwolf/education-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zwolf/education-api/statuses/{sha}","languages_url":"https://api.github.com/repos/zwolf/education-api/languages","stargazers_url":"https://api.github.com/repos/zwolf/education-api/stargazers","contributors_url":"https://api.github.com/repos/zwolf/education-api/contributors","subscribers_url":"https://api.github.com/repos/zwolf/education-api/subscribers","subscription_url":"https://api.github.com/repos/zwolf/education-api/subscription","commits_url":"https://api.github.com/repos/zwolf/education-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/zwolf/education-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/zwolf/education-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/zwolf/education-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/zwolf/education-api/contents/{+path}","compare_url":"https://api.github.com/repos/zwolf/education-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zwolf/education-api/merges","archive_url":"https://api.github.com/repos/zwolf/education-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zwolf/education-api/downloads","issues_url":"https://api.github.com/repos/zwolf/education-api/issues{/number}","pulls_url":"https://api.github.com/repos/zwolf/education-api/pulls{/number}","milestones_url":"https://api.github.com/repos/zwolf/education-api/milestones{/number}","notifications_url":"https://api.github.com/repos/zwolf/education-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zwolf/education-api/labels{/name}","releases_url":"https://api.github.com/repos/zwolf/education-api/releases{/id}","deployments_url":"https://api.github.com/repos/zwolf/education-api/deployments","created_at":"2017-06-14T21:00:51Z","updated_at":"2017-06-14T21:00:53Z","pushed_at":"2017-07-21T19:48:25Z","git_url":"git://github.com/zwolf/education-api.git","ssh_url":"git@github.com:zwolf/education-api.git","clone_url":"https://github.com/zwolf/education-api.git","svn_url":"https://github.com/zwolf/education-api","homepage":"","size":250,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zooniverse:master","ref":"master","sha":"88a52a9df1bff31e1750fce72bfae2a7385bea71","user":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars2.githubusercontent.com/u/106856?v=4","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"repo":{"id":49882447,"name":"education-api","full_name":"zooniverse/education-api","owner":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars2.githubusercontent.com/u/106856?v=4","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zooniverse/education-api","description":"Backend for (at least) Wildcam Gorongosa educator portal","fork":false,"url":"https://api.github.com/repos/zooniverse/education-api","forks_url":"https://api.github.com/repos/zooniverse/education-api/forks","keys_url":"https://api.github.com/repos/zooniverse/education-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zooniverse/education-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zooniverse/education-api/teams","hooks_url":"https://api.github.com/repos/zooniverse/education-api/hooks","issue_events_url":"https://api.github.com/repos/zooniverse/education-api/issues/events{/number}","events_url":"https://api.github.com/repos/zooniverse/education-api/events","assignees_url":"https://api.github.com/repos/zooniverse/education-api/assignees{/user}","branches_url":"https://api.github.com/repos/zooniverse/education-api/branches{/branch}","tags_url":"https://api.github.com/repos/zooniverse/education-api/tags","blobs_url":"https://api.github.com/repos/zooniverse/education-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zooniverse/education-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zooniverse/education-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/zooniverse/education-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zooniverse/education-api/statuses/{sha}","languages_url":"https://api.github.com/repos/zooniverse/education-api/languages","stargazers_url":"https://api.github.com/repos/zooniverse/education-api/stargazers","contributors_url":"https://api.github.com/repos/zooniverse/education-api/contributors","subscribers_url":"https://api.github.com/repos/zooniverse/education-api/subscribers","subscription_url":"https://api.github.com/repos/zooniverse/education-api/subscription","commits_url":"https://api.github.com/repos/zooniverse/education-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/zooniverse/education-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/zooniverse/education-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/zooniverse/education-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/zooniverse/education-api/contents/{+path}","compare_url":"https://api.github.com/repos/zooniverse/education-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zooniverse/education-api/merges","archive_url":"https://api.github.com/repos/zooniverse/education-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zooniverse/education-api/downloads","issues_url":"https://api.github.com/repos/zooniverse/education-api/issues{/number}","pulls_url":"https://api.github.com/repos/zooniverse/education-api/pulls{/number}","milestones_url":"https://api.github.com/repos/zooniverse/education-api/milestones{/number}","notifications_url":"https://api.github.com/repos/zooniverse/education-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zooniverse/education-api/labels{/name}","releases_url":"https://api.github.com/repos/zooniverse/education-api/releases{/id}","deployments_url":"https://api.github.com/repos/zooniverse/education-api/deployments","created_at":"2016-01-18T14:35:56Z","updated_at":"2017-06-20T17:07:03Z","pushed_at":"2017-08-01T13:32:45Z","git_url":"git://github.com/zooniverse/education-api.git","ssh_url":"git@github.com:zooniverse/education-api.git","clone_url":"https://github.com/zooniverse/education-api.git","svn_url":"https://github.com/zooniverse/education-api","homepage":"","size":246,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zooniverse/education-api/pulls/43"},"html":{"href":"https://github.com/zooniverse/education-api/pull/43"},"issue":{"href":"https://api.github.com/repos/zooniverse/education-api/issues/43"},"comments":{"href":"https://api.github.com/repos/zooniverse/education-api/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/zooniverse/education-api/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/zooniverse/education-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zooniverse/education-api/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/zooniverse/education-api/statuses/935e4ccff3e355e93c3e31c841405b7f17cf0818"}}}}
{"actor":{"display_login":"marten"}}