{"action":"created","comment":{"url":"https://api.github.com/repos/senaite/senaite.health/pulls/comments/200643828","pull_request_review_id":134997533,"id":200643828,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDY0MzgyOA==","diff_hunk":"@@ -94,3 +100,32 @@ def folderitems(self):\n                  (items[x]['url'], items[x]['getFullname'])\n \n         return items\n+\n+    def _apply_filter_by_client(self):","path":"bika/health/browser/doctors/folder_view.py","position":43,"original_position":43,"commit_id":"eebda187627cad3804bb1304e2949736bc642473","original_commit_id":"eebda187627cad3804bb1304e2949736bc642473","user":{"login":"juangallostra","id":9968427,"node_id":"MDQ6VXNlcjk5Njg0Mjc=","avatar_url":"https://avatars3.githubusercontent.com/u/9968427?v=4","gravatar_id":"","url":"https://api.github.com/users/juangallostra","html_url":"https://github.com/juangallostra","followers_url":"https://api.github.com/users/juangallostra/followers","following_url":"https://api.github.com/users/juangallostra/following{/other_user}","gists_url":"https://api.github.com/users/juangallostra/gists{/gist_id}","starred_url":"https://api.github.com/users/juangallostra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juangallostra/subscriptions","organizations_url":"https://api.github.com/users/juangallostra/orgs","repos_url":"https://api.github.com/users/juangallostra/repos","events_url":"https://api.github.com/users/juangallostra/events{/privacy}","received_events_url":"https://api.github.com/users/juangallostra/received_events","type":"User","site_admin":false},"body":"Maybe we could add a docstring that documents the method? Something like:\r\n```python\r\n\"\"\"\r\nFrom the current user and the context, update the filter that will be \r\nused for filtering the Doctor's list. \r\n\"\"\"\r\n```","created_at":"2018-07-06T12:53:01Z","updated_at":"2018-07-06T12:54:01Z","html_url":"https://github.com/senaite/senaite.health/pull/83#discussion_r200643828","pull_request_url":"https://api.github.com/repos/senaite/senaite.health/pulls/83","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/senaite/senaite.health/pulls/comments/200643828"},"html":{"href":"https://github.com/senaite/senaite.health/pull/83#discussion_r200643828"},"pull_request":{"href":"https://api.github.com/repos/senaite/senaite.health/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/senaite/senaite.health/pulls/83","id":199303318,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MzAzMzE4","html_url":"https://github.com/senaite/senaite.health/pull/83","diff_url":"https://github.com/senaite/senaite.health/pull/83.diff","patch_url":"https://github.com/senaite/senaite.health/pull/83.patch","issue_url":"https://api.github.com/repos/senaite/senaite.health/issues/83","number":83,"state":"open","locked":false,"title":"Client contact can create and edit Doctors.","user":{"login":"Espurna","id":7425587,"node_id":"MDQ6VXNlcjc0MjU1ODc=","avatar_url":"https://avatars2.githubusercontent.com/u/7425587?v=4","gravatar_id":"","url":"https://api.github.com/users/Espurna","html_url":"https://github.com/Espurna","followers_url":"https://api.github.com/users/Espurna/followers","following_url":"https://api.github.com/users/Espurna/following{/other_user}","gists_url":"https://api.github.com/users/Espurna/gists{/gist_id}","starred_url":"https://api.github.com/users/Espurna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Espurna/subscriptions","organizations_url":"https://api.github.com/users/Espurna/orgs","repos_url":"https://api.github.com/users/Espurna/repos","events_url":"https://api.github.com/users/Espurna/events{/privacy}","received_events_url":"https://api.github.com/users/Espurna/received_events","type":"User","site_admin":false},"body":"## Description of the issue/feature this PR addresses\r\n\r\n- Client contact can create and edit Doctors.\r\n- When a Client contact creates a Doctors, the Doctors is assigned automatically to the same Client the contact belongs to.\r\n- Client contact will only be able to edit Doctors assigned to the same Client as the contact.\r\n- Only Doctors that belong to the same Client as the Client contact will be displayed in Doctors list and selection widgets.\r\n\r\n## Current behavior before PR\r\n\r\nClient contact has no privileges over doctors\r\n\r\n## Desired behavior after PR is merged\r\n\r\nClient contact can create and edit Doctors.\r\n\r\n--\r\nI confirm I have tested this PR thoroughly and coded it according to [PEP8][1]\r\nand [Plone's Python styleguide][2] standards.\r\n\r\n[1]: https://www.python.org/dev/peps/pep-0008\r\n[2]: https://docs.plone.org/develop/styleguide/python.html\r\n","created_at":"2018-07-04T17:48:22Z","updated_at":"2018-07-06T12:54:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab8b5bd3284e80595c02298c321c186226661a8a","assignee":null,"assignees":[],"requested_reviewers":[{"login":"xispa","id":832627,"node_id":"MDQ6VXNlcjgzMjYyNw==","avatar_url":"https://avatars2.githubusercontent.com/u/832627?v=4","gravatar_id":"","url":"https://api.github.com/users/xispa","html_url":"https://github.com/xispa","followers_url":"https://api.github.com/users/xispa/followers","following_url":"https://api.github.com/users/xispa/following{/other_user}","gists_url":"https://api.github.com/users/xispa/gists{/gist_id}","starred_url":"https://api.github.com/users/xispa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xispa/subscriptions","organizations_url":"https://api.github.com/users/xispa/orgs","repos_url":"https://api.github.com/users/xispa/repos","events_url":"https://api.github.com/users/xispa/events{/privacy}","received_events_url":"https://api.github.com/users/xispa/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":407558796,"node_id":"MDU6TGFiZWw0MDc1NTg3OTY=","url":"https://api.github.com/repos/senaite/senaite.health/labels/addition","name":"addition","color":"128A0C","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/senaite/senaite.health/pulls/83/commits","review_comments_url":"https://api.github.com/repos/senaite/senaite.health/pulls/83/comments","review_comment_url":"https://api.github.com/repos/senaite/senaite.health/pulls/comments{/number}","comments_url":"https://api.github.com/repos/senaite/senaite.health/issues/83/comments","statuses_url":"https://api.github.com/repos/senaite/senaite.health/statuses/eebda187627cad3804bb1304e2949736bc642473","head":{"label":"senaite:doctor-client-relation","ref":"doctor-client-relation","sha":"eebda187627cad3804bb1304e2949736bc642473","user":{"login":"senaite","id":29165573,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTY1NTcz","avatar_url":"https://avatars1.githubusercontent.com/u/29165573?v=4","gravatar_id":"","url":"https://api.github.com/users/senaite","html_url":"https://github.com/senaite","followers_url":"https://api.github.com/users/senaite/followers","following_url":"https://api.github.com/users/senaite/following{/other_user}","gists_url":"https://api.github.com/users/senaite/gists{/gist_id}","starred_url":"https://api.github.com/users/senaite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senaite/subscriptions","organizations_url":"https://api.github.com/users/senaite/orgs","repos_url":"https://api.github.com/users/senaite/repos","events_url":"https://api.github.com/users/senaite/events{/privacy}","received_events_url":"https://api.github.com/users/senaite/received_events","type":"Organization","site_admin":false},"repo":{"id":63250624,"node_id":"MDEwOlJlcG9zaXRvcnk2MzI1MDYyNA==","name":"senaite.health","full_name":"senaite/senaite.health","owner":{"login":"senaite","id":29165573,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTY1NTcz","avatar_url":"https://avatars1.githubusercontent.com/u/29165573?v=4","gravatar_id":"","url":"https://api.github.com/users/senaite","html_url":"https://github.com/senaite","followers_url":"https://api.github.com/users/senaite/followers","following_url":"https://api.github.com/users/senaite/following{/other_user}","gists_url":"https://api.github.com/users/senaite/gists{/gist_id}","starred_url":"https://api.github.com/users/senaite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senaite/subscriptions","organizations_url":"https://api.github.com/users/senaite/orgs","repos_url":"https://api.github.com/users/senaite/repos","events_url":"https://api.github.com/users/senaite/events{/privacy}","received_events_url":"https://api.github.com/users/senaite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/senaite/senaite.health","description":"SENAITE extension for Health Care Labs, the evolution of Bika Health","fork":false,"url":"https://api.github.com/repos/senaite/senaite.health","forks_url":"https://api.github.com/repos/senaite/senaite.health/forks","keys_url":"https://api.github.com/repos/senaite/senaite.health/keys{/key_id}","collaborators_url":"https://api.github.com/repos/senaite/senaite.health/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/senaite/senaite.health/teams","hooks_url":"https://api.github.com/repos/senaite/senaite.health/hooks","issue_events_url":"https://api.github.com/repos/senaite/senaite.health/issues/events{/number}","events_url":"https://api.github.com/repos/senaite/senaite.health/events","assignees_url":"https://api.github.com/repos/senaite/senaite.health/assignees{/user}","branches_url":"https://api.github.com/repos/senaite/senaite.health/branches{/branch}","tags_url":"https://api.github.com/repos/senaite/senaite.health/tags","blobs_url":"https://api.github.com/repos/senaite/senaite.health/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/senaite/senaite.health/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/senaite/senaite.health/git/refs{/sha}","trees_url":"https://api.github.com/repos/senaite/senaite.health/git/trees{/sha}","statuses_url":"https://api.github.com/repos/senaite/senaite.health/statuses/{sha}","languages_url":"https://api.github.com/repos/senaite/senaite.health/languages","stargazers_url":"https://api.github.com/repos/senaite/senaite.health/stargazers","contributors_url":"https://api.github.com/repos/senaite/senaite.health/contributors","subscribers_url":"https://api.github.com/repos/senaite/senaite.health/subscribers","subscription_url":"https://api.github.com/repos/senaite/senaite.health/subscription","commits_url":"https://api.github.com/repos/senaite/senaite.health/commits{/sha}","git_commits_url":"https://api.github.com/repos/senaite/senaite.health/git/commits{/sha}","comments_url":"https://api.github.com/repos/senaite/senaite.health/comments{/number}","issue_comment_url":"https://api.github.com/repos/senaite/senaite.health/issues/comments{/number}","contents_url":"https://api.github.com/repos/senaite/senaite.health/contents/{+path}","compare_url":"https://api.github.com/repos/senaite/senaite.health/compare/{base}...{head}","merges_url":"https://api.github.com/repos/senaite/senaite.health/merges","archive_url":"https://api.github.com/repos/senaite/senaite.health/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/senaite/senaite.health/downloads","issues_url":"https://api.github.com/repos/senaite/senaite.health/issues{/number}","pulls_url":"https://api.github.com/repos/senaite/senaite.health/pulls{/number}","milestones_url":"https://api.github.com/repos/senaite/senaite.health/milestones{/number}","notifications_url":"https://api.github.com/repos/senaite/senaite.health/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/senaite/senaite.health/labels{/name}","releases_url":"https://api.github.com/repos/senaite/senaite.health/releases{/id}","deployments_url":"https://api.github.com/repos/senaite/senaite.health/deployments","created_at":"2016-07-13T13:58:09Z","updated_at":"2018-06-29T10:04:36Z","pushed_at":"2018-07-04T17:48:23Z","git_url":"git://github.com/senaite/senaite.health.git","ssh_url":"git@github.com:senaite/senaite.health.git","clone_url":"https://github.com/senaite/senaite.health.git","svn_url":"https://github.com/senaite/senaite.health","homepage":"https://senaite.com","size":5793,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":7,"open_issues":4,"watchers":4,"default_branch":"master"}},"base":{"label":"senaite:master","ref":"master","sha":"a0256c98dbe0da2a0f43491a87e72c675499c716","user":{"login":"senaite","id":29165573,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTY1NTcz","avatar_url":"https://avatars1.githubusercontent.com/u/29165573?v=4","gravatar_id":"","url":"https://api.github.com/users/senaite","html_url":"https://github.com/senaite","followers_url":"https://api.github.com/users/senaite/followers","following_url":"https://api.github.com/users/senaite/following{/other_user}","gists_url":"https://api.github.com/users/senaite/gists{/gist_id}","starred_url":"https://api.github.com/users/senaite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senaite/subscriptions","organizations_url":"https://api.github.com/users/senaite/orgs","repos_url":"https://api.github.com/users/senaite/repos","events_url":"https://api.github.com/users/senaite/events{/privacy}","received_events_url":"https://api.github.com/users/senaite/received_events","type":"Organization","site_admin":false},"repo":{"id":63250624,"node_id":"MDEwOlJlcG9zaXRvcnk2MzI1MDYyNA==","name":"senaite.health","full_name":"senaite/senaite.health","owner":{"login":"senaite","id":29165573,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTY1NTcz","avatar_url":"https://avatars1.githubusercontent.com/u/29165573?v=4","gravatar_id":"","url":"https://api.github.com/users/senaite","html_url":"https://github.com/senaite","followers_url":"https://api.github.com/users/senaite/followers","following_url":"https://api.github.com/users/senaite/following{/other_user}","gists_url":"https://api.github.com/users/senaite/gists{/gist_id}","starred_url":"https://api.github.com/users/senaite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senaite/subscriptions","organizations_url":"https://api.github.com/users/senaite/orgs","repos_url":"https://api.github.com/users/senaite/repos","events_url":"https://api.github.com/users/senaite/events{/privacy}","received_events_url":"https://api.github.com/users/senaite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/senaite/senaite.health","description":"SENAITE extension for Health Care Labs, the evolution of Bika Health","fork":false,"url":"https://api.github.com/repos/senaite/senaite.health","forks_url":"https://api.github.com/repos/senaite/senaite.health/forks","keys_url":"https://api.github.com/repos/senaite/senaite.health/keys{/key_id}","collaborators_url":"https://api.github.com/repos/senaite/senaite.health/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/senaite/senaite.health/teams","hooks_url":"https://api.github.com/repos/senaite/senaite.health/hooks","issue_events_url":"https://api.github.com/repos/senaite/senaite.health/issues/events{/number}","events_url":"https://api.github.com/repos/senaite/senaite.health/events","assignees_url":"https://api.github.com/repos/senaite/senaite.health/assignees{/user}","branches_url":"https://api.github.com/repos/senaite/senaite.health/branches{/branch}","tags_url":"https://api.github.com/repos/senaite/senaite.health/tags","blobs_url":"https://api.github.com/repos/senaite/senaite.health/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/senaite/senaite.health/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/senaite/senaite.health/git/refs{/sha}","trees_url":"https://api.github.com/repos/senaite/senaite.health/git/trees{/sha}","statuses_url":"https://api.github.com/repos/senaite/senaite.health/statuses/{sha}","languages_url":"https://api.github.com/repos/senaite/senaite.health/languages","stargazers_url":"https://api.github.com/repos/senaite/senaite.health/stargazers","contributors_url":"https://api.github.com/repos/senaite/senaite.health/contributors","subscribers_url":"https://api.github.com/repos/senaite/senaite.health/subscribers","subscription_url":"https://api.github.com/repos/senaite/senaite.health/subscription","commits_url":"https://api.github.com/repos/senaite/senaite.health/commits{/sha}","git_commits_url":"https://api.github.com/repos/senaite/senaite.health/git/commits{/sha}","comments_url":"https://api.github.com/repos/senaite/senaite.health/comments{/number}","issue_comment_url":"https://api.github.com/repos/senaite/senaite.health/issues/comments{/number}","contents_url":"https://api.github.com/repos/senaite/senaite.health/contents/{+path}","compare_url":"https://api.github.com/repos/senaite/senaite.health/compare/{base}...{head}","merges_url":"https://api.github.com/repos/senaite/senaite.health/merges","archive_url":"https://api.github.com/repos/senaite/senaite.health/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/senaite/senaite.health/downloads","issues_url":"https://api.github.com/repos/senaite/senaite.health/issues{/number}","pulls_url":"https://api.github.com/repos/senaite/senaite.health/pulls{/number}","milestones_url":"https://api.github.com/repos/senaite/senaite.health/milestones{/number}","notifications_url":"https://api.github.com/repos/senaite/senaite.health/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/senaite/senaite.health/labels{/name}","releases_url":"https://api.github.com/repos/senaite/senaite.health/releases{/id}","deployments_url":"https://api.github.com/repos/senaite/senaite.health/deployments","created_at":"2016-07-13T13:58:09Z","updated_at":"2018-06-29T10:04:36Z","pushed_at":"2018-07-04T17:48:23Z","git_url":"git://github.com/senaite/senaite.health.git","ssh_url":"git@github.com:senaite/senaite.health.git","clone_url":"https://github.com/senaite/senaite.health.git","svn_url":"https://github.com/senaite/senaite.health","homepage":"https://senaite.com","size":5793,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":7,"open_issues":4,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/senaite/senaite.health/pulls/83"},"html":{"href":"https://github.com/senaite/senaite.health/pull/83"},"issue":{"href":"https://api.github.com/repos/senaite/senaite.health/issues/83"},"comments":{"href":"https://api.github.com/repos/senaite/senaite.health/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/senaite/senaite.health/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/senaite/senaite.health/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/senaite/senaite.health/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/senaite/senaite.health/statuses/eebda187627cad3804bb1304e2949736bc642473"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"juangallostra"}}