{"action":"created","comment":{"url":"https://api.github.com/repos/claroline/Distribution/pulls/comments/86513926","pull_request_review_id":7169269,"id":86513926,"diff_hunk":"@@ -0,0 +1,63 @@\n+import React, {Component} from 'react'\n+const T = React.PropTypes\n+const PICKER_NAME = 'EXO_OBJECT_PICKER'\n+import {t} from './../lib/translate'\n+\n+/* global Claroline */\n+\n+class ObjectPicker extends Component {\n+  constructor(props){\n+    super(props)\n+    this.resourcePickerParams = {\n+      isPickerMultiSelectAllowed: false,\n+      typeWhiteList: [ 'file' ],\n+      callback: (nodes) => {\n+        this.addResource(nodes)\n+        // Remove checked nodes for next time\n+        nodes = {}\n+      }\n+    }\n+  }\n+\n+  addResource(nodes){\n+    if (typeof nodes === 'object' && nodes.length !== 0) {","path":"plugin/exo/Resources/modules/editor/components/object-picker.jsx","position":23,"original_position":23,"commit_id":"c32b72471d41fc2092f7f9f8e52a0e893720744b","original_commit_id":"c32b72471d41fc2092f7f9f8e52a0e893720744b","user":{"login":"stefk","id":880921,"avatar_url":"https://avatars.githubusercontent.com/u/880921?v=3","gravatar_id":"","url":"https://api.github.com/users/stefk","html_url":"https://github.com/stefk","followers_url":"https://api.github.com/users/stefk/followers","following_url":"https://api.github.com/users/stefk/following{/other_user}","gists_url":"https://api.github.com/users/stefk/gists{/gist_id}","starred_url":"https://api.github.com/users/stefk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefk/subscriptions","organizations_url":"https://api.github.com/users/stefk/orgs","repos_url":"https://api.github.com/users/stefk/repos","events_url":"https://api.github.com/users/stefk/events{/privacy}","received_events_url":"https://api.github.com/users/stefk/received_events","type":"User","site_admin":false},"body":"Are you sure `length` is meaningful here (type is object, not array)?","created_at":"2016-11-04T09:50:52Z","updated_at":"2016-11-04T09:50:52Z","html_url":"https://github.com/claroline/Distribution/pull/1514#discussion_r86513926","pull_request_url":"https://api.github.com/repos/claroline/Distribution/pulls/1514","_links":{"self":{"href":"https://api.github.com/repos/claroline/Distribution/pulls/comments/86513926"},"html":{"href":"https://github.com/claroline/Distribution/pull/1514#discussion_r86513926"},"pull_request":{"href":"https://api.github.com/repos/claroline/Distribution/pulls/1514"}}},"pull_request":{"url":"https://api.github.com/repos/claroline/Distribution/pulls/1514","id":92115558,"html_url":"https://github.com/claroline/Distribution/pull/1514","diff_url":"https://github.com/claroline/Distribution/pull/1514.diff","patch_url":"https://github.com/claroline/Distribution/pull/1514.patch","issue_url":"https://api.github.com/repos/claroline/Distribution/issues/1514","number":1514,"state":"open","locked":false,"title":"[ExoBundle] V2 Object Picker","user":{"login":"pitrackster","id":6024701,"avatar_url":"https://avatars.githubusercontent.com/u/6024701?v=3","gravatar_id":"","url":"https://api.github.com/users/pitrackster","html_url":"https://github.com/pitrackster","followers_url":"https://api.github.com/users/pitrackster/followers","following_url":"https://api.github.com/users/pitrackster/following{/other_user}","gists_url":"https://api.github.com/users/pitrackster/gists{/gist_id}","starred_url":"https://api.github.com/users/pitrackster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitrackster/subscriptions","organizations_url":"https://api.github.com/users/pitrackster/orgs","repos_url":"https://api.github.com/users/pitrackster/repos","events_url":"https://api.github.com/users/pitrackster/events{/privacy}","received_events_url":"https://api.github.com/users/pitrackster/received_events","type":"User","site_admin":false},"body":"<!-- please add a description here if needed -->\r\nAdd object picker modal\r\n\r\nFor now it's only a resource picker\r\n\r\n\r\n","created_at":"2016-11-03T09:12:31Z","updated_at":"2016-11-04T09:50:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea321a716026f598fd4e3cad788135b3210cbd73","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/claroline/Distribution/pulls/1514/commits","review_comments_url":"https://api.github.com/repos/claroline/Distribution/pulls/1514/comments","review_comment_url":"https://api.github.com/repos/claroline/Distribution/pulls/comments{/number}","comments_url":"https://api.github.com/repos/claroline/Distribution/issues/1514/comments","statuses_url":"https://api.github.com/repos/claroline/Distribution/statuses/c32b72471d41fc2092f7f9f8e52a0e893720744b","head":{"label":"claroline:object-picker","ref":"object-picker","sha":"c32b72471d41fc2092f7f9f8e52a0e893720744b","user":{"login":"claroline","id":897720,"avatar_url":"https://avatars.githubusercontent.com/u/897720?v=3","gravatar_id":"","url":"https://api.github.com/users/claroline","html_url":"https://github.com/claroline","followers_url":"https://api.github.com/users/claroline/followers","following_url":"https://api.github.com/users/claroline/following{/other_user}","gists_url":"https://api.github.com/users/claroline/gists{/gist_id}","starred_url":"https://api.github.com/users/claroline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claroline/subscriptions","organizations_url":"https://api.github.com/users/claroline/orgs","repos_url":"https://api.github.com/users/claroline/repos","events_url":"https://api.github.com/users/claroline/events{/privacy}","received_events_url":"https://api.github.com/users/claroline/received_events","type":"Organization","site_admin":false},"repo":{"id":54133088,"name":"Distribution","full_name":"claroline/Distribution","owner":{"login":"claroline","id":897720,"avatar_url":"https://avatars.githubusercontent.com/u/897720?v=3","gravatar_id":"","url":"https://api.github.com/users/claroline","html_url":"https://github.com/claroline","followers_url":"https://api.github.com/users/claroline/followers","following_url":"https://api.github.com/users/claroline/following{/other_user}","gists_url":"https://api.github.com/users/claroline/gists{/gist_id}","starred_url":"https://api.github.com/users/claroline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claroline/subscriptions","organizations_url":"https://api.github.com/users/claroline/orgs","repos_url":"https://api.github.com/users/claroline/repos","events_url":"https://api.github.com/users/claroline/events{/privacy}","received_events_url":"https://api.github.com/users/claroline/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/claroline/Distribution","description":"Official Claroline Connect LMS Distribution","fork":false,"url":"https://api.github.com/repos/claroline/Distribution","forks_url":"https://api.github.com/repos/claroline/Distribution/forks","keys_url":"https://api.github.com/repos/claroline/Distribution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/claroline/Distribution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/claroline/Distribution/teams","hooks_url":"https://api.github.com/repos/claroline/Distribution/hooks","issue_events_url":"https://api.github.com/repos/claroline/Distribution/issues/events{/number}","events_url":"https://api.github.com/repos/claroline/Distribution/events","assignees_url":"https://api.github.com/repos/claroline/Distribution/assignees{/user}","branches_url":"https://api.github.com/repos/claroline/Distribution/branches{/branch}","tags_url":"https://api.github.com/repos/claroline/Distribution/tags","blobs_url":"https://api.github.com/repos/claroline/Distribution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/claroline/Distribution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/claroline/Distribution/git/refs{/sha}","trees_url":"https://api.github.com/repos/claroline/Distribution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/claroline/Distribution/statuses/{sha}","languages_url":"https://api.github.com/repos/claroline/Distribution/languages","stargazers_url":"https://api.github.com/repos/claroline/Distribution/stargazers","contributors_url":"https://api.github.com/repos/claroline/Distribution/contributors","subscribers_url":"https://api.github.com/repos/claroline/Distribution/subscribers","subscription_url":"https://api.github.com/repos/claroline/Distribution/subscription","commits_url":"https://api.github.com/repos/claroline/Distribution/commits{/sha}","git_commits_url":"https://api.github.com/repos/claroline/Distribution/git/commits{/sha}","comments_url":"https://api.github.com/repos/claroline/Distribution/comments{/number}","issue_comment_url":"https://api.github.com/repos/claroline/Distribution/issues/comments{/number}","contents_url":"https://api.github.com/repos/claroline/Distribution/contents/{+path}","compare_url":"https://api.github.com/repos/claroline/Distribution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/claroline/Distribution/merges","archive_url":"https://api.github.com/repos/claroline/Distribution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/claroline/Distribution/downloads","issues_url":"https://api.github.com/repos/claroline/Distribution/issues{/number}","pulls_url":"https://api.github.com/repos/claroline/Distribution/pulls{/number}","milestones_url":"https://api.github.com/repos/claroline/Distribution/milestones{/number}","notifications_url":"https://api.github.com/repos/claroline/Distribution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/claroline/Distribution/labels{/name}","releases_url":"https://api.github.com/repos/claroline/Distribution/releases{/id}","deployments_url":"https://api.github.com/repos/claroline/Distribution/deployments","created_at":"2016-03-17T16:17:50Z","updated_at":"2016-10-24T06:44:18Z","pushed_at":"2016-11-04T09:20:54Z","git_url":"git://github.com/claroline/Distribution.git","ssh_url":"git@github.com:claroline/Distribution.git","clone_url":"https://github.com/claroline/Distribution.git","svn_url":"https://github.com/claroline/Distribution","homepage":"http://www.claroline.net","size":69699,"stargazers_count":16,"watchers_count":16,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":284,"forks":13,"open_issues":284,"watchers":16,"default_branch":"master"}},"base":{"label":"claroline:exo-v2","ref":"exo-v2","sha":"1bee7d8a358bd2ba1a96ad2b7c2ddf40e6f42c46","user":{"login":"claroline","id":897720,"avatar_url":"https://avatars.githubusercontent.com/u/897720?v=3","gravatar_id":"","url":"https://api.github.com/users/claroline","html_url":"https://github.com/claroline","followers_url":"https://api.github.com/users/claroline/followers","following_url":"https://api.github.com/users/claroline/following{/other_user}","gists_url":"https://api.github.com/users/claroline/gists{/gist_id}","starred_url":"https://api.github.com/users/claroline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claroline/subscriptions","organizations_url":"https://api.github.com/users/claroline/orgs","repos_url":"https://api.github.com/users/claroline/repos","events_url":"https://api.github.com/users/claroline/events{/privacy}","received_events_url":"https://api.github.com/users/claroline/received_events","type":"Organization","site_admin":false},"repo":{"id":54133088,"name":"Distribution","full_name":"claroline/Distribution","owner":{"login":"claroline","id":897720,"avatar_url":"https://avatars.githubusercontent.com/u/897720?v=3","gravatar_id":"","url":"https://api.github.com/users/claroline","html_url":"https://github.com/claroline","followers_url":"https://api.github.com/users/claroline/followers","following_url":"https://api.github.com/users/claroline/following{/other_user}","gists_url":"https://api.github.com/users/claroline/gists{/gist_id}","starred_url":"https://api.github.com/users/claroline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claroline/subscriptions","organizations_url":"https://api.github.com/users/claroline/orgs","repos_url":"https://api.github.com/users/claroline/repos","events_url":"https://api.github.com/users/claroline/events{/privacy}","received_events_url":"https://api.github.com/users/claroline/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/claroline/Distribution","description":"Official Claroline Connect LMS Distribution","fork":false,"url":"https://api.github.com/repos/claroline/Distribution","forks_url":"https://api.github.com/repos/claroline/Distribution/forks","keys_url":"https://api.github.com/repos/claroline/Distribution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/claroline/Distribution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/claroline/Distribution/teams","hooks_url":"https://api.github.com/repos/claroline/Distribution/hooks","issue_events_url":"https://api.github.com/repos/claroline/Distribution/issues/events{/number}","events_url":"https://api.github.com/repos/claroline/Distribution/events","assignees_url":"https://api.github.com/repos/claroline/Distribution/assignees{/user}","branches_url":"https://api.github.com/repos/claroline/Distribution/branches{/branch}","tags_url":"https://api.github.com/repos/claroline/Distribution/tags","blobs_url":"https://api.github.com/repos/claroline/Distribution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/claroline/Distribution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/claroline/Distribution/git/refs{/sha}","trees_url":"https://api.github.com/repos/claroline/Distribution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/claroline/Distribution/statuses/{sha}","languages_url":"https://api.github.com/repos/claroline/Distribution/languages","stargazers_url":"https://api.github.com/repos/claroline/Distribution/stargazers","contributors_url":"https://api.github.com/repos/claroline/Distribution/contributors","subscribers_url":"https://api.github.com/repos/claroline/Distribution/subscribers","subscription_url":"https://api.github.com/repos/claroline/Distribution/subscription","commits_url":"https://api.github.com/repos/claroline/Distribution/commits{/sha}","git_commits_url":"https://api.github.com/repos/claroline/Distribution/git/commits{/sha}","comments_url":"https://api.github.com/repos/claroline/Distribution/comments{/number}","issue_comment_url":"https://api.github.com/repos/claroline/Distribution/issues/comments{/number}","contents_url":"https://api.github.com/repos/claroline/Distribution/contents/{+path}","compare_url":"https://api.github.com/repos/claroline/Distribution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/claroline/Distribution/merges","archive_url":"https://api.github.com/repos/claroline/Distribution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/claroline/Distribution/downloads","issues_url":"https://api.github.com/repos/claroline/Distribution/issues{/number}","pulls_url":"https://api.github.com/repos/claroline/Distribution/pulls{/number}","milestones_url":"https://api.github.com/repos/claroline/Distribution/milestones{/number}","notifications_url":"https://api.github.com/repos/claroline/Distribution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/claroline/Distribution/labels{/name}","releases_url":"https://api.github.com/repos/claroline/Distribution/releases{/id}","deployments_url":"https://api.github.com/repos/claroline/Distribution/deployments","created_at":"2016-03-17T16:17:50Z","updated_at":"2016-10-24T06:44:18Z","pushed_at":"2016-11-04T09:20:54Z","git_url":"git://github.com/claroline/Distribution.git","ssh_url":"git@github.com:claroline/Distribution.git","clone_url":"https://github.com/claroline/Distribution.git","svn_url":"https://github.com/claroline/Distribution","homepage":"http://www.claroline.net","size":69699,"stargazers_count":16,"watchers_count":16,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":284,"forks":13,"open_issues":284,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/claroline/Distribution/pulls/1514"},"html":{"href":"https://github.com/claroline/Distribution/pull/1514"},"issue":{"href":"https://api.github.com/repos/claroline/Distribution/issues/1514"},"comments":{"href":"https://api.github.com/repos/claroline/Distribution/issues/1514/comments"},"review_comments":{"href":"https://api.github.com/repos/claroline/Distribution/pulls/1514/comments"},"review_comment":{"href":"https://api.github.com/repos/claroline/Distribution/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/claroline/Distribution/pulls/1514/commits"},"statuses":{"href":"https://api.github.com/repos/claroline/Distribution/statuses/c32b72471d41fc2092f7f9f8e52a0e893720744b"}}}}
{"actor":{"display_login":"stefk"}}