{"action":"created","comment":{"url":"https://api.github.com/repos/Zzish/quizalize/pulls/comments/47929283","id":47929283,"diff_hunk":"@@ -328,14 +328,21 @@ export default class CQEditView extends React.Component {\n         QuizActions.newQuiz(this.state.quiz).then(callback);\n     }\n \n-    handleQuizImport(data: Array<Question>) {\n-        var quiz = this.state.quiz;\n-        quiz.payload.questions = data;\n-        this.setState({quiz}, ()=>{\n-            this.save().then( ()=> {\n-                router.setRoute(`/quiz/create/${this.state.quiz.uuid}/`);\n+    handleQuizImport(data: Object) {\n+        let conceptId = Object.keys(data)[0];\n+        if (conceptId) {\n+            var quiz = this.state.quiz;","path":"src/client/createQuizApp/components/pages/CQEdit/CQEditView.js","position":13,"original_position":13,"commit_id":"7522659d18749f386736413d72004e087de36409","original_commit_id":"7522659d18749f386736413d72004e087de36409","user":{"login":"blaiprat","id":723386,"avatar_url":"https://avatars.githubusercontent.com/u/723386?v=3","gravatar_id":"","url":"https://api.github.com/users/blaiprat","html_url":"https://github.com/blaiprat","followers_url":"https://api.github.com/users/blaiprat/followers","following_url":"https://api.github.com/users/blaiprat/following{/other_user}","gists_url":"https://api.github.com/users/blaiprat/gists{/gist_id}","starred_url":"https://api.github.com/users/blaiprat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blaiprat/subscriptions","organizations_url":"https://api.github.com/users/blaiprat/orgs","repos_url":"https://api.github.com/users/blaiprat/repos","events_url":"https://api.github.com/users/blaiprat/events{/privacy}","received_events_url":"https://api.github.com/users/blaiprat/received_events","type":"User","site_admin":false},"body":"let > var :)","created_at":"2015-12-17T16:48:54Z","updated_at":"2015-12-17T16:48:54Z","html_url":"https://github.com/Zzish/quizalize/pull/25#discussion_r47929283","pull_request_url":"https://api.github.com/repos/Zzish/quizalize/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/Zzish/quizalize/pulls/comments/47929283"},"html":{"href":"https://github.com/Zzish/quizalize/pull/25#discussion_r47929283"},"pull_request":{"href":"https://api.github.com/repos/Zzish/quizalize/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/Zzish/quizalize/pulls/25","id":53839769,"html_url":"https://github.com/Zzish/quizalize/pull/25","diff_url":"https://github.com/Zzish/quizalize/pull/25.diff","patch_url":"https://github.com/Zzish/quizalize/pull/25.patch","issue_url":"https://api.github.com/repos/Zzish/quizalize/issues/25","number":25,"state":"open","locked":false,"title":"Feature/option image","user":{"login":"jrying","id":3917096,"avatar_url":"https://avatars.githubusercontent.com/u/3917096?v=3","gravatar_id":"","url":"https://api.github.com/users/jrying","html_url":"https://github.com/jrying","followers_url":"https://api.github.com/users/jrying/followers","following_url":"https://api.github.com/users/jrying/following{/other_user}","gists_url":"https://api.github.com/users/jrying/gists{/gist_id}","starred_url":"https://api.github.com/users/jrying/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrying/subscriptions","organizations_url":"https://api.github.com/users/jrying/orgs","repos_url":"https://api.github.com/users/jrying/repos","events_url":"https://api.github.com/users/jrying/events{/privacy}","received_events_url":"https://api.github.com/users/jrying/received_events","type":"User","site_admin":false},"body":"1. Enable images in options\r\n2. Update question importing\r\n3. send some new attributes to learning hub\r\n  richFormatQuestion : string\r\n  richFormatAnswer: string\r\n  richFormatResponse: string\r\n    format: [{type: \"text\", value: \"text\"}, {type: \"image\", value: \"imageurl\"}, {type: \"text\", value: \"text\"}, ...]\r\n  displayMode: string \r\n    could be [\"\", \"groupByItem\"]","created_at":"2015-12-16T13:17:43Z","updated_at":"2015-12-17T16:48:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c4420943e27642e7c3942ba5daf6c187b25ae2a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Zzish/quizalize/pulls/25/commits","review_comments_url":"https://api.github.com/repos/Zzish/quizalize/pulls/25/comments","review_comment_url":"https://api.github.com/repos/Zzish/quizalize/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Zzish/quizalize/issues/25/comments","statuses_url":"https://api.github.com/repos/Zzish/quizalize/statuses/7522659d18749f386736413d72004e087de36409","head":{"label":"Zzish:feature/optionImage","ref":"feature/optionImage","sha":"7522659d18749f386736413d72004e087de36409","user":{"login":"Zzish","id":7767281,"avatar_url":"https://avatars.githubusercontent.com/u/7767281?v=3","gravatar_id":"","url":"https://api.github.com/users/Zzish","html_url":"https://github.com/Zzish","followers_url":"https://api.github.com/users/Zzish/followers","following_url":"https://api.github.com/users/Zzish/following{/other_user}","gists_url":"https://api.github.com/users/Zzish/gists{/gist_id}","starred_url":"https://api.github.com/users/Zzish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zzish/subscriptions","organizations_url":"https://api.github.com/users/Zzish/orgs","repos_url":"https://api.github.com/users/Zzish/repos","events_url":"https://api.github.com/users/Zzish/events{/privacy}","received_events_url":"https://api.github.com/users/Zzish/received_events","type":"Organization","site_admin":false},"repo":{"id":29922838,"name":"quizalize","full_name":"Zzish/quizalize","owner":{"login":"Zzish","id":7767281,"avatar_url":"https://avatars.githubusercontent.com/u/7767281?v=3","gravatar_id":"","url":"https://api.github.com/users/Zzish","html_url":"https://github.com/Zzish","followers_url":"https://api.github.com/users/Zzish/followers","following_url":"https://api.github.com/users/Zzish/following{/other_user}","gists_url":"https://api.github.com/users/Zzish/gists{/gist_id}","starred_url":"https://api.github.com/users/Zzish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zzish/subscriptions","organizations_url":"https://api.github.com/users/Zzish/orgs","repos_url":"https://api.github.com/users/Zzish/repos","events_url":"https://api.github.com/users/Zzish/events{/privacy}","received_events_url":"https://api.github.com/users/Zzish/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Zzish/quizalize","description":"Quizzes","fork":false,"url":"https://api.github.com/repos/Zzish/quizalize","forks_url":"https://api.github.com/repos/Zzish/quizalize/forks","keys_url":"https://api.github.com/repos/Zzish/quizalize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zzish/quizalize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zzish/quizalize/teams","hooks_url":"https://api.github.com/repos/Zzish/quizalize/hooks","issue_events_url":"https://api.github.com/repos/Zzish/quizalize/issues/events{/number}","events_url":"https://api.github.com/repos/Zzish/quizalize/events","assignees_url":"https://api.github.com/repos/Zzish/quizalize/assignees{/user}","branches_url":"https://api.github.com/repos/Zzish/quizalize/branches{/branch}","tags_url":"https://api.github.com/repos/Zzish/quizalize/tags","blobs_url":"https://api.github.com/repos/Zzish/quizalize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zzish/quizalize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zzish/quizalize/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zzish/quizalize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zzish/quizalize/statuses/{sha}","languages_url":"https://api.github.com/repos/Zzish/quizalize/languages","stargazers_url":"https://api.github.com/repos/Zzish/quizalize/stargazers","contributors_url":"https://api.github.com/repos/Zzish/quizalize/contributors","subscribers_url":"https://api.github.com/repos/Zzish/quizalize/subscribers","subscription_url":"https://api.github.com/repos/Zzish/quizalize/subscription","commits_url":"https://api.github.com/repos/Zzish/quizalize/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zzish/quizalize/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zzish/quizalize/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zzish/quizalize/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zzish/quizalize/contents/{+path}","compare_url":"https://api.github.com/repos/Zzish/quizalize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zzish/quizalize/merges","archive_url":"https://api.github.com/repos/Zzish/quizalize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zzish/quizalize/downloads","issues_url":"https://api.github.com/repos/Zzish/quizalize/issues{/number}","pulls_url":"https://api.github.com/repos/Zzish/quizalize/pulls{/number}","milestones_url":"https://api.github.com/repos/Zzish/quizalize/milestones{/number}","notifications_url":"https://api.github.com/repos/Zzish/quizalize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zzish/quizalize/labels{/name}","releases_url":"https://api.github.com/repos/Zzish/quizalize/releases{/id}","created_at":"2015-01-27T16:26:38Z","updated_at":"2015-11-10T02:35:16Z","pushed_at":"2015-12-17T15:01:05Z","git_url":"git://github.com/Zzish/quizalize.git","ssh_url":"git@github.com:Zzish/quizalize.git","clone_url":"https://github.com/Zzish/quizalize.git","svn_url":"https://github.com/Zzish/quizalize","homepage":null,"size":36667,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"develop"}},"base":{"label":"Zzish:develop","ref":"develop","sha":"0193c829a4b75c3075dc9c2ef48ffa8c206c5e16","user":{"login":"Zzish","id":7767281,"avatar_url":"https://avatars.githubusercontent.com/u/7767281?v=3","gravatar_id":"","url":"https://api.github.com/users/Zzish","html_url":"https://github.com/Zzish","followers_url":"https://api.github.com/users/Zzish/followers","following_url":"https://api.github.com/users/Zzish/following{/other_user}","gists_url":"https://api.github.com/users/Zzish/gists{/gist_id}","starred_url":"https://api.github.com/users/Zzish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zzish/subscriptions","organizations_url":"https://api.github.com/users/Zzish/orgs","repos_url":"https://api.github.com/users/Zzish/repos","events_url":"https://api.github.com/users/Zzish/events{/privacy}","received_events_url":"https://api.github.com/users/Zzish/received_events","type":"Organization","site_admin":false},"repo":{"id":29922838,"name":"quizalize","full_name":"Zzish/quizalize","owner":{"login":"Zzish","id":7767281,"avatar_url":"https://avatars.githubusercontent.com/u/7767281?v=3","gravatar_id":"","url":"https://api.github.com/users/Zzish","html_url":"https://github.com/Zzish","followers_url":"https://api.github.com/users/Zzish/followers","following_url":"https://api.github.com/users/Zzish/following{/other_user}","gists_url":"https://api.github.com/users/Zzish/gists{/gist_id}","starred_url":"https://api.github.com/users/Zzish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zzish/subscriptions","organizations_url":"https://api.github.com/users/Zzish/orgs","repos_url":"https://api.github.com/users/Zzish/repos","events_url":"https://api.github.com/users/Zzish/events{/privacy}","received_events_url":"https://api.github.com/users/Zzish/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Zzish/quizalize","description":"Quizzes","fork":false,"url":"https://api.github.com/repos/Zzish/quizalize","forks_url":"https://api.github.com/repos/Zzish/quizalize/forks","keys_url":"https://api.github.com/repos/Zzish/quizalize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zzish/quizalize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zzish/quizalize/teams","hooks_url":"https://api.github.com/repos/Zzish/quizalize/hooks","issue_events_url":"https://api.github.com/repos/Zzish/quizalize/issues/events{/number}","events_url":"https://api.github.com/repos/Zzish/quizalize/events","assignees_url":"https://api.github.com/repos/Zzish/quizalize/assignees{/user}","branches_url":"https://api.github.com/repos/Zzish/quizalize/branches{/branch}","tags_url":"https://api.github.com/repos/Zzish/quizalize/tags","blobs_url":"https://api.github.com/repos/Zzish/quizalize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zzish/quizalize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zzish/quizalize/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zzish/quizalize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zzish/quizalize/statuses/{sha}","languages_url":"https://api.github.com/repos/Zzish/quizalize/languages","stargazers_url":"https://api.github.com/repos/Zzish/quizalize/stargazers","contributors_url":"https://api.github.com/repos/Zzish/quizalize/contributors","subscribers_url":"https://api.github.com/repos/Zzish/quizalize/subscribers","subscription_url":"https://api.github.com/repos/Zzish/quizalize/subscription","commits_url":"https://api.github.com/repos/Zzish/quizalize/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zzish/quizalize/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zzish/quizalize/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zzish/quizalize/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zzish/quizalize/contents/{+path}","compare_url":"https://api.github.com/repos/Zzish/quizalize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zzish/quizalize/merges","archive_url":"https://api.github.com/repos/Zzish/quizalize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zzish/quizalize/downloads","issues_url":"https://api.github.com/repos/Zzish/quizalize/issues{/number}","pulls_url":"https://api.github.com/repos/Zzish/quizalize/pulls{/number}","milestones_url":"https://api.github.com/repos/Zzish/quizalize/milestones{/number}","notifications_url":"https://api.github.com/repos/Zzish/quizalize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zzish/quizalize/labels{/name}","releases_url":"https://api.github.com/repos/Zzish/quizalize/releases{/id}","created_at":"2015-01-27T16:26:38Z","updated_at":"2015-11-10T02:35:16Z","pushed_at":"2015-12-17T15:01:05Z","git_url":"git://github.com/Zzish/quizalize.git","ssh_url":"git@github.com:Zzish/quizalize.git","clone_url":"https://github.com/Zzish/quizalize.git","svn_url":"https://github.com/Zzish/quizalize","homepage":null,"size":36667,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Zzish/quizalize/pulls/25"},"html":{"href":"https://github.com/Zzish/quizalize/pull/25"},"issue":{"href":"https://api.github.com/repos/Zzish/quizalize/issues/25"},"comments":{"href":"https://api.github.com/repos/Zzish/quizalize/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/Zzish/quizalize/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/Zzish/quizalize/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Zzish/quizalize/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/Zzish/quizalize/statuses/7522659d18749f386736413d72004e087de36409"}}}}