{"action":"created","issue":{"url":"https://api.github.com/repos/benwbrum/fromthepage/issues/240","labels_url":"https://api.github.com/repos/benwbrum/fromthepage/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/benwbrum/fromthepage/issues/240/comments","events_url":"https://api.github.com/repos/benwbrum/fromthepage/issues/240/events","html_url":"https://github.com/benwbrum/fromthepage/pull/240","id":105111269,"number":240,"title":"Add Uploader to Main App","user":{"login":"benwbrum","id":199961,"avatar_url":"https://avatars.githubusercontent.com/u/199961?v=3","gravatar_id":"","url":"https://api.github.com/users/benwbrum","html_url":"https://github.com/benwbrum","followers_url":"https://api.github.com/users/benwbrum/followers","following_url":"https://api.github.com/users/benwbrum/following{/other_user}","gists_url":"https://api.github.com/users/benwbrum/gists{/gist_id}","starred_url":"https://api.github.com/users/benwbrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benwbrum/subscriptions","organizations_url":"https://api.github.com/users/benwbrum/orgs","repos_url":"https://api.github.com/users/benwbrum/repos","events_url":"https://api.github.com/users/benwbrum/events{/privacy}","received_events_url":"https://api.github.com/users/benwbrum/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/benwbrum/fromthepage/labels/in%20progress","name":"in progress","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-06T19:00:08Z","updated_at":"2015-09-14T22:51:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/benwbrum/fromthepage/pulls/240","html_url":"https://github.com/benwbrum/fromthepage/pull/240","diff_url":"https://github.com/benwbrum/fromthepage/pull/240.diff","patch_url":"https://github.com/benwbrum/fromthepage/pull/240.patch"},"body":"*Do not merge yet*\r\n\r\nThis work, based on the ui-design branch, supports the ingesting of new documents to the system.  \r\n\r\n# Current Status\r\n\r\nThe feature allows existing users with existing collections to upload a new file to the system.  It also allows an administrator to run a rake task to process the upload so that it will be ready to run.\r\n\r\n## To-Do for the current system\r\n\r\nAt the moment there's no way in or out of the system, and the standard Rails scaffold actions need to be put behind authorization walls,  To itemize the TODO items:\r\n\r\n* Add a link to `new_document_upload` from the Owner Actions (@kolking)\r\n* Style the `views/document_upload/new` view and form (@kolking)\r\n* Redirect an uploaded document to the `show` action: `document_upoad#create` needs `redirect_to collection_path(@document_upload.collection)` in it with a success action saying \"Your documents have been uploaded and will be processed shortly.  You'll receive an email at `#{@document_upload.user.email} when the documents are ready.\" (@kolking)\r\n* Put `document_upload` actions other than `#new` and `#create` behind an authorization filter so that only an administrative user can see those pages. (@benwbrum or @saracarl)\r\n* Add a link to the document_uploads index page to the admin dashboard.   (@benwbrum or @saracarl)\r\n\r\n# Second Phase: Automated processing\r\n\r\nThe create action should fire off the automation itself.\r\n\r\n* Call rake on the document upload\r\n* Modify rake task to email end user when the document upload is finished\r\n\r\n# Third Phase: New project hooks\r\n\r\nThe feature should be accessible from \"start a new project\" for anyone.  This should prompt them to create a new user and new collection. "},"comment":{"url":"https://api.github.com/repos/benwbrum/fromthepage/issues/comments/140227573","html_url":"https://github.com/benwbrum/fromthepage/pull/240#issuecomment-140227573","issue_url":"https://api.github.com/repos/benwbrum/fromthepage/issues/240","id":140227573,"user":{"login":"kolking","id":4656448,"avatar_url":"https://avatars.githubusercontent.com/u/4656448?v=3","gravatar_id":"","url":"https://api.github.com/users/kolking","html_url":"https://github.com/kolking","followers_url":"https://api.github.com/users/kolking/followers","following_url":"https://api.github.com/users/kolking/following{/other_user}","gists_url":"https://api.github.com/users/kolking/gists{/gist_id}","starred_url":"https://api.github.com/users/kolking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolking/subscriptions","organizations_url":"https://api.github.com/users/kolking/orgs","repos_url":"https://api.github.com/users/kolking/repos","events_url":"https://api.github.com/users/kolking/events{/privacy}","received_events_url":"https://api.github.com/users/kolking/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T22:51:59Z","updated_at":"2015-09-14T22:51:59Z","body":"@benwbrum It's ready for review.\r\n1) Upload administration is in the admin dashboard, so only admins have access. I guess there should be also some \"process upload\" action, but for now admin can see the list of user uploads and delete them.\r\n2) Document upload is in the owners dashboard. I've included validation to make sure an existing collection and file are present. After uploading they are redirected to the collection overview page."}}