{"action":"created","issue":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3476","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3476/labels{/name}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3476/comments","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3476/events","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/3476","id":93790101,"number":3476,"title":"[Ready for Review] Prereg + Draft Registrations ","user":{"login":"samchrisinger","id":2207561,"avatar_url":"https://avatars.githubusercontent.com/u/2207561?v=3","gravatar_id":"","url":"https://api.github.com/users/samchrisinger","html_url":"https://github.com/samchrisinger","followers_url":"https://api.github.com/users/samchrisinger/followers","following_url":"https://api.github.com/users/samchrisinger/following{/other_user}","gists_url":"https://api.github.com/users/samchrisinger/gists{/gist_id}","starred_url":"https://api.github.com/users/samchrisinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samchrisinger/subscriptions","organizations_url":"https://api.github.com/users/samchrisinger/orgs","repos_url":"https://api.github.com/users/samchrisinger/repos","events_url":"https://api.github.com/users/samchrisinger/events{/privacy}","received_events_url":"https://api.github.com/users/samchrisinger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels/Epic:%20Jun-Aug","name":"Epic: Jun-Aug","color":"00dd00"}],"state":"open","locked":false,"assignee":{"login":"lyndsysimon","id":131414,"avatar_url":"https://avatars.githubusercontent.com/u/131414?v=3","gravatar_id":"","url":"https://api.github.com/users/lyndsysimon","html_url":"https://github.com/lyndsysimon","followers_url":"https://api.github.com/users/lyndsysimon/followers","following_url":"https://api.github.com/users/lyndsysimon/following{/other_user}","gists_url":"https://api.github.com/users/lyndsysimon/gists{/gist_id}","starred_url":"https://api.github.com/users/lyndsysimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyndsysimon/subscriptions","organizations_url":"https://api.github.com/users/lyndsysimon/orgs","repos_url":"https://api.github.com/users/lyndsysimon/repos","events_url":"https://api.github.com/users/lyndsysimon/events{/privacy}","received_events_url":"https://api.github.com/users/lyndsysimon/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-07-08T13:31:25Z","updated_at":"2015-09-14T18:10:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3476","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/3476","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/3476.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/3476.patch"},"body":"#### Replacing https://github.com/CenterForOpenScience/osf.io/pull/3284\r\n#### Associated proposal: https://docs.google.com/document/d/1-CdCKQCQFZ_ju5TEWqIKEII7WiellBurb53sGWJduJ0/edit\r\n\r\n# Purpose\r\n\r\nThe Prereg prize will require several new infrastructure components. In particular this project requires partial/draft registrations. This PR replaces the old registration creation workflow to support partial registration states and updates the UI to a more modern JS implementation.\r\n\r\n# Changes\r\n\r\n- Remove old style registration editor and replace with new editor\r\n- Add UI and backend support for DraftRegistration CRUD\r\n\r\n# Side Effects\r\n\r\n## Registrations page: \r\nA new tab has been added to show and create Draft Registrations. This UI lets users create, edit, and delete Draft Registrations. The blue bar shows the progress of completed items in the registration form.\r\n\r\n### Old: \r\n![screen shot 2015-07-29 at 1 52 46 pm](https://cloud.githubusercontent.com/assets/2207561/8965380/20687104-35f9-11e5-8a72-f23f43a7f2ab.png)\r\n\r\n### New: \r\n![screen shot 2015-07-29 at 1 52 04 pm](https://cloud.githubusercontent.com/assets/2207561/8965369/08212a50-35f9-11e5-8553-ead7b82f0a9f.png)\r\n![screen shot 2015-07-29 at 1 53 11 pm](https://cloud.githubusercontent.com/assets/2207561/8965394/31b9601c-35f9-11e5-963a-81acf07edaeb.png)\r\n![screen shot 2015-07-29 at 2 07 13 pm](https://cloud.githubusercontent.com/assets/2207561/8965710/261dacb6-35fb-11e5-9a2d-6674b16482dc.png)\r\n\r\n![screen shot 2015-07-29 at 2 06 41 pm](https://cloud.githubusercontent.com/assets/2207561/8965698/13676b3e-35fb-11e5-8f1a-0fe415998cd1.png)\r\n\r\n## Picking a template:\r\nUsers can now preview the registration schema before starting the registration process. \r\n### Old: \r\n![screen shot 2015-07-29 at 2 10 27 pm](https://cloud.githubusercontent.com/assets/2207561/8965777/96646596-35fb-11e5-9776-6bf3fb532be1.png)\r\n\r\n### New: \r\n![screen shot 2015-07-29 at 2 10 56 pm](https://cloud.githubusercontent.com/assets/2207561/8965789/aa759672-35fb-11e5-95e0-92e1053d5835.png)\r\n\r\n## Filling in form data:\r\n\r\n### Old: \r\n![screen shot 2015-07-29 at 2 12 05 pm](https://cloud.githubusercontent.com/assets/2207561/8965816/dc25564e-35fb-11e5-837e-07e94717100b.png)\r\n\r\n### New: \r\n![screen shot 2015-07-29 at 2 13 04 pm](https://cloud.githubusercontent.com/assets/2207561/8965832/f6fa8656-35fb-11e5-909c-9b67edcfb5cf.png)\r\n![screen shot 2015-07-29 at 2 13 58 pm](https://cloud.githubusercontent.com/assets/2207561/8965856/17d5c7fa-35fc-11e5-98e1-9311e351e6d7.png)\r\n"},"comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments/140163357","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/3476#issuecomment-140163357","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3476","id":140163357,"user":{"login":"abought","id":2957073,"avatar_url":"https://avatars.githubusercontent.com/u/2957073?v=3","gravatar_id":"","url":"https://api.github.com/users/abought","html_url":"https://github.com/abought","followers_url":"https://api.github.com/users/abought/followers","following_url":"https://api.github.com/users/abought/following{/other_user}","gists_url":"https://api.github.com/users/abought/gists{/gist_id}","starred_url":"https://api.github.com/users/abought/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abought/subscriptions","organizations_url":"https://api.github.com/users/abought/orgs","repos_url":"https://api.github.com/users/abought/repos","events_url":"https://api.github.com/users/abought/events{/privacy}","received_events_url":"https://api.github.com/users/abought/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T18:10:46Z","updated_at":"2015-09-14T18:10:46Z","body":"When starting a brand-new post-collection registration, I get \"invalid date\" for \"last saved\", and clicking on the save button does not do anything. This should be checked and fixed before release.\r\n\r\nThere are no JS console errors, and I get these errors on a brand new project created specifically for the purpose of testing draft registrations. (to avoid schema migration issues) It has no content other than a name and description.\r\n\r\n![screen shot 2015-09-14 at 2 07 10 pm](https://cloud.githubusercontent.com/assets/2957073/9857705/230f8ec2-5aea-11e5-926c-1d0224368ecd.png)\r\n"}}