{"action":"created","comment":{"url":"https://api.github.com/repos/okfn/ckanext-hierarchy/pulls/comments/172797648","pull_request_review_id":101869925,"id":172797648,"diff_hunk":"@@ -51,11 +51,21 @@ the short name or acronym (more convenient for  display).\n }\n ```\n \n-\n-\n TODO:\n * make the trees prettier with JSTree\n \n+## Configuration\n+\n+With the extension following options could be configured:\n+\n+```ini\n+#   Allowable parent group type. The default preset setting is:\n+hierarchy.parent_group_type = organization\n+\n+#   Allowable parent group filter by user permissions. The default preset setting is:","path":"README.md","position":17,"original_position":17,"commit_id":"2d531c37478aa8290fd708c156ebba79aea16eb1","original_commit_id":"2d531c37478aa8290fd708c156ebba79aea16eb1","user":{"login":"amercader","id":200230,"avatar_url":"https://avatars1.githubusercontent.com/u/200230?v=4","gravatar_id":"","url":"https://api.github.com/users/amercader","html_url":"https://github.com/amercader","followers_url":"https://api.github.com/users/amercader/followers","following_url":"https://api.github.com/users/amercader/following{/other_user}","gists_url":"https://api.github.com/users/amercader/gists{/gist_id}","starred_url":"https://api.github.com/users/amercader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amercader/subscriptions","organizations_url":"https://api.github.com/users/amercader/orgs","repos_url":"https://api.github.com/users/amercader/repos","events_url":"https://api.github.com/users/amercader/events{/privacy}","received_events_url":"https://api.github.com/users/amercader/received_events","type":"User","site_admin":false},"body":"Change docstring to something like:\r\n\r\n> Only allow parent groups that the user belongs to. Defaults to False","created_at":"2018-03-07T10:25:07Z","updated_at":"2018-03-07T10:25:24Z","html_url":"https://github.com/okfn/ckanext-hierarchy/pull/2#discussion_r172797648","pull_request_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/pulls/2","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/okfn/ckanext-hierarchy/pulls/comments/172797648"},"html":{"href":"https://github.com/okfn/ckanext-hierarchy/pull/2#discussion_r172797648"},"pull_request":{"href":"https://api.github.com/repos/okfn/ckanext-hierarchy/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/okfn/ckanext-hierarchy/pulls/2","id":173384892,"html_url":"https://github.com/okfn/ckanext-hierarchy/pull/2","diff_url":"https://github.com/okfn/ckanext-hierarchy/pull/2.diff","patch_url":"https://github.com/okfn/ckanext-hierarchy/pull/2.patch","issue_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/issues/2","number":2,"state":"open","locked":false,"title":"Custom allowable parent groups","user":{"login":"roll","id":557395,"avatar_url":"https://avatars0.githubusercontent.com/u/557395?v=4","gravatar_id":"","url":"https://api.github.com/users/roll","html_url":"https://github.com/roll","followers_url":"https://api.github.com/users/roll/followers","following_url":"https://api.github.com/users/roll/following{/other_user}","gists_url":"https://api.github.com/users/roll/gists{/gist_id}","starred_url":"https://api.github.com/users/roll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roll/subscriptions","organizations_url":"https://api.github.com/users/roll/orgs","repos_url":"https://api.github.com/users/roll/repos","events_url":"https://api.github.com/users/roll/events{/privacy}","received_events_url":"https://api.github.com/users/roll/received_events","type":"User","site_admin":false},"body":"- fixes #1 ","created_at":"2018-03-07T08:42:36Z","updated_at":"2018-03-07T10:25:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b657576ce0b32fe22932bb282dcd26c21cbfaa5e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/pulls/2/commits","review_comments_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/pulls/2/comments","review_comment_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/issues/2/comments","statuses_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/statuses/2d531c37478aa8290fd708c156ebba79aea16eb1","head":{"label":"roll:custom-allowable-parent-groups","ref":"custom-allowable-parent-groups","sha":"2d531c37478aa8290fd708c156ebba79aea16eb1","user":{"login":"roll","id":557395,"avatar_url":"https://avatars0.githubusercontent.com/u/557395?v=4","gravatar_id":"","url":"https://api.github.com/users/roll","html_url":"https://github.com/roll","followers_url":"https://api.github.com/users/roll/followers","following_url":"https://api.github.com/users/roll/following{/other_user}","gists_url":"https://api.github.com/users/roll/gists{/gist_id}","starred_url":"https://api.github.com/users/roll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roll/subscriptions","organizations_url":"https://api.github.com/users/roll/orgs","repos_url":"https://api.github.com/users/roll/repos","events_url":"https://api.github.com/users/roll/events{/privacy}","received_events_url":"https://api.github.com/users/roll/received_events","type":"User","site_admin":false},"repo":{"id":124201773,"name":"ckanext-hierarchy","full_name":"roll/ckanext-hierarchy","owner":{"login":"roll","id":557395,"avatar_url":"https://avatars0.githubusercontent.com/u/557395?v=4","gravatar_id":"","url":"https://api.github.com/users/roll","html_url":"https://github.com/roll","followers_url":"https://api.github.com/users/roll/followers","following_url":"https://api.github.com/users/roll/following{/other_user}","gists_url":"https://api.github.com/users/roll/gists{/gist_id}","starred_url":"https://api.github.com/users/roll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roll/subscriptions","organizations_url":"https://api.github.com/users/roll/orgs","repos_url":"https://api.github.com/users/roll/repos","events_url":"https://api.github.com/users/roll/events{/privacy}","received_events_url":"https://api.github.com/users/roll/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/roll/ckanext-hierarchy","description":"Organization hierarchy - CKAN extension","fork":true,"url":"https://api.github.com/repos/roll/ckanext-hierarchy","forks_url":"https://api.github.com/repos/roll/ckanext-hierarchy/forks","keys_url":"https://api.github.com/repos/roll/ckanext-hierarchy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/roll/ckanext-hierarchy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/roll/ckanext-hierarchy/teams","hooks_url":"https://api.github.com/repos/roll/ckanext-hierarchy/hooks","issue_events_url":"https://api.github.com/repos/roll/ckanext-hierarchy/issues/events{/number}","events_url":"https://api.github.com/repos/roll/ckanext-hierarchy/events","assignees_url":"https://api.github.com/repos/roll/ckanext-hierarchy/assignees{/user}","branches_url":"https://api.github.com/repos/roll/ckanext-hierarchy/branches{/branch}","tags_url":"https://api.github.com/repos/roll/ckanext-hierarchy/tags","blobs_url":"https://api.github.com/repos/roll/ckanext-hierarchy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/roll/ckanext-hierarchy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/roll/ckanext-hierarchy/git/refs{/sha}","trees_url":"https://api.github.com/repos/roll/ckanext-hierarchy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/roll/ckanext-hierarchy/statuses/{sha}","languages_url":"https://api.github.com/repos/roll/ckanext-hierarchy/languages","stargazers_url":"https://api.github.com/repos/roll/ckanext-hierarchy/stargazers","contributors_url":"https://api.github.com/repos/roll/ckanext-hierarchy/contributors","subscribers_url":"https://api.github.com/repos/roll/ckanext-hierarchy/subscribers","subscription_url":"https://api.github.com/repos/roll/ckanext-hierarchy/subscription","commits_url":"https://api.github.com/repos/roll/ckanext-hierarchy/commits{/sha}","git_commits_url":"https://api.github.com/repos/roll/ckanext-hierarchy/git/commits{/sha}","comments_url":"https://api.github.com/repos/roll/ckanext-hierarchy/comments{/number}","issue_comment_url":"https://api.github.com/repos/roll/ckanext-hierarchy/issues/comments{/number}","contents_url":"https://api.github.com/repos/roll/ckanext-hierarchy/contents/{+path}","compare_url":"https://api.github.com/repos/roll/ckanext-hierarchy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/roll/ckanext-hierarchy/merges","archive_url":"https://api.github.com/repos/roll/ckanext-hierarchy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/roll/ckanext-hierarchy/downloads","issues_url":"https://api.github.com/repos/roll/ckanext-hierarchy/issues{/number}","pulls_url":"https://api.github.com/repos/roll/ckanext-hierarchy/pulls{/number}","milestones_url":"https://api.github.com/repos/roll/ckanext-hierarchy/milestones{/number}","notifications_url":"https://api.github.com/repos/roll/ckanext-hierarchy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/roll/ckanext-hierarchy/labels{/name}","releases_url":"https://api.github.com/repos/roll/ckanext-hierarchy/releases{/id}","deployments_url":"https://api.github.com/repos/roll/ckanext-hierarchy/deployments","created_at":"2018-03-07T08:11:15Z","updated_at":"2018-03-07T08:11:16Z","pushed_at":"2018-03-07T08:40:35Z","git_url":"git://github.com/roll/ckanext-hierarchy.git","ssh_url":"git@github.com:roll/ckanext-hierarchy.git","clone_url":"https://github.com/roll/ckanext-hierarchy.git","svn_url":"https://github.com/roll/ckanext-hierarchy","homepage":null,"size":144,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"okfn:master","ref":"master","sha":"a03e75ec5f62d0194ed5f83ac3001dfdad9b65ae","user":{"login":"okfn","id":304263,"avatar_url":"https://avatars2.githubusercontent.com/u/304263?v=4","gravatar_id":"","url":"https://api.github.com/users/okfn","html_url":"https://github.com/okfn","followers_url":"https://api.github.com/users/okfn/followers","following_url":"https://api.github.com/users/okfn/following{/other_user}","gists_url":"https://api.github.com/users/okfn/gists{/gist_id}","starred_url":"https://api.github.com/users/okfn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okfn/subscriptions","organizations_url":"https://api.github.com/users/okfn/orgs","repos_url":"https://api.github.com/users/okfn/repos","events_url":"https://api.github.com/users/okfn/events{/privacy}","received_events_url":"https://api.github.com/users/okfn/received_events","type":"Organization","site_admin":false},"repo":{"id":120903796,"name":"ckanext-hierarchy","full_name":"okfn/ckanext-hierarchy","owner":{"login":"okfn","id":304263,"avatar_url":"https://avatars2.githubusercontent.com/u/304263?v=4","gravatar_id":"","url":"https://api.github.com/users/okfn","html_url":"https://github.com/okfn","followers_url":"https://api.github.com/users/okfn/followers","following_url":"https://api.github.com/users/okfn/following{/other_user}","gists_url":"https://api.github.com/users/okfn/gists{/gist_id}","starred_url":"https://api.github.com/users/okfn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okfn/subscriptions","organizations_url":"https://api.github.com/users/okfn/orgs","repos_url":"https://api.github.com/users/okfn/repos","events_url":"https://api.github.com/users/okfn/events{/privacy}","received_events_url":"https://api.github.com/users/okfn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/okfn/ckanext-hierarchy","description":"Organization hierarchy - CKAN extension","fork":true,"url":"https://api.github.com/repos/okfn/ckanext-hierarchy","forks_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/forks","keys_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/teams","hooks_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/hooks","issue_events_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/issues/events{/number}","events_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/events","assignees_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/assignees{/user}","branches_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/branches{/branch}","tags_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/tags","blobs_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/git/refs{/sha}","trees_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/statuses/{sha}","languages_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/languages","stargazers_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/stargazers","contributors_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/contributors","subscribers_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/subscribers","subscription_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/subscription","commits_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/commits{/sha}","git_commits_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/git/commits{/sha}","comments_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/comments{/number}","issue_comment_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/issues/comments{/number}","contents_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/contents/{+path}","compare_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/merges","archive_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/downloads","issues_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/issues{/number}","pulls_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/pulls{/number}","milestones_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/milestones{/number}","notifications_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/labels{/name}","releases_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/releases{/id}","deployments_url":"https://api.github.com/repos/okfn/ckanext-hierarchy/deployments","created_at":"2018-02-09T12:35:47Z","updated_at":"2018-02-28T09:24:28Z","pushed_at":"2018-03-07T08:42:37Z","git_url":"git://github.com/okfn/ckanext-hierarchy.git","ssh_url":"git@github.com:okfn/ckanext-hierarchy.git","clone_url":"https://github.com/okfn/ckanext-hierarchy.git","svn_url":"https://github.com/okfn/ckanext-hierarchy","homepage":null,"size":140,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/okfn/ckanext-hierarchy/pulls/2"},"html":{"href":"https://github.com/okfn/ckanext-hierarchy/pull/2"},"issue":{"href":"https://api.github.com/repos/okfn/ckanext-hierarchy/issues/2"},"comments":{"href":"https://api.github.com/repos/okfn/ckanext-hierarchy/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/okfn/ckanext-hierarchy/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/okfn/ckanext-hierarchy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/okfn/ckanext-hierarchy/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/okfn/ckanext-hierarchy/statuses/2d531c37478aa8290fd708c156ebba79aea16eb1"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"amercader"}}