{"action":"created","comment":{"url":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments/26437066","id":26437066,"diff_hunk":"@@ -0,0 +1,147 @@\n+class Api::V1::ImportController < Api::V1::BaseController\n+  respond_to :json\n+\n+  # Imports multiple works with their meta from external URLs\n+  # Params:\n+  # +params+:: a JSON object containing the login of an archivist and an array of works\n+  def create","path":"app/controllers/api/v1/import_controller.rb","position":7,"original_position":7,"commit_id":"958373668903c282717dcc902fe28204f37f6268","original_commit_id":"958373668903c282717dcc902fe28204f37f6268","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Assignment Branch Condition size for create is too high. [17/15]","created_at":"2015-03-14T10:57:22Z","updated_at":"2015-03-14T10:57:22Z","html_url":"https://github.com/otwcode/otwarchive/pull/2022#discussion_r26437066","pull_request_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/2022","_links":{"self":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments/26437066"},"html":{"href":"https://github.com/otwcode/otwarchive/pull/2022#discussion_r26437066"},"pull_request":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/2022"}}},"pull_request":{"url":"https://api.github.com/repos/otwcode/otwarchive/pulls/2022","id":28864706,"html_url":"https://github.com/otwcode/otwarchive/pull/2022","diff_url":"https://github.com/otwcode/otwarchive/pull/2022.diff","patch_url":"https://github.com/otwcode/otwarchive/pull/2022.patch","issue_url":"https://api.github.com/repos/otwcode/otwarchive/issues/2022","number":2022,"state":"open","locked":false,"title":"4232 - Add API end-point to enable mass importing for Open Doors","user":{"login":"ariana-paris","id":1660785,"avatar_url":"https://avatars.githubusercontent.com/u/1660785?v=3","gravatar_id":"","url":"https://api.github.com/users/ariana-paris","html_url":"https://github.com/ariana-paris","followers_url":"https://api.github.com/users/ariana-paris/followers","following_url":"https://api.github.com/users/ariana-paris/following{/other_user}","gists_url":"https://api.github.com/users/ariana-paris/gists{/gist_id}","starred_url":"https://api.github.com/users/ariana-paris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariana-paris/subscriptions","organizations_url":"https://api.github.com/users/ariana-paris/orgs","repos_url":"https://api.github.com/users/ariana-paris/repos","events_url":"https://api.github.com/users/ariana-paris/events{/privacy}","received_events_url":"https://api.github.com/users/ariana-paris/received_events","type":"User","site_admin":false},"body":"https://code.google.com/p/otwarchive/issues/detail?id=4232\r\n\r\n- Token-authenticated API controller\r\n- Import controller to enable batch imports using the existing StoryParser\r\n- New options in Admin area to generate and remove API tokens\r\n- RSpec test to check return codes","created_at":"2015-02-07T14:17:51Z","updated_at":"2015-03-14T10:57:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6c9f20579280081b99535b893732a92b277d16c","assignee":{"login":"shalott","id":415001,"avatar_url":"https://avatars.githubusercontent.com/u/415001?v=3","gravatar_id":"","url":"https://api.github.com/users/shalott","html_url":"https://github.com/shalott","followers_url":"https://api.github.com/users/shalott/followers","following_url":"https://api.github.com/users/shalott/following{/other_user}","gists_url":"https://api.github.com/users/shalott/gists{/gist_id}","starred_url":"https://api.github.com/users/shalott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shalott/subscriptions","organizations_url":"https://api.github.com/users/shalott/orgs","repos_url":"https://api.github.com/users/shalott/repos","events_url":"https://api.github.com/users/shalott/events{/privacy}","received_events_url":"https://api.github.com/users/shalott/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/otwcode/otwarchive/milestones/5","html_url":"https://github.com/otwcode/otwarchive/milestones/0.9.53:%20Importing","labels_url":"https://api.github.com/repos/otwcode/otwarchive/milestones/5/labels","id":1011141,"number":5,"title":"0.9.53: Importing","description":"0.9.53 will be Ariana's Open Doors issues, to be deployed after Lady Oscar returns on March 8\r\n\r\n* Mass Import API - [Issue 4232](https://code.google.com/p/otwarchive/issues/detail?id=4232)\r\n* Fix Non-Canonical Warnings - [Issue 3732](https://code.google.com/p/otwarchive/issues/detail?id=3732)\r\n* Enable Importing to a Collection for Open Doors - [Issue 4240](https://code.google.com/p/otwarchive/issues/detail?id=4240)","creator":{"login":"sarken","id":907055,"avatar_url":"https://avatars.githubusercontent.com/u/907055?v=3","gravatar_id":"","url":"https://api.github.com/users/sarken","html_url":"https://github.com/sarken","followers_url":"https://api.github.com/users/sarken/followers","following_url":"https://api.github.com/users/sarken/following{/other_user}","gists_url":"https://api.github.com/users/sarken/gists{/gist_id}","starred_url":"https://api.github.com/users/sarken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarken/subscriptions","organizations_url":"https://api.github.com/users/sarken/orgs","repos_url":"https://api.github.com/users/sarken/repos","events_url":"https://api.github.com/users/sarken/events{/privacy}","received_events_url":"https://api.github.com/users/sarken/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2015-03-08T10:09:50Z","updated_at":"2015-03-08T10:12:50Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/2022/commits","review_comments_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/2022/comments","review_comment_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments{/number}","comments_url":"https://api.github.com/repos/otwcode/otwarchive/issues/2022/comments","statuses_url":"https://api.github.com/repos/otwcode/otwarchive/statuses/958373668903c282717dcc902fe28204f37f6268","head":{"label":"ariana-paris:4232-mass-import","ref":"4232-mass-import","sha":"958373668903c282717dcc902fe28204f37f6268","user":{"login":"ariana-paris","id":1660785,"avatar_url":"https://avatars.githubusercontent.com/u/1660785?v=3","gravatar_id":"","url":"https://api.github.com/users/ariana-paris","html_url":"https://github.com/ariana-paris","followers_url":"https://api.github.com/users/ariana-paris/followers","following_url":"https://api.github.com/users/ariana-paris/following{/other_user}","gists_url":"https://api.github.com/users/ariana-paris/gists{/gist_id}","starred_url":"https://api.github.com/users/ariana-paris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariana-paris/subscriptions","organizations_url":"https://api.github.com/users/ariana-paris/orgs","repos_url":"https://api.github.com/users/ariana-paris/repos","events_url":"https://api.github.com/users/ariana-paris/events{/privacy}","received_events_url":"https://api.github.com/users/ariana-paris/received_events","type":"User","site_admin":false},"repo":{"id":4213690,"name":"otwarchive","full_name":"ariana-paris/otwarchive","owner":{"login":"ariana-paris","id":1660785,"avatar_url":"https://avatars.githubusercontent.com/u/1660785?v=3","gravatar_id":"","url":"https://api.github.com/users/ariana-paris","html_url":"https://github.com/ariana-paris","followers_url":"https://api.github.com/users/ariana-paris/followers","following_url":"https://api.github.com/users/ariana-paris/following{/other_user}","gists_url":"https://api.github.com/users/ariana-paris/gists{/gist_id}","starred_url":"https://api.github.com/users/ariana-paris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariana-paris/subscriptions","organizations_url":"https://api.github.com/users/ariana-paris/orgs","repos_url":"https://api.github.com/users/ariana-paris/repos","events_url":"https://api.github.com/users/ariana-paris/events{/privacy}","received_events_url":"https://api.github.com/users/ariana-paris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ariana-paris/otwarchive","description":"The Organization for Transformative Works (OTW) - Archive Of Our Own (AO3) Project","fork":true,"url":"https://api.github.com/repos/ariana-paris/otwarchive","forks_url":"https://api.github.com/repos/ariana-paris/otwarchive/forks","keys_url":"https://api.github.com/repos/ariana-paris/otwarchive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ariana-paris/otwarchive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ariana-paris/otwarchive/teams","hooks_url":"https://api.github.com/repos/ariana-paris/otwarchive/hooks","issue_events_url":"https://api.github.com/repos/ariana-paris/otwarchive/issues/events{/number}","events_url":"https://api.github.com/repos/ariana-paris/otwarchive/events","assignees_url":"https://api.github.com/repos/ariana-paris/otwarchive/assignees{/user}","branches_url":"https://api.github.com/repos/ariana-paris/otwarchive/branches{/branch}","tags_url":"https://api.github.com/repos/ariana-paris/otwarchive/tags","blobs_url":"https://api.github.com/repos/ariana-paris/otwarchive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ariana-paris/otwarchive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ariana-paris/otwarchive/git/refs{/sha}","trees_url":"https://api.github.com/repos/ariana-paris/otwarchive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ariana-paris/otwarchive/statuses/{sha}","languages_url":"https://api.github.com/repos/ariana-paris/otwarchive/languages","stargazers_url":"https://api.github.com/repos/ariana-paris/otwarchive/stargazers","contributors_url":"https://api.github.com/repos/ariana-paris/otwarchive/contributors","subscribers_url":"https://api.github.com/repos/ariana-paris/otwarchive/subscribers","subscription_url":"https://api.github.com/repos/ariana-paris/otwarchive/subscription","commits_url":"https://api.github.com/repos/ariana-paris/otwarchive/commits{/sha}","git_commits_url":"https://api.github.com/repos/ariana-paris/otwarchive/git/commits{/sha}","comments_url":"https://api.github.com/repos/ariana-paris/otwarchive/comments{/number}","issue_comment_url":"https://api.github.com/repos/ariana-paris/otwarchive/issues/comments{/number}","contents_url":"https://api.github.com/repos/ariana-paris/otwarchive/contents/{+path}","compare_url":"https://api.github.com/repos/ariana-paris/otwarchive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ariana-paris/otwarchive/merges","archive_url":"https://api.github.com/repos/ariana-paris/otwarchive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ariana-paris/otwarchive/downloads","issues_url":"https://api.github.com/repos/ariana-paris/otwarchive/issues{/number}","pulls_url":"https://api.github.com/repos/ariana-paris/otwarchive/pulls{/number}","milestones_url":"https://api.github.com/repos/ariana-paris/otwarchive/milestones{/number}","notifications_url":"https://api.github.com/repos/ariana-paris/otwarchive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ariana-paris/otwarchive/labels{/name}","releases_url":"https://api.github.com/repos/ariana-paris/otwarchive/releases{/id}","created_at":"2012-05-03T12:27:42Z","updated_at":"2015-03-10T22:17:11Z","pushed_at":"2015-03-14T10:57:07Z","git_url":"git://github.com/ariana-paris/otwarchive.git","ssh_url":"git@github.com:ariana-paris/otwarchive.git","clone_url":"https://github.com/ariana-paris/otwarchive.git","svn_url":"https://github.com/ariana-paris/otwarchive","homepage":"http://transformativeworks.org/projects/archive","size":48363,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":false,"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":1,"default_branch":"master"}},"base":{"label":"otwcode:master","ref":"master","sha":"fd57edc795c593a8c7eced6221a86cea5b933c0a","user":{"login":"otwcode","id":408606,"avatar_url":"https://avatars.githubusercontent.com/u/408606?v=3","gravatar_id":"","url":"https://api.github.com/users/otwcode","html_url":"https://github.com/otwcode","followers_url":"https://api.github.com/users/otwcode/followers","following_url":"https://api.github.com/users/otwcode/following{/other_user}","gists_url":"https://api.github.com/users/otwcode/gists{/gist_id}","starred_url":"https://api.github.com/users/otwcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otwcode/subscriptions","organizations_url":"https://api.github.com/users/otwcode/orgs","repos_url":"https://api.github.com/users/otwcode/repos","events_url":"https://api.github.com/users/otwcode/events{/privacy}","received_events_url":"https://api.github.com/users/otwcode/received_events","type":"Organization","site_admin":false},"repo":{"id":1338040,"name":"otwarchive","full_name":"otwcode/otwarchive","owner":{"login":"otwcode","id":408606,"avatar_url":"https://avatars.githubusercontent.com/u/408606?v=3","gravatar_id":"","url":"https://api.github.com/users/otwcode","html_url":"https://github.com/otwcode","followers_url":"https://api.github.com/users/otwcode/followers","following_url":"https://api.github.com/users/otwcode/following{/other_user}","gists_url":"https://api.github.com/users/otwcode/gists{/gist_id}","starred_url":"https://api.github.com/users/otwcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otwcode/subscriptions","organizations_url":"https://api.github.com/users/otwcode/orgs","repos_url":"https://api.github.com/users/otwcode/repos","events_url":"https://api.github.com/users/otwcode/events{/privacy}","received_events_url":"https://api.github.com/users/otwcode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/otwcode/otwarchive","description":"The Organization for Transformative Works (OTW) - Archive Of Our Own (AO3) Project","fork":false,"url":"https://api.github.com/repos/otwcode/otwarchive","forks_url":"https://api.github.com/repos/otwcode/otwarchive/forks","keys_url":"https://api.github.com/repos/otwcode/otwarchive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/otwcode/otwarchive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/otwcode/otwarchive/teams","hooks_url":"https://api.github.com/repos/otwcode/otwarchive/hooks","issue_events_url":"https://api.github.com/repos/otwcode/otwarchive/issues/events{/number}","events_url":"https://api.github.com/repos/otwcode/otwarchive/events","assignees_url":"https://api.github.com/repos/otwcode/otwarchive/assignees{/user}","branches_url":"https://api.github.com/repos/otwcode/otwarchive/branches{/branch}","tags_url":"https://api.github.com/repos/otwcode/otwarchive/tags","blobs_url":"https://api.github.com/repos/otwcode/otwarchive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/otwcode/otwarchive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/otwcode/otwarchive/git/refs{/sha}","trees_url":"https://api.github.com/repos/otwcode/otwarchive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/otwcode/otwarchive/statuses/{sha}","languages_url":"https://api.github.com/repos/otwcode/otwarchive/languages","stargazers_url":"https://api.github.com/repos/otwcode/otwarchive/stargazers","contributors_url":"https://api.github.com/repos/otwcode/otwarchive/contributors","subscribers_url":"https://api.github.com/repos/otwcode/otwarchive/subscribers","subscription_url":"https://api.github.com/repos/otwcode/otwarchive/subscription","commits_url":"https://api.github.com/repos/otwcode/otwarchive/commits{/sha}","git_commits_url":"https://api.github.com/repos/otwcode/otwarchive/git/commits{/sha}","comments_url":"https://api.github.com/repos/otwcode/otwarchive/comments{/number}","issue_comment_url":"https://api.github.com/repos/otwcode/otwarchive/issues/comments{/number}","contents_url":"https://api.github.com/repos/otwcode/otwarchive/contents/{+path}","compare_url":"https://api.github.com/repos/otwcode/otwarchive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/otwcode/otwarchive/merges","archive_url":"https://api.github.com/repos/otwcode/otwarchive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/otwcode/otwarchive/downloads","issues_url":"https://api.github.com/repos/otwcode/otwarchive/issues{/number}","pulls_url":"https://api.github.com/repos/otwcode/otwarchive/pulls{/number}","milestones_url":"https://api.github.com/repos/otwcode/otwarchive/milestones{/number}","notifications_url":"https://api.github.com/repos/otwcode/otwarchive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/otwcode/otwarchive/labels{/name}","releases_url":"https://api.github.com/repos/otwcode/otwarchive/releases{/id}","created_at":"2011-02-07T14:50:58Z","updated_at":"2015-03-09T20:58:00Z","pushed_at":"2015-03-09T22:56:00Z","git_url":"git://github.com/otwcode/otwarchive.git","ssh_url":"git@github.com:otwcode/otwarchive.git","clone_url":"https://github.com/otwcode/otwarchive.git","svn_url":"https://github.com/otwcode/otwarchive","homepage":"http://transformativeworks.org/projects/archive","size":153315,"stargazers_count":137,"watchers_count":137,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":100,"mirror_url":null,"open_issues_count":47,"forks":100,"open_issues":47,"watchers":137,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/2022"},"html":{"href":"https://github.com/otwcode/otwarchive/pull/2022"},"issue":{"href":"https://api.github.com/repos/otwcode/otwarchive/issues/2022"},"comments":{"href":"https://api.github.com/repos/otwcode/otwarchive/issues/2022/comments"},"review_comments":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/2022/comments"},"review_comment":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/2022/commits"},"statuses":{"href":"https://api.github.com/repos/otwcode/otwarchive/statuses/958373668903c282717dcc902fe28204f37f6268"}}}}