{"action":"created","comment":{"url":"https://api.github.com/repos/dhis2/d2-ui/pulls/comments/235745612","pull_request_review_id":177682147,"id":235745612,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTc0NTYxMg==","diff_hunk":"@@ -70,8 +76,36 @@ class OrgUnitSelector extends Component {\n         });\n     };\n \n+    onContextMenuClick = (event, orgUnit, hasChildren, loadChildren) => {\n+        if (!hasChildren) {\n+            return;\n+        }\n+\n+        this.setState({\n+            menuAnchorElement: event.currentTarget,\n+            loadingChildren: true,\n+        });\n+\n+        loadChildren().then((children) => {","path":"packages/org-unit-dialog/src/OrgUnitSelector.js","position":45,"original_position":45,"commit_id":"38764616b3a957c3048bdad0b5569ce785cd73ff","original_commit_id":"38764616b3a957c3048bdad0b5569ce785cd73ff","user":{"login":"jenniferarnesen","id":6113918,"node_id":"MDQ6VXNlcjYxMTM5MTg=","avatar_url":"https://avatars1.githubusercontent.com/u/6113918?v=4","gravatar_id":"","url":"https://api.github.com/users/jenniferarnesen","html_url":"https://github.com/jenniferarnesen","followers_url":"https://api.github.com/users/jenniferarnesen/followers","following_url":"https://api.github.com/users/jenniferarnesen/following{/other_user}","gists_url":"https://api.github.com/users/jenniferarnesen/gists{/gist_id}","starred_url":"https://api.github.com/users/jenniferarnesen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenniferarnesen/subscriptions","organizations_url":"https://api.github.com/users/jenniferarnesen/orgs","repos_url":"https://api.github.com/users/jenniferarnesen/repos","events_url":"https://api.github.com/users/jenniferarnesen/events{/privacy}","received_events_url":"https://api.github.com/users/jenniferarnesen/received_events","type":"User","site_admin":false},"body":"Should this statement be a callback to the setStatement above?","created_at":"2018-11-22T14:33:15Z","updated_at":"2018-11-22T14:33:15Z","html_url":"https://github.com/dhis2/d2-ui/pull/344#discussion_r235745612","pull_request_url":"https://api.github.com/repos/dhis2/d2-ui/pulls/344","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/dhis2/d2-ui/pulls/comments/235745612"},"html":{"href":"https://github.com/dhis2/d2-ui/pull/344#discussion_r235745612"},"pull_request":{"href":"https://api.github.com/repos/dhis2/d2-ui/pulls/344"}}},"pull_request":{"url":"https://api.github.com/repos/dhis2/d2-ui/pulls/344","id":232343852,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMzQzODUy","html_url":"https://github.com/dhis2/d2-ui/pull/344","diff_url":"https://github.com/dhis2/d2-ui/pull/344.diff","patch_url":"https://github.com/dhis2/d2-ui/pull/344.patch","issue_url":"https://api.github.com/repos/dhis2/d2-ui/issues/344","number":344,"state":"open","locked":false,"title":"Task/org unit dialog","user":{"login":"neeilya","id":3954686,"node_id":"MDQ6VXNlcjM5NTQ2ODY=","avatar_url":"https://avatars2.githubusercontent.com/u/3954686?v=4","gravatar_id":"","url":"https://api.github.com/users/neeilya","html_url":"https://github.com/neeilya","followers_url":"https://api.github.com/users/neeilya/followers","following_url":"https://api.github.com/users/neeilya/following{/other_user}","gists_url":"https://api.github.com/users/neeilya/gists{/gist_id}","starred_url":"https://api.github.com/users/neeilya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neeilya/subscriptions","organizations_url":"https://api.github.com/users/neeilya/orgs","repos_url":"https://api.github.com/users/neeilya/repos","events_url":"https://api.github.com/users/neeilya/events{/privacy}","received_events_url":"https://api.github.com/users/neeilya/received_events","type":"User","site_admin":false},"body":"Fixes DHIS2-5207.\r\n\r\nChanges proposed in this pull request:\r\n\r\n- Ability to select org unit children using context menu\r\n","created_at":"2018-11-20T14:48:24Z","updated_at":"2018-11-22T14:33:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e33d0a1029ff234681c6cb2311174e2d816f4cc","assignee":null,"assignees":[],"requested_reviewers":[{"login":"janhenrikoverland","id":1010094,"node_id":"MDQ6VXNlcjEwMTAwOTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1010094?v=4","gravatar_id":"","url":"https://api.github.com/users/janhenrikoverland","html_url":"https://github.com/janhenrikoverland","followers_url":"https://api.github.com/users/janhenrikoverland/followers","following_url":"https://api.github.com/users/janhenrikoverland/following{/other_user}","gists_url":"https://api.github.com/users/janhenrikoverland/gists{/gist_id}","starred_url":"https://api.github.com/users/janhenrikoverland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janhenrikoverland/subscriptions","organizations_url":"https://api.github.com/users/janhenrikoverland/orgs","repos_url":"https://api.github.com/users/janhenrikoverland/repos","events_url":"https://api.github.com/users/janhenrikoverland/events{/privacy}","received_events_url":"https://api.github.com/users/janhenrikoverland/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dhis2/d2-ui/pulls/344/commits","review_comments_url":"https://api.github.com/repos/dhis2/d2-ui/pulls/344/comments","review_comment_url":"https://api.github.com/repos/dhis2/d2-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dhis2/d2-ui/issues/344/comments","statuses_url":"https://api.github.com/repos/dhis2/d2-ui/statuses/38764616b3a957c3048bdad0b5569ce785cd73ff","head":{"label":"dhis2:task/org-unit-dialog","ref":"task/org-unit-dialog","sha":"38764616b3a957c3048bdad0b5569ce785cd73ff","user":{"login":"dhis2","id":1089987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODk5ODc=","avatar_url":"https://avatars2.githubusercontent.com/u/1089987?v=4","gravatar_id":"","url":"https://api.github.com/users/dhis2","html_url":"https://github.com/dhis2","followers_url":"https://api.github.com/users/dhis2/followers","following_url":"https://api.github.com/users/dhis2/following{/other_user}","gists_url":"https://api.github.com/users/dhis2/gists{/gist_id}","starred_url":"https://api.github.com/users/dhis2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhis2/subscriptions","organizations_url":"https://api.github.com/users/dhis2/orgs","repos_url":"https://api.github.com/users/dhis2/repos","events_url":"https://api.github.com/users/dhis2/events{/privacy}","received_events_url":"https://api.github.com/users/dhis2/received_events","type":"Organization","site_admin":false},"repo":{"id":42853916,"node_id":"MDEwOlJlcG9zaXRvcnk0Mjg1MzkxNg==","name":"d2-ui","full_name":"dhis2/d2-ui","private":false,"owner":{"login":"dhis2","id":1089987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODk5ODc=","avatar_url":"https://avatars2.githubusercontent.com/u/1089987?v=4","gravatar_id":"","url":"https://api.github.com/users/dhis2","html_url":"https://github.com/dhis2","followers_url":"https://api.github.com/users/dhis2/followers","following_url":"https://api.github.com/users/dhis2/following{/other_user}","gists_url":"https://api.github.com/users/dhis2/gists{/gist_id}","starred_url":"https://api.github.com/users/dhis2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhis2/subscriptions","organizations_url":"https://api.github.com/users/dhis2/orgs","repos_url":"https://api.github.com/users/dhis2/repos","events_url":"https://api.github.com/users/dhis2/events{/privacy}","received_events_url":"https://api.github.com/users/dhis2/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dhis2/d2-ui","description":"UI and application wiring library for DHIS 2 apps","fork":false,"url":"https://api.github.com/repos/dhis2/d2-ui","forks_url":"https://api.github.com/repos/dhis2/d2-ui/forks","keys_url":"https://api.github.com/repos/dhis2/d2-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhis2/d2-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhis2/d2-ui/teams","hooks_url":"https://api.github.com/repos/dhis2/d2-ui/hooks","issue_events_url":"https://api.github.com/repos/dhis2/d2-ui/issues/events{/number}","events_url":"https://api.github.com/repos/dhis2/d2-ui/events","assignees_url":"https://api.github.com/repos/dhis2/d2-ui/assignees{/user}","branches_url":"https://api.github.com/repos/dhis2/d2-ui/branches{/branch}","tags_url":"https://api.github.com/repos/dhis2/d2-ui/tags","blobs_url":"https://api.github.com/repos/dhis2/d2-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhis2/d2-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhis2/d2-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhis2/d2-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhis2/d2-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/dhis2/d2-ui/languages","stargazers_url":"https://api.github.com/repos/dhis2/d2-ui/stargazers","contributors_url":"https://api.github.com/repos/dhis2/d2-ui/contributors","subscribers_url":"https://api.github.com/repos/dhis2/d2-ui/subscribers","subscription_url":"https://api.github.com/repos/dhis2/d2-ui/subscription","commits_url":"https://api.github.com/repos/dhis2/d2-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhis2/d2-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhis2/d2-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhis2/d2-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhis2/d2-ui/contents/{+path}","compare_url":"https://api.github.com/repos/dhis2/d2-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhis2/d2-ui/merges","archive_url":"https://api.github.com/repos/dhis2/d2-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhis2/d2-ui/downloads","issues_url":"https://api.github.com/repos/dhis2/d2-ui/issues{/number}","pulls_url":"https://api.github.com/repos/dhis2/d2-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/dhis2/d2-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/dhis2/d2-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhis2/d2-ui/labels{/name}","releases_url":"https://api.github.com/repos/dhis2/d2-ui/releases{/id}","deployments_url":"https://api.github.com/repos/dhis2/d2-ui/deployments","created_at":"2015-09-21T08:34:23Z","updated_at":"2018-11-21T12:17:36Z","pushed_at":"2018-11-22T13:56:26Z","git_url":"git://github.com/dhis2/d2-ui.git","ssh_url":"git@github.com:dhis2/d2-ui.git","clone_url":"https://github.com/dhis2/d2-ui.git","svn_url":"https://github.com/dhis2/d2-ui","homepage":"https://www.dhis2.org","size":6087,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":35,"license":null,"forks":33,"open_issues":35,"watchers":10,"default_branch":"master"}},"base":{"label":"dhis2:master","ref":"master","sha":"f2007cab8de067056044671a688873e35737ca1e","user":{"login":"dhis2","id":1089987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODk5ODc=","avatar_url":"https://avatars2.githubusercontent.com/u/1089987?v=4","gravatar_id":"","url":"https://api.github.com/users/dhis2","html_url":"https://github.com/dhis2","followers_url":"https://api.github.com/users/dhis2/followers","following_url":"https://api.github.com/users/dhis2/following{/other_user}","gists_url":"https://api.github.com/users/dhis2/gists{/gist_id}","starred_url":"https://api.github.com/users/dhis2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhis2/subscriptions","organizations_url":"https://api.github.com/users/dhis2/orgs","repos_url":"https://api.github.com/users/dhis2/repos","events_url":"https://api.github.com/users/dhis2/events{/privacy}","received_events_url":"https://api.github.com/users/dhis2/received_events","type":"Organization","site_admin":false},"repo":{"id":42853916,"node_id":"MDEwOlJlcG9zaXRvcnk0Mjg1MzkxNg==","name":"d2-ui","full_name":"dhis2/d2-ui","private":false,"owner":{"login":"dhis2","id":1089987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODk5ODc=","avatar_url":"https://avatars2.githubusercontent.com/u/1089987?v=4","gravatar_id":"","url":"https://api.github.com/users/dhis2","html_url":"https://github.com/dhis2","followers_url":"https://api.github.com/users/dhis2/followers","following_url":"https://api.github.com/users/dhis2/following{/other_user}","gists_url":"https://api.github.com/users/dhis2/gists{/gist_id}","starred_url":"https://api.github.com/users/dhis2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhis2/subscriptions","organizations_url":"https://api.github.com/users/dhis2/orgs","repos_url":"https://api.github.com/users/dhis2/repos","events_url":"https://api.github.com/users/dhis2/events{/privacy}","received_events_url":"https://api.github.com/users/dhis2/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dhis2/d2-ui","description":"UI and application wiring library for DHIS 2 apps","fork":false,"url":"https://api.github.com/repos/dhis2/d2-ui","forks_url":"https://api.github.com/repos/dhis2/d2-ui/forks","keys_url":"https://api.github.com/repos/dhis2/d2-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhis2/d2-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhis2/d2-ui/teams","hooks_url":"https://api.github.com/repos/dhis2/d2-ui/hooks","issue_events_url":"https://api.github.com/repos/dhis2/d2-ui/issues/events{/number}","events_url":"https://api.github.com/repos/dhis2/d2-ui/events","assignees_url":"https://api.github.com/repos/dhis2/d2-ui/assignees{/user}","branches_url":"https://api.github.com/repos/dhis2/d2-ui/branches{/branch}","tags_url":"https://api.github.com/repos/dhis2/d2-ui/tags","blobs_url":"https://api.github.com/repos/dhis2/d2-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhis2/d2-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhis2/d2-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhis2/d2-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhis2/d2-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/dhis2/d2-ui/languages","stargazers_url":"https://api.github.com/repos/dhis2/d2-ui/stargazers","contributors_url":"https://api.github.com/repos/dhis2/d2-ui/contributors","subscribers_url":"https://api.github.com/repos/dhis2/d2-ui/subscribers","subscription_url":"https://api.github.com/repos/dhis2/d2-ui/subscription","commits_url":"https://api.github.com/repos/dhis2/d2-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhis2/d2-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhis2/d2-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhis2/d2-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhis2/d2-ui/contents/{+path}","compare_url":"https://api.github.com/repos/dhis2/d2-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhis2/d2-ui/merges","archive_url":"https://api.github.com/repos/dhis2/d2-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhis2/d2-ui/downloads","issues_url":"https://api.github.com/repos/dhis2/d2-ui/issues{/number}","pulls_url":"https://api.github.com/repos/dhis2/d2-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/dhis2/d2-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/dhis2/d2-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhis2/d2-ui/labels{/name}","releases_url":"https://api.github.com/repos/dhis2/d2-ui/releases{/id}","deployments_url":"https://api.github.com/repos/dhis2/d2-ui/deployments","created_at":"2015-09-21T08:34:23Z","updated_at":"2018-11-21T12:17:36Z","pushed_at":"2018-11-22T13:56:26Z","git_url":"git://github.com/dhis2/d2-ui.git","ssh_url":"git@github.com:dhis2/d2-ui.git","clone_url":"https://github.com/dhis2/d2-ui.git","svn_url":"https://github.com/dhis2/d2-ui","homepage":"https://www.dhis2.org","size":6087,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":35,"license":null,"forks":33,"open_issues":35,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dhis2/d2-ui/pulls/344"},"html":{"href":"https://github.com/dhis2/d2-ui/pull/344"},"issue":{"href":"https://api.github.com/repos/dhis2/d2-ui/issues/344"},"comments":{"href":"https://api.github.com/repos/dhis2/d2-ui/issues/344/comments"},"review_comments":{"href":"https://api.github.com/repos/dhis2/d2-ui/pulls/344/comments"},"review_comment":{"href":"https://api.github.com/repos/dhis2/d2-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dhis2/d2-ui/pulls/344/commits"},"statuses":{"href":"https://api.github.com/repos/dhis2/d2-ui/statuses/38764616b3a957c3048bdad0b5569ce785cd73ff"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"jenniferarnesen"}}