{"action":"created","comment":{"url":"https://api.github.com/repos/NDLANO/Learningpath-API/pulls/comments/76371733","id":76371733,"diff_hunk":"@@ -50,6 +49,7 @@ class UpdateServiceTest extends UnitSuite with UnitTestEnvironment {\n   val PRIVATE_LEARNINGPATH = domain.LearningPath(Some(PRIVATE_ID), Some(1), None, None, List(Title(\"Tittel\", Some(\"nb\"))), List(Description(\"Beskrivelse\", Some(\"nb\"))), None, Some(1), domain.LearningPathStatus.PRIVATE, LearningPathVerificationStatus.EXTERNAL, new Date(), List(), PRIVATE_OWNER, copyright, STEP1 :: STEP2 :: STEP3 :: STEP4 :: STEP5 :: STEP6 :: Nil)\n   val NEW_PRIVATE_LEARNINGPATH = NewLearningPath(List(api.Title(\"Tittel\", Some(\"nb\"))), List(api.Description(\"Beskrivelse\", Some(\"nb\"))), None, Some(1), List(), apiCopyright)\n   val NEW_PUBLISHED_LEARNINGPATH = NewLearningPath(List(), List(), None, Some(1), List(), apiCopyright)\n+  val NEW_COPY_LEARNINGPATH = NewCopyLearningPath(List(api.Title(\"Tittel\", Some(\"nb\"))), List(api.Description(\"Beskrivelse\", Some(\"nb\"))), None, Some(1), List(), None)","path":"src/test/scala/no/ndla/learningpathapi/service/UpdateServiceTest.scala","position":15,"original_position":15,"commit_id":"8713f4f6fbbe07161db9401c918c2116bdbb5c61","original_commit_id":"8713f4f6fbbe07161db9401c918c2116bdbb5c61","user":{"login":"runesto","id":24646,"avatar_url":"https://avatars.githubusercontent.com/u/24646?v=3","gravatar_id":"","url":"https://api.github.com/users/runesto","html_url":"https://github.com/runesto","followers_url":"https://api.github.com/users/runesto/followers","following_url":"https://api.github.com/users/runesto/following{/other_user}","gists_url":"https://api.github.com/users/runesto/gists{/gist_id}","starred_url":"https://api.github.com/users/runesto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runesto/subscriptions","organizations_url":"https://api.github.com/users/runesto/orgs","repos_url":"https://api.github.com/users/runesto/repos","events_url":"https://api.github.com/users/runesto/events{/privacy}","received_events_url":"https://api.github.com/users/runesto/received_events","type":"User","site_admin":false},"body":"\"NEW_COPY_...\" er litt rart. Hva med \"NEW_COPIED_...\"?","created_at":"2016-08-26T06:53:52Z","updated_at":"2016-08-26T06:53:52Z","html_url":"https://github.com/NDLANO/Learningpath-API/pull/1#discussion_r76371733","pull_request_url":"https://api.github.com/repos/NDLANO/Learningpath-API/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/NDLANO/Learningpath-API/pulls/comments/76371733"},"html":{"href":"https://github.com/NDLANO/Learningpath-API/pull/1#discussion_r76371733"},"pull_request":{"href":"https://api.github.com/repos/NDLANO/Learningpath-API/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/NDLANO/Learningpath-API/pulls/1","id":82760373,"html_url":"https://github.com/NDLANO/Learningpath-API/pull/1","diff_url":"https://github.com/NDLANO/Learningpath-API/pull/1.diff","patch_url":"https://github.com/NDLANO/Learningpath-API/pull/1.patch","issue_url":"https://api.github.com/repos/NDLANO/Learningpath-API/issues/1","number":1,"state":"open","locked":false,"title":"NDLA-416: Added new endpoint for copying a learningpath","user":{"login":"narhen","id":1045380,"avatar_url":"https://avatars.githubusercontent.com/u/1045380?v=3","gravatar_id":"","url":"https://api.github.com/users/narhen","html_url":"https://github.com/narhen","followers_url":"https://api.github.com/users/narhen/followers","following_url":"https://api.github.com/users/narhen/following{/other_user}","gists_url":"https://api.github.com/users/narhen/gists{/gist_id}","starred_url":"https://api.github.com/users/narhen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narhen/subscriptions","organizations_url":"https://api.github.com/users/narhen/orgs","repos_url":"https://api.github.com/users/narhen/repos","events_url":"https://api.github.com/users/narhen/events{/privacy}","received_events_url":"https://api.github.com/users/narhen/received_events","type":"User","site_admin":false},"body":"Samme API endepunkt ble tidligere brukt for å både oprette en ny læringssti og kopiere en læringssti. Problemet oppstår når Copyright må være spesifisert for dette endepunktet. Når en helt ny læringssti oprettes skal copyright spesifiseres, mens det skal ikke behøve å være spesifisert når man kopierer; da kan copyright feltet fra stien man kopierer brukes.\r\n\r\nDerfor foreslår jeg at kopi-funksjonaliteten flyttes fra \"oprett ny sti\" endepunktet til et eget \"kopi sti\" endepunkt.","created_at":"2016-08-25T17:28:08Z","updated_at":"2016-08-26T06:53:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8c33088b7f0efe21ce690f30d87e909661c7c01","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NDLANO/Learningpath-API/pulls/1/commits","review_comments_url":"https://api.github.com/repos/NDLANO/Learningpath-API/pulls/1/comments","review_comment_url":"https://api.github.com/repos/NDLANO/Learningpath-API/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NDLANO/Learningpath-API/issues/1/comments","statuses_url":"https://api.github.com/repos/NDLANO/Learningpath-API/statuses/8713f4f6fbbe07161db9401c918c2116bdbb5c61","head":{"label":"NDLANO:NDLA-416","ref":"NDLA-416","sha":"8713f4f6fbbe07161db9401c918c2116bdbb5c61","user":{"login":"NDLANO","id":20052513,"avatar_url":"https://avatars.githubusercontent.com/u/20052513?v=3","gravatar_id":"","url":"https://api.github.com/users/NDLANO","html_url":"https://github.com/NDLANO","followers_url":"https://api.github.com/users/NDLANO/followers","following_url":"https://api.github.com/users/NDLANO/following{/other_user}","gists_url":"https://api.github.com/users/NDLANO/gists{/gist_id}","starred_url":"https://api.github.com/users/NDLANO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NDLANO/subscriptions","organizations_url":"https://api.github.com/users/NDLANO/orgs","repos_url":"https://api.github.com/users/NDLANO/repos","events_url":"https://api.github.com/users/NDLANO/events{/privacy}","received_events_url":"https://api.github.com/users/NDLANO/received_events","type":"Organization","site_admin":false},"repo":{"id":65469147,"name":"Learningpath-API","full_name":"NDLANO/Learningpath-API","owner":{"login":"NDLANO","id":20052513,"avatar_url":"https://avatars.githubusercontent.com/u/20052513?v=3","gravatar_id":"","url":"https://api.github.com/users/NDLANO","html_url":"https://github.com/NDLANO","followers_url":"https://api.github.com/users/NDLANO/followers","following_url":"https://api.github.com/users/NDLANO/following{/other_user}","gists_url":"https://api.github.com/users/NDLANO/gists{/gist_id}","starred_url":"https://api.github.com/users/NDLANO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NDLANO/subscriptions","organizations_url":"https://api.github.com/users/NDLANO/orgs","repos_url":"https://api.github.com/users/NDLANO/repos","events_url":"https://api.github.com/users/NDLANO/events{/privacy}","received_events_url":"https://api.github.com/users/NDLANO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NDLANO/Learningpath-API","description":"API for Learningpaths from NDLA","fork":false,"url":"https://api.github.com/repos/NDLANO/Learningpath-API","forks_url":"https://api.github.com/repos/NDLANO/Learningpath-API/forks","keys_url":"https://api.github.com/repos/NDLANO/Learningpath-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NDLANO/Learningpath-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NDLANO/Learningpath-API/teams","hooks_url":"https://api.github.com/repos/NDLANO/Learningpath-API/hooks","issue_events_url":"https://api.github.com/repos/NDLANO/Learningpath-API/issues/events{/number}","events_url":"https://api.github.com/repos/NDLANO/Learningpath-API/events","assignees_url":"https://api.github.com/repos/NDLANO/Learningpath-API/assignees{/user}","branches_url":"https://api.github.com/repos/NDLANO/Learningpath-API/branches{/branch}","tags_url":"https://api.github.com/repos/NDLANO/Learningpath-API/tags","blobs_url":"https://api.github.com/repos/NDLANO/Learningpath-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NDLANO/Learningpath-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NDLANO/Learningpath-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/NDLANO/Learningpath-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NDLANO/Learningpath-API/statuses/{sha}","languages_url":"https://api.github.com/repos/NDLANO/Learningpath-API/languages","stargazers_url":"https://api.github.com/repos/NDLANO/Learningpath-API/stargazers","contributors_url":"https://api.github.com/repos/NDLANO/Learningpath-API/contributors","subscribers_url":"https://api.github.com/repos/NDLANO/Learningpath-API/subscribers","subscription_url":"https://api.github.com/repos/NDLANO/Learningpath-API/subscription","commits_url":"https://api.github.com/repos/NDLANO/Learningpath-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/NDLANO/Learningpath-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/NDLANO/Learningpath-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/NDLANO/Learningpath-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/NDLANO/Learningpath-API/contents/{+path}","compare_url":"https://api.github.com/repos/NDLANO/Learningpath-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NDLANO/Learningpath-API/merges","archive_url":"https://api.github.com/repos/NDLANO/Learningpath-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NDLANO/Learningpath-API/downloads","issues_url":"https://api.github.com/repos/NDLANO/Learningpath-API/issues{/number}","pulls_url":"https://api.github.com/repos/NDLANO/Learningpath-API/pulls{/number}","milestones_url":"https://api.github.com/repos/NDLANO/Learningpath-API/milestones{/number}","notifications_url":"https://api.github.com/repos/NDLANO/Learningpath-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NDLANO/Learningpath-API/labels{/name}","releases_url":"https://api.github.com/repos/NDLANO/Learningpath-API/releases{/id}","deployments_url":"https://api.github.com/repos/NDLANO/Learningpath-API/deployments","created_at":"2016-08-11T12:52:54Z","updated_at":"2016-08-12T14:19:00Z","pushed_at":"2016-08-25T17:28:08Z","git_url":"git://github.com/NDLANO/Learningpath-API.git","ssh_url":"git@github.com:NDLANO/Learningpath-API.git","clone_url":"https://github.com/NDLANO/Learningpath-API.git","svn_url":"https://github.com/NDLANO/Learningpath-API","homepage":null,"size":513,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"NDLANO:master","ref":"master","sha":"af0581f7b9224f0b61ae609d3c1abe119ea1ba46","user":{"login":"NDLANO","id":20052513,"avatar_url":"https://avatars.githubusercontent.com/u/20052513?v=3","gravatar_id":"","url":"https://api.github.com/users/NDLANO","html_url":"https://github.com/NDLANO","followers_url":"https://api.github.com/users/NDLANO/followers","following_url":"https://api.github.com/users/NDLANO/following{/other_user}","gists_url":"https://api.github.com/users/NDLANO/gists{/gist_id}","starred_url":"https://api.github.com/users/NDLANO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NDLANO/subscriptions","organizations_url":"https://api.github.com/users/NDLANO/orgs","repos_url":"https://api.github.com/users/NDLANO/repos","events_url":"https://api.github.com/users/NDLANO/events{/privacy}","received_events_url":"https://api.github.com/users/NDLANO/received_events","type":"Organization","site_admin":false},"repo":{"id":65469147,"name":"Learningpath-API","full_name":"NDLANO/Learningpath-API","owner":{"login":"NDLANO","id":20052513,"avatar_url":"https://avatars.githubusercontent.com/u/20052513?v=3","gravatar_id":"","url":"https://api.github.com/users/NDLANO","html_url":"https://github.com/NDLANO","followers_url":"https://api.github.com/users/NDLANO/followers","following_url":"https://api.github.com/users/NDLANO/following{/other_user}","gists_url":"https://api.github.com/users/NDLANO/gists{/gist_id}","starred_url":"https://api.github.com/users/NDLANO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NDLANO/subscriptions","organizations_url":"https://api.github.com/users/NDLANO/orgs","repos_url":"https://api.github.com/users/NDLANO/repos","events_url":"https://api.github.com/users/NDLANO/events{/privacy}","received_events_url":"https://api.github.com/users/NDLANO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NDLANO/Learningpath-API","description":"API for Learningpaths from NDLA","fork":false,"url":"https://api.github.com/repos/NDLANO/Learningpath-API","forks_url":"https://api.github.com/repos/NDLANO/Learningpath-API/forks","keys_url":"https://api.github.com/repos/NDLANO/Learningpath-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NDLANO/Learningpath-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NDLANO/Learningpath-API/teams","hooks_url":"https://api.github.com/repos/NDLANO/Learningpath-API/hooks","issue_events_url":"https://api.github.com/repos/NDLANO/Learningpath-API/issues/events{/number}","events_url":"https://api.github.com/repos/NDLANO/Learningpath-API/events","assignees_url":"https://api.github.com/repos/NDLANO/Learningpath-API/assignees{/user}","branches_url":"https://api.github.com/repos/NDLANO/Learningpath-API/branches{/branch}","tags_url":"https://api.github.com/repos/NDLANO/Learningpath-API/tags","blobs_url":"https://api.github.com/repos/NDLANO/Learningpath-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NDLANO/Learningpath-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NDLANO/Learningpath-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/NDLANO/Learningpath-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NDLANO/Learningpath-API/statuses/{sha}","languages_url":"https://api.github.com/repos/NDLANO/Learningpath-API/languages","stargazers_url":"https://api.github.com/repos/NDLANO/Learningpath-API/stargazers","contributors_url":"https://api.github.com/repos/NDLANO/Learningpath-API/contributors","subscribers_url":"https://api.github.com/repos/NDLANO/Learningpath-API/subscribers","subscription_url":"https://api.github.com/repos/NDLANO/Learningpath-API/subscription","commits_url":"https://api.github.com/repos/NDLANO/Learningpath-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/NDLANO/Learningpath-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/NDLANO/Learningpath-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/NDLANO/Learningpath-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/NDLANO/Learningpath-API/contents/{+path}","compare_url":"https://api.github.com/repos/NDLANO/Learningpath-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NDLANO/Learningpath-API/merges","archive_url":"https://api.github.com/repos/NDLANO/Learningpath-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NDLANO/Learningpath-API/downloads","issues_url":"https://api.github.com/repos/NDLANO/Learningpath-API/issues{/number}","pulls_url":"https://api.github.com/repos/NDLANO/Learningpath-API/pulls{/number}","milestones_url":"https://api.github.com/repos/NDLANO/Learningpath-API/milestones{/number}","notifications_url":"https://api.github.com/repos/NDLANO/Learningpath-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NDLANO/Learningpath-API/labels{/name}","releases_url":"https://api.github.com/repos/NDLANO/Learningpath-API/releases{/id}","deployments_url":"https://api.github.com/repos/NDLANO/Learningpath-API/deployments","created_at":"2016-08-11T12:52:54Z","updated_at":"2016-08-12T14:19:00Z","pushed_at":"2016-08-25T17:28:08Z","git_url":"git://github.com/NDLANO/Learningpath-API.git","ssh_url":"git@github.com:NDLANO/Learningpath-API.git","clone_url":"https://github.com/NDLANO/Learningpath-API.git","svn_url":"https://github.com/NDLANO/Learningpath-API","homepage":null,"size":513,"stargazers_count":0,"watchers_count":0,"language":"Scala","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/NDLANO/Learningpath-API/pulls/1"},"html":{"href":"https://github.com/NDLANO/Learningpath-API/pull/1"},"issue":{"href":"https://api.github.com/repos/NDLANO/Learningpath-API/issues/1"},"comments":{"href":"https://api.github.com/repos/NDLANO/Learningpath-API/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/NDLANO/Learningpath-API/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/NDLANO/Learningpath-API/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NDLANO/Learningpath-API/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/NDLANO/Learningpath-API/statuses/8713f4f6fbbe07161db9401c918c2116bdbb5c61"}}}}
{"actor":{"display_login":"runesto"}}