{"action":"created","comment":{"url":"https://api.github.com/repos/openstax/biglearn-api/pulls/comments/82032997","pull_request_review_id":2968092,"id":82032997,"diff_hunk":"@@ -0,0 +1,82 @@\n+require 'rails_helper'\n+\n+RSpec.describe Services::CreateCourse::Service do\n+  let(:service) { Services::CreateCourse::Service.new }\n+  let(:action) { process }\n+\n+  def process\n+    service.process(course_uuid: given_course_uuid, ecosystem_uuid: given_ecosystem_uuid)\n+  end\n+\n+  context \"when non-existing ecosystem is given\" do\n+    let(:given_course_uuid) { SecureRandom.uuid.to_s }\n+    let(:given_ecosystem_uuid) { SecureRandom.uuid.to_s }\n+\n+    let!(:split_time) { time = Time.now; sleep(0.001); time }\n+\n+    it \"raises error\" do\n+      expect{action}.to raise_error(Errors::AppUnprocessableError)\n+    end\n+  end\n+\n+  context \"when existing ecosystem is given\" do\n+\n+    ecosystem_uuid = SecureRandom.uuid.to_s\n+    course_uuid = SecureRandom.uuid.to_s\n+\n+    let(:given_course_uuid) { course_uuid }\n+    let(:given_ecosystem_uuid) { ecosystem_uuid }\n+\n+    let!(:split_time) { time = Time.now; sleep(0.001); time }","path":"spec/app/domain/services/create_course/service_spec.rb","position":30,"original_position":30,"commit_id":"9f9da57ba471c0fd94e93361fe90f60ff9c2ad60","original_commit_id":"9f9da57ba471c0fd94e93361fe90f60ff9c2ad60","user":{"login":"kevinburleigh75","id":1851667,"avatar_url":"https://avatars.githubusercontent.com/u/1851667?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinburleigh75","html_url":"https://github.com/kevinburleigh75","followers_url":"https://api.github.com/users/kevinburleigh75/followers","following_url":"https://api.github.com/users/kevinburleigh75/following{/other_user}","gists_url":"https://api.github.com/users/kevinburleigh75/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinburleigh75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinburleigh75/subscriptions","organizations_url":"https://api.github.com/users/kevinburleigh75/orgs","repos_url":"https://api.github.com/users/kevinburleigh75/repos","events_url":"https://api.github.com/users/kevinburleigh75/events{/privacy}","received_events_url":"https://api.github.com/users/kevinburleigh75/received_events","type":"User","site_admin":false},"body":"It turns out that this will not be needed.  See below.","created_at":"2016-10-05T18:00:06Z","updated_at":"2016-10-05T18:00:06Z","html_url":"https://github.com/openstax/biglearn-api/pull/23#discussion_r82032997","pull_request_url":"https://api.github.com/repos/openstax/biglearn-api/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/openstax/biglearn-api/pulls/comments/82032997"},"html":{"href":"https://github.com/openstax/biglearn-api/pull/23#discussion_r82032997"},"pull_request":{"href":"https://api.github.com/repos/openstax/biglearn-api/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/openstax/biglearn-api/pulls/23","id":87739284,"html_url":"https://github.com/openstax/biglearn-api/pull/23","diff_url":"https://github.com/openstax/biglearn-api/pull/23.diff","patch_url":"https://github.com/openstax/biglearn-api/pull/23.patch","issue_url":"https://api.github.com/repos/openstax/biglearn-api/issues/23","number":23,"state":"open","locked":false,"title":"Add endpoint course","user":{"login":"pandafulmanda","id":2483873,"avatar_url":"https://avatars.githubusercontent.com/u/2483873?v=3","gravatar_id":"","url":"https://api.github.com/users/pandafulmanda","html_url":"https://github.com/pandafulmanda","followers_url":"https://api.github.com/users/pandafulmanda/followers","following_url":"https://api.github.com/users/pandafulmanda/following{/other_user}","gists_url":"https://api.github.com/users/pandafulmanda/gists{/gist_id}","starred_url":"https://api.github.com/users/pandafulmanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandafulmanda/subscriptions","organizations_url":"https://api.github.com/users/pandafulmanda/orgs","repos_url":"https://api.github.com/users/pandafulmanda/repos","events_url":"https://api.github.com/users/pandafulmanda/events{/privacy}","received_events_url":"https://api.github.com/users/pandafulmanda/received_events","type":"User","site_admin":false},"body":"## [create course](https://github.com/openstax/napkin-notes/blob/master/kevin/biglearn_tasks/160929_create_course_endpoint.md)\r\n- [x] service\r\n- [x] spec\r\n- [x] controller\r\n- [x] controller spec\r\n- [x] initial ecosystem model\r\n- [x] course model","created_at":"2016-10-03T15:39:50Z","updated_at":"2016-10-05T18:09:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61e9bf1e41c4aa30010079d171abb4700c875480","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openstax/biglearn-api/pulls/23/commits","review_comments_url":"https://api.github.com/repos/openstax/biglearn-api/pulls/23/comments","review_comment_url":"https://api.github.com/repos/openstax/biglearn-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openstax/biglearn-api/issues/23/comments","statuses_url":"https://api.github.com/repos/openstax/biglearn-api/statuses/9f9da57ba471c0fd94e93361fe90f60ff9c2ad60","head":{"label":"openstax:add-endpoint-course","ref":"add-endpoint-course","sha":"9f9da57ba471c0fd94e93361fe90f60ff9c2ad60","user":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"repo":{"id":57904670,"name":"biglearn-api","full_name":"openstax/biglearn-api","owner":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openstax/biglearn-api","description":"","fork":false,"url":"https://api.github.com/repos/openstax/biglearn-api","forks_url":"https://api.github.com/repos/openstax/biglearn-api/forks","keys_url":"https://api.github.com/repos/openstax/biglearn-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openstax/biglearn-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openstax/biglearn-api/teams","hooks_url":"https://api.github.com/repos/openstax/biglearn-api/hooks","issue_events_url":"https://api.github.com/repos/openstax/biglearn-api/issues/events{/number}","events_url":"https://api.github.com/repos/openstax/biglearn-api/events","assignees_url":"https://api.github.com/repos/openstax/biglearn-api/assignees{/user}","branches_url":"https://api.github.com/repos/openstax/biglearn-api/branches{/branch}","tags_url":"https://api.github.com/repos/openstax/biglearn-api/tags","blobs_url":"https://api.github.com/repos/openstax/biglearn-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openstax/biglearn-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openstax/biglearn-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/openstax/biglearn-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openstax/biglearn-api/statuses/{sha}","languages_url":"https://api.github.com/repos/openstax/biglearn-api/languages","stargazers_url":"https://api.github.com/repos/openstax/biglearn-api/stargazers","contributors_url":"https://api.github.com/repos/openstax/biglearn-api/contributors","subscribers_url":"https://api.github.com/repos/openstax/biglearn-api/subscribers","subscription_url":"https://api.github.com/repos/openstax/biglearn-api/subscription","commits_url":"https://api.github.com/repos/openstax/biglearn-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/openstax/biglearn-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/openstax/biglearn-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/openstax/biglearn-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/openstax/biglearn-api/contents/{+path}","compare_url":"https://api.github.com/repos/openstax/biglearn-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openstax/biglearn-api/merges","archive_url":"https://api.github.com/repos/openstax/biglearn-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openstax/biglearn-api/downloads","issues_url":"https://api.github.com/repos/openstax/biglearn-api/issues{/number}","pulls_url":"https://api.github.com/repos/openstax/biglearn-api/pulls{/number}","milestones_url":"https://api.github.com/repos/openstax/biglearn-api/milestones{/number}","notifications_url":"https://api.github.com/repos/openstax/biglearn-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openstax/biglearn-api/labels{/name}","releases_url":"https://api.github.com/repos/openstax/biglearn-api/releases{/id}","deployments_url":"https://api.github.com/repos/openstax/biglearn-api/deployments","created_at":"2016-05-02T16:41:30Z","updated_at":"2016-05-02T17:12:16Z","pushed_at":"2016-10-03T22:35:13Z","git_url":"git://github.com/openstax/biglearn-api.git","ssh_url":"git@github.com:openstax/biglearn-api.git","clone_url":"https://github.com/openstax/biglearn-api.git","svn_url":"https://github.com/openstax/biglearn-api","homepage":null,"size":207,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"openstax:master","ref":"master","sha":"53de0a68e2125481ef64359c4cdf7edde2cf47a3","user":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"repo":{"id":57904670,"name":"biglearn-api","full_name":"openstax/biglearn-api","owner":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openstax/biglearn-api","description":"","fork":false,"url":"https://api.github.com/repos/openstax/biglearn-api","forks_url":"https://api.github.com/repos/openstax/biglearn-api/forks","keys_url":"https://api.github.com/repos/openstax/biglearn-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openstax/biglearn-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openstax/biglearn-api/teams","hooks_url":"https://api.github.com/repos/openstax/biglearn-api/hooks","issue_events_url":"https://api.github.com/repos/openstax/biglearn-api/issues/events{/number}","events_url":"https://api.github.com/repos/openstax/biglearn-api/events","assignees_url":"https://api.github.com/repos/openstax/biglearn-api/assignees{/user}","branches_url":"https://api.github.com/repos/openstax/biglearn-api/branches{/branch}","tags_url":"https://api.github.com/repos/openstax/biglearn-api/tags","blobs_url":"https://api.github.com/repos/openstax/biglearn-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openstax/biglearn-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openstax/biglearn-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/openstax/biglearn-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openstax/biglearn-api/statuses/{sha}","languages_url":"https://api.github.com/repos/openstax/biglearn-api/languages","stargazers_url":"https://api.github.com/repos/openstax/biglearn-api/stargazers","contributors_url":"https://api.github.com/repos/openstax/biglearn-api/contributors","subscribers_url":"https://api.github.com/repos/openstax/biglearn-api/subscribers","subscription_url":"https://api.github.com/repos/openstax/biglearn-api/subscription","commits_url":"https://api.github.com/repos/openstax/biglearn-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/openstax/biglearn-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/openstax/biglearn-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/openstax/biglearn-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/openstax/biglearn-api/contents/{+path}","compare_url":"https://api.github.com/repos/openstax/biglearn-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openstax/biglearn-api/merges","archive_url":"https://api.github.com/repos/openstax/biglearn-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openstax/biglearn-api/downloads","issues_url":"https://api.github.com/repos/openstax/biglearn-api/issues{/number}","pulls_url":"https://api.github.com/repos/openstax/biglearn-api/pulls{/number}","milestones_url":"https://api.github.com/repos/openstax/biglearn-api/milestones{/number}","notifications_url":"https://api.github.com/repos/openstax/biglearn-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openstax/biglearn-api/labels{/name}","releases_url":"https://api.github.com/repos/openstax/biglearn-api/releases{/id}","deployments_url":"https://api.github.com/repos/openstax/biglearn-api/deployments","created_at":"2016-05-02T16:41:30Z","updated_at":"2016-05-02T17:12:16Z","pushed_at":"2016-10-03T22:35:13Z","git_url":"git://github.com/openstax/biglearn-api.git","ssh_url":"git@github.com:openstax/biglearn-api.git","clone_url":"https://github.com/openstax/biglearn-api.git","svn_url":"https://github.com/openstax/biglearn-api","homepage":null,"size":207,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openstax/biglearn-api/pulls/23"},"html":{"href":"https://github.com/openstax/biglearn-api/pull/23"},"issue":{"href":"https://api.github.com/repos/openstax/biglearn-api/issues/23"},"comments":{"href":"https://api.github.com/repos/openstax/biglearn-api/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/openstax/biglearn-api/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/openstax/biglearn-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openstax/biglearn-api/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/openstax/biglearn-api/statuses/9f9da57ba471c0fd94e93361fe90f60ff9c2ad60"}}}}
{"actor":{"display_login":"kevinburleigh75"}}