{"action":"created","issue":{"url":"https://api.github.com/repos/open-craft/xblock-dalite/issues/1","repository_url":"https://api.github.com/repos/open-craft/xblock-dalite","labels_url":"https://api.github.com/repos/open-craft/xblock-dalite/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/open-craft/xblock-dalite/issues/1/comments","events_url":"https://api.github.com/repos/open-craft/xblock-dalite/issues/1/events","html_url":"https://github.com/open-craft/xblock-dalite/pull/1","id":153430980,"number":1,"title":"Studio edit and lms","user":{"login":"e-kolpakov","id":3330048,"avatar_url":"https://avatars.githubusercontent.com/u/3330048?v=3","gravatar_id":"","url":"https://api.github.com/users/e-kolpakov","html_url":"https://github.com/e-kolpakov","followers_url":"https://api.github.com/users/e-kolpakov/followers","following_url":"https://api.github.com/users/e-kolpakov/following{/other_user}","gists_url":"https://api.github.com/users/e-kolpakov/gists{/gist_id}","starred_url":"https://api.github.com/users/e-kolpakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e-kolpakov/subscriptions","organizations_url":"https://api.github.com/users/e-kolpakov/orgs","repos_url":"https://api.github.com/users/e-kolpakov/repos","events_url":"https://api.github.com/users/e-kolpakov/events{/privacy}","received_events_url":"https://api.github.com/users/e-kolpakov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-06T11:19:36Z","updated_at":"2016-05-13T06:59:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/open-craft/xblock-dalite/pulls/1","html_url":"https://github.com/open-craft/xblock-dalite/pull/1","diff_url":"https://github.com/open-craft/xblock-dalite/pull/1.diff","patch_url":"https://github.com/open-craft/xblock-dalite/pull/1.patch"},"body":"**Description:** First usable version of Dalite Xblock.\r\n**JIRA:** [OC-1537](https://tasks.opencraft.com/browse/OC-1537)\r\n\r\n**Testing instructions:**\r\n1. Set up [dalite](https://github.com/open-craft/dalite-ng).\r\n2. Create an assignment and a couple of questions.\r\n3. Install this XBlock.\r\n4. Create a course.\r\n5. Add `xblock-dalite` to `Advanced Modules List`\r\n6. Add dalite-ng LTI passport. *Note:* Dalite-xblock introduces different LTI passport format: `(dalite-xblock)[LTI_ID];[dalite_root_url];[LTI_KEY];[LTI_SECRET]`:\r\n6.1. `(dalite-xblock)` is a prefix denoting Dalite-XBlock LTI Passport\r\n6.2. `LTI_ID` is just an identifier - it is displayed to course author in Dalite-XBlock edit dialog.\r\n6.3. `dalite_root_url` is Dalite-ng root URL (don't add `/lti/`here). Should be tolerant to trailing slash.\r\n6.4. LTI_KEY and LTI_SECRET have the same meaning as for ordinary LTI passport.\r\n6.5. **Most important change:** since `dalite_root_url` contains at least one colon for sure (`http:` or `https:`), separator is changed to semicolon `;`.\r\n7. (Optinal) Add a couple of Dalite-XBlock LTI Passports more (i.e. all the same, except different LTI ID)\r\n8. Go to Outline -> Add Section, subsection and unit -> open unit for editing.\r\n9. \"Advanced\" components should be available and contain \"Dalite XBlock\".\r\n10. Add Dalite XBlock.\r\n11. Click Edit.\r\n12. Fill in Assignment ID and Question ID with ID of assignment and question you created at step 2.\r\n13. *Verify:* LTI ID is a dropdown and is pre-popuilated with first Dalite-XBlock LTI Passport.\r\n14. (Optional) *Verify:* LTI ID should display all Dalite-XBlock LTI Passports configured in steps 6 and 7.\r\n15. Don't edit anything else (even LTI ID field) - click Save.\r\n16. *Verify:* Dalite-ng is shown in an iframe, with target assignment and question opened.\r\n17. Publish unit.\r\n18. Log in to LMS as student (i.e. audit or honor)\r\n19. Enroll to a course (if not already enrolled), open unit with Dalite XBlock in it.\r\n20. *Verify:* Dalite-ng is shown in an iframe with target assignment and question opened.\r\n21. *Verify:* dalite-ng workflow works: can submit answer and rationale, view other rationales and stick with your answer or change answer."},"comment":{"url":"https://api.github.com/repos/open-craft/xblock-dalite/issues/comments/218966510","html_url":"https://github.com/open-craft/xblock-dalite/pull/1#issuecomment-218966510","issue_url":"https://api.github.com/repos/open-craft/xblock-dalite/issues/1","id":218966510,"user":{"login":"omarkhan","id":793379,"avatar_url":"https://avatars.githubusercontent.com/u/793379?v=3","gravatar_id":"","url":"https://api.github.com/users/omarkhan","html_url":"https://github.com/omarkhan","followers_url":"https://api.github.com/users/omarkhan/followers","following_url":"https://api.github.com/users/omarkhan/following{/other_user}","gists_url":"https://api.github.com/users/omarkhan/gists{/gist_id}","starred_url":"https://api.github.com/users/omarkhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omarkhan/subscriptions","organizations_url":"https://api.github.com/users/omarkhan/orgs","repos_url":"https://api.github.com/users/omarkhan/repos","events_url":"https://api.github.com/users/omarkhan/events{/privacy}","received_events_url":"https://api.github.com/users/omarkhan/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T06:59:43Z","updated_at":"2016-05-13T06:59:43Z","body":"@e-kolpakov with your fix I can now see the xblock in studio, but when I try to submit an answer I get an error from dalite:\r\n\r\n<img width=\"880\" alt=\"screen shot 2016-05-13 at 13 57 48\" src=\"https://cloud.githubusercontent.com/assets/793379/15240296/def995ba-1912-11e6-8ef1-e3c16b44c42b.png\">"}}