{"action":"created","issue":{"url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/2399","repository_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End","labels_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/2399/labels{/name}","comments_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/2399/comments","events_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/2399/events","html_url":"https://github.com/zooniverse/Panoptes-Front-End/pull/2399","id":146750985,"number":2399,"title":"Workflow tutorials","user":{"login":"brian-c","id":464389,"avatar_url":"https://avatars.githubusercontent.com/u/464389?v=3","gravatar_id":"","url":"https://api.github.com/users/brian-c","html_url":"https://github.com/brian-c","followers_url":"https://api.github.com/users/brian-c/followers","following_url":"https://api.github.com/users/brian-c/following{/other_user}","gists_url":"https://api.github.com/users/brian-c/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-c/subscriptions","organizations_url":"https://api.github.com/users/brian-c/orgs","repos_url":"https://api.github.com/users/brian-c/repos","events_url":"https://api.github.com/users/brian-c/events{/privacy}","received_events_url":"https://api.github.com/users/brian-c/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"srallen","id":5016731,"avatar_url":"https://avatars.githubusercontent.com/u/5016731?v=3","gravatar_id":"","url":"https://api.github.com/users/srallen","html_url":"https://github.com/srallen","followers_url":"https://api.github.com/users/srallen/followers","following_url":"https://api.github.com/users/srallen/following{/other_user}","gists_url":"https://api.github.com/users/srallen/gists{/gist_id}","starred_url":"https://api.github.com/users/srallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srallen/subscriptions","organizations_url":"https://api.github.com/users/srallen/orgs","repos_url":"https://api.github.com/users/srallen/repos","events_url":"https://api.github.com/users/srallen/events{/privacy}","received_events_url":"https://api.github.com/users/srallen/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2016-04-07T21:45:47Z","updated_at":"2016-04-13T20:19:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/2399","html_url":"https://github.com/zooniverse/Panoptes-Front-End/pull/2399","diff_url":"https://github.com/zooniverse/Panoptes-Front-End/pull/2399.diff","patch_url":"https://github.com/zooniverse/Panoptes-Front-End/pull/2399.patch"},"body":"Tutorials are now looked up by workflow first and fall back to lookup by project. (@marten, just to confirm:  getting `/tutorials?workflow_id=123` and `/tutorials?project_id=234` will both work and will continue to in the future, correct?)\r\n\r\nCompleted tutorials are now recorded by tutorial ID instead of project ID.\r\n\r\nRelated to zooniverse/Panoptes#1747. That deploy and this merge should probably be at the same time."},"comment":{"url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/comments/209629646","html_url":"https://github.com/zooniverse/Panoptes-Front-End/pull/2399#issuecomment-209629646","issue_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/2399","id":209629646,"user":{"login":"srallen","id":5016731,"avatar_url":"https://avatars.githubusercontent.com/u/5016731?v=3","gravatar_id":"","url":"https://api.github.com/users/srallen","html_url":"https://github.com/srallen","followers_url":"https://api.github.com/users/srallen/followers","following_url":"https://api.github.com/users/srallen/following{/other_user}","gists_url":"https://api.github.com/users/srallen/gists{/gist_id}","starred_url":"https://api.github.com/users/srallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srallen/subscriptions","organizations_url":"https://api.github.com/users/srallen/orgs","repos_url":"https://api.github.com/users/srallen/repos","events_url":"https://api.github.com/users/srallen/events{/privacy}","received_events_url":"https://api.github.com/users/srallen/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T20:19:25Z","updated_at":"2016-04-13T20:19:25Z","body":"@brian-c, @marten I rebased my mini-course branch against the workflow-tutorial branch and did a pass on how the editor could work in the [mini-course branch](https://github.com/zooniverse/Panoptes-Front-End/tree/mini-course) and deployed here: https://mini-course.pfe-preview.zooniverse.org\r\n\r\nThe editor has been refactored to allow the creation of multiple tutorials or mini-courses. When they're initially created the `kind` property is set, but is only associated to the project. Linking to workflows is in the workflow editor similar to subject sets. Currently I still need to work on:\r\n\r\n- Getting the workflow link to work. I've modeled the functions after what's happening with the subject sets, but I'm getting an error: `POST https://panoptes-staging.zooniverse.org/api/workflows/1817/links/tutorials 404 (Not Found)`\r\n- UI improvement with possibly adding a display name to the tutorials. This would just make it easier to know which tutorial or mini course you are linking in the workflow editor view. But maybe not necessary for now.\r\n- Still need to get the mini course working in the project itself.\r\n- Existing tutorials that still have `kind: null` will be displayed in both the mini course editor and the tutorial editor since the editor is shared. Two routes I'm thinking in how to deal with this: allow those with null values to only display in the tutorial editor since mini-courses are new or retroactively set the value in the existing tutorials.\r\n\r\nLet me know if anyone wants to be added as a collaborator to the project I've been developing against."}}