{"action":"created","issue":{"url":"https://api.github.com/repos/uclibs/scholar_uc/issues/599","repository_url":"https://api.github.com/repos/uclibs/scholar_uc","labels_url":"https://api.github.com/repos/uclibs/scholar_uc/issues/599/labels{/name}","comments_url":"https://api.github.com/repos/uclibs/scholar_uc/issues/599/comments","events_url":"https://api.github.com/repos/uclibs/scholar_uc/issues/599/events","html_url":"https://github.com/uclibs/scholar_uc/issues/599","id":129262733,"number":599,"title":"Research/Develop method for batch input into Fedora","user":{"login":"jamesvanmil","id":2651187,"avatar_url":"https://avatars.githubusercontent.com/u/2651187?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesvanmil","html_url":"https://github.com/jamesvanmil","followers_url":"https://api.github.com/users/jamesvanmil/followers","following_url":"https://api.github.com/users/jamesvanmil/following{/other_user}","gists_url":"https://api.github.com/users/jamesvanmil/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesvanmil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesvanmil/subscriptions","organizations_url":"https://api.github.com/users/jamesvanmil/orgs","repos_url":"https://api.github.com/users/jamesvanmil/repos","events_url":"https://api.github.com/users/jamesvanmil/events{/privacy}","received_events_url":"https://api.github.com/users/jamesvanmil/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/uclibs/scholar_uc/labels/2%20-%20Working","name":"2 - Working","color":"CCCCCC"},{"url":"https://api.github.com/repos/uclibs/scholar_uc/labels/Scholar%202.x","name":"Scholar 2.x","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"jamesvanmil","id":2651187,"avatar_url":"https://avatars.githubusercontent.com/u/2651187?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesvanmil","html_url":"https://github.com/jamesvanmil","followers_url":"https://api.github.com/users/jamesvanmil/followers","following_url":"https://api.github.com/users/jamesvanmil/following{/other_user}","gists_url":"https://api.github.com/users/jamesvanmil/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesvanmil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesvanmil/subscriptions","organizations_url":"https://api.github.com/users/jamesvanmil/orgs","repos_url":"https://api.github.com/users/jamesvanmil/repos","events_url":"https://api.github.com/users/jamesvanmil/events{/privacy}","received_events_url":"https://api.github.com/users/jamesvanmil/received_events","type":"User","site_admin":false},"assignees":[{"login":"jamesvanmil","id":2651187,"avatar_url":"https://avatars.githubusercontent.com/u/2651187?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesvanmil","html_url":"https://github.com/jamesvanmil","followers_url":"https://api.github.com/users/jamesvanmil/followers","following_url":"https://api.github.com/users/jamesvanmil/following{/other_user}","gists_url":"https://api.github.com/users/jamesvanmil/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesvanmil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesvanmil/subscriptions","organizations_url":"https://api.github.com/users/jamesvanmil/orgs","repos_url":"https://api.github.com/users/jamesvanmil/repos","events_url":"https://api.github.com/users/jamesvanmil/events{/privacy}","received_events_url":"https://api.github.com/users/jamesvanmil/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/uclibs/scholar_uc/milestones/49","html_url":"https://github.com/uclibs/scholar_uc/milestones/Scholar%202.2","labels_url":"https://api.github.com/repos/uclibs/scholar_uc/milestones/49/labels","id":1921568,"number":49,"title":"Scholar 2.2","description":"","creator":{"login":"hortongn","id":5639859,"avatar_url":"https://avatars.githubusercontent.com/u/5639859?v=3","gravatar_id":"","url":"https://api.github.com/users/hortongn","html_url":"https://github.com/hortongn","followers_url":"https://api.github.com/users/hortongn/followers","following_url":"https://api.github.com/users/hortongn/following{/other_user}","gists_url":"https://api.github.com/users/hortongn/gists{/gist_id}","starred_url":"https://api.github.com/users/hortongn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hortongn/subscriptions","organizations_url":"https://api.github.com/users/hortongn/orgs","repos_url":"https://api.github.com/users/hortongn/repos","events_url":"https://api.github.com/users/hortongn/events{/privacy}","received_events_url":"https://api.github.com/users/hortongn/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":10,"state":"open","created_at":"2016-08-03T18:33:07Z","updated_at":"2016-09-16T14:03:02Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-01-27T20:40:57Z","updated_at":"2016-09-20T19:03:36Z","closed_at":null,"body":"\r\n\r\n<!---\r\n@huboard:{\"milestone_order\":599.0,\"order\":238.62060724198818,\"custom_state\":\"\"}\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/uclibs/scholar_uc/issues/comments/248400061","html_url":"https://github.com/uclibs/scholar_uc/issues/599#issuecomment-248400061","issue_url":"https://api.github.com/repos/uclibs/scholar_uc/issues/599","id":248400061,"user":{"login":"jamesvanmil","id":2651187,"avatar_url":"https://avatars.githubusercontent.com/u/2651187?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesvanmil","html_url":"https://github.com/jamesvanmil","followers_url":"https://api.github.com/users/jamesvanmil/followers","following_url":"https://api.github.com/users/jamesvanmil/following{/other_user}","gists_url":"https://api.github.com/users/jamesvanmil/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesvanmil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesvanmil/subscriptions","organizations_url":"https://api.github.com/users/jamesvanmil/orgs","repos_url":"https://api.github.com/users/jamesvanmil/repos","events_url":"https://api.github.com/users/jamesvanmil/events{/privacy}","received_events_url":"https://api.github.com/users/jamesvanmil/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T19:03:36Z","updated_at":"2016-09-20T19:03:36Z","body":"I've come up with the following for Rails Console work creation, with files:\r\n\r\n```ruby\r\ninclude ActionDispatch::TestProcess\r\n\r\ncc = Article.new ## or whatever worktype\r\nu = User.first ## or whatever user\r\n\r\nattributes = {\r\n  \"files\"=>\r\n    [(fixture_file_upload 'log/development.log', 'image/png')],\r\n  \"linked_resource_urls\"=>\"\",\r\n  \"title\"=>\"Butts\",\r\n  \"creator\"=>[\"1, User\", \"\"],\r\n  \"college\"=>\"Other\",\r\n  \"department\"=>\"Unknown\",\r\n  \"abstract\"=>\"test\",\r\n  \"publisher\"=>[\"\"],\r\n  \"date_created\"=>\"\",\r\n  \"alternate_title\"=>[\"\"],\r\n  \"journal_title\"=>[\"\"],\r\n  \"issn\"=>[\"\"],\r\n  \"subject\"=>[\"\"],\r\n  \"coverage_spatial\"=>[\"\"],\r\n  \"coverage_temporal\"=>[\"\"],\r\n  \"language\"=>[\"\"],\r\n  \"bibliographic_citation\"=>\"\",\r\n  \"requires\"=>\"\",\r\n  \"note\"=>\"\",\r\n  \"existing_identifier\"=>\"\",\r\n  \"doi_assignment_strategy\"=>\"not_now\",\r\n  \"editors_attributes\"=>{\"0\"=>{\"id\"=>\"sufia:t435hw65w\", \"_destroy\"=>\"\"}, \"1\"=>{\"id\"=>\"\", \"_destroy\"=>\"\", \"name\"=>\"\"}},\r\n  \"editor_groups_attributes\"=>{\"0\"=>{\"id\"=>\"\", \"_destroy\"=>\"\", \"title\"=>\"\"}},\r\n  \"visibility\"=>\"open\", \r\n  \"embargo_release_date\"=>\"\", \r\n  \"readers_attributes\"=>{\"0\"=>{\"id\"=>\"\", \"_destroy\"=>\"\", \"name\"=>\"\"}}, \r\n  \"reader_groups_attributes\"=>{\"0\"=>{\"id\"=>\"\", \"_destroy\"=>\"\", \"title\"=>\"\"}},\r\n  \"rights\"=>\"All rights reserved\"\r\n}\r\n\r\nCurationConcern.actor(cc, u, attributes).create\r\n```\r\n\r\nSeems to check out, even though I'm using a test class to stand in for the file upload. Would be easy to integrate into a GUI interface, or into a rake task. @newmanld @ntallman lets talk about balancing workflow features and development expediency."}}
{"actor":{"display_login":"jamesvanmil"}}