{"action":"created","comment":{"url":"https://api.github.com/repos/phenotips/phenotips/pulls/comments/36670003","id":36670003,"diff_hunk":"@@ -70,4 +87,59 @@\n      * @return true if removal was successful\n      */\n     boolean removeMember(Patient patient);\n+\n+    /**\n+     * Generates a JSON data structure that describes the family and its members.\n+     *\n+     * @return JSON with info about the family, each member and the current user's permissions.\n+     */\n+    JSON getInformationAsJSON();","path":"components/family-studies/api/src/main/java/org/phenotips/studies/family/Family.java","position":66,"original_position":66,"commit_id":"679be0f6e956086f63611babb8e4b88615c5e9c8","original_commit_id":"679be0f6e956086f63611babb8e4b88615c5e9c8","user":{"login":"sdumitriu","id":88663,"avatar_url":"https://avatars.githubusercontent.com/u/88663?v=3","gravatar_id":"","url":"https://api.github.com/users/sdumitriu","html_url":"https://github.com/sdumitriu","followers_url":"https://api.github.com/users/sdumitriu/followers","following_url":"https://api.github.com/users/sdumitriu/following{/other_user}","gists_url":"https://api.github.com/users/sdumitriu/gists{/gist_id}","starred_url":"https://api.github.com/users/sdumitriu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdumitriu/subscriptions","organizations_url":"https://api.github.com/users/sdumitriu/orgs","repos_url":"https://api.github.com/users/sdumitriu/repos","events_url":"https://api.github.com/users/sdumitriu/events{/privacy}","received_events_url":"https://api.github.com/users/sdumitriu/received_events","type":"User","site_admin":false},"body":"Usually this kind of method is called `toJSON()` in the other APIs.","created_at":"2015-08-10T18:55:23Z","updated_at":"2015-08-10T18:55:23Z","html_url":"https://github.com/phenotips/phenotips/pull/1831#discussion_r36670003","pull_request_url":"https://api.github.com/repos/phenotips/phenotips/pulls/1831","_links":{"self":{"href":"https://api.github.com/repos/phenotips/phenotips/pulls/comments/36670003"},"html":{"href":"https://github.com/phenotips/phenotips/pull/1831#discussion_r36670003"},"pull_request":{"href":"https://api.github.com/repos/phenotips/phenotips/pulls/1831"}}},"pull_request":{"url":"https://api.github.com/repos/phenotips/phenotips/pulls/1831","id":40148177,"html_url":"https://github.com/phenotips/phenotips/pull/1831","diff_url":"https://github.com/phenotips/phenotips/pull/1831.diff","patch_url":"https://github.com/phenotips/phenotips/pull/1831.patch","issue_url":"https://api.github.com/repos/phenotips/phenotips/issues/1831","number":1831,"state":"open","locked":false,"title":"Family studies","user":{"login":"itaiGershtansky","id":6307742,"avatar_url":"https://avatars.githubusercontent.com/u/6307742?v=3","gravatar_id":"","url":"https://api.github.com/users/itaiGershtansky","html_url":"https://github.com/itaiGershtansky","followers_url":"https://api.github.com/users/itaiGershtansky/followers","following_url":"https://api.github.com/users/itaiGershtansky/following{/other_user}","gists_url":"https://api.github.com/users/itaiGershtansky/gists{/gist_id}","starred_url":"https://api.github.com/users/itaiGershtansky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itaiGershtansky/subscriptions","organizations_url":"https://api.github.com/users/itaiGershtansky/orgs","repos_url":"https://api.github.com/users/itaiGershtansky/repos","events_url":"https://api.github.com/users/itaiGershtansky/events{/privacy}","received_events_url":"https://api.github.com/users/itaiGershtansky/received_events","type":"User","site_admin":false},"body":"Changed FamilyScriptService to work with new family classes instead of with FamilyUtils:\r\n1. Created Family and FamilyRepository interfaces. FamilyRepository is used to create and retrieve families.\r\n2. XWikiFamily and XWikiFamilyRepository implement Family and FamilyRepository. The functionality of FamilyUtilsImpl is mostly moved to these two new classes.\r\n3. XWikiFamilyPermissions handles setting permissions for a family.\r\n4. XWikiFamilyExport exports information about family or families in HTML or JSON format. It uses FamilySearchResult.\r\n\r\nExceptions:\r\n1. FamilyUtilsImpl can still create families, and this is used in some of the classes that have not been yet redesigned.\r\n2. Removing a family member is not done yet using the Family api.\r\n3. There are still some functions to FamilyScriptService that use some of the classes that have not been yet redesigned.","created_at":"2015-07-16T16:25:29Z","updated_at":"2015-08-10T18:55:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1dcd7b0870ac60b91e015d5b65d9ff4b0017c14b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/phenotips/phenotips/pulls/1831/commits","review_comments_url":"https://api.github.com/repos/phenotips/phenotips/pulls/1831/comments","review_comment_url":"https://api.github.com/repos/phenotips/phenotips/pulls/comments{/number}","comments_url":"https://api.github.com/repos/phenotips/phenotips/issues/1831/comments","statuses_url":"https://api.github.com/repos/phenotips/phenotips/statuses/679be0f6e956086f63611babb8e4b88615c5e9c8","head":{"label":"itaiGershtansky:family-studies","ref":"family-studies","sha":"679be0f6e956086f63611babb8e4b88615c5e9c8","user":{"login":"itaiGershtansky","id":6307742,"avatar_url":"https://avatars.githubusercontent.com/u/6307742?v=3","gravatar_id":"","url":"https://api.github.com/users/itaiGershtansky","html_url":"https://github.com/itaiGershtansky","followers_url":"https://api.github.com/users/itaiGershtansky/followers","following_url":"https://api.github.com/users/itaiGershtansky/following{/other_user}","gists_url":"https://api.github.com/users/itaiGershtansky/gists{/gist_id}","starred_url":"https://api.github.com/users/itaiGershtansky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itaiGershtansky/subscriptions","organizations_url":"https://api.github.com/users/itaiGershtansky/orgs","repos_url":"https://api.github.com/users/itaiGershtansky/repos","events_url":"https://api.github.com/users/itaiGershtansky/events{/privacy}","received_events_url":"https://api.github.com/users/itaiGershtansky/received_events","type":"User","site_admin":false},"repo":{"id":36382976,"name":"phenotips","full_name":"itaiGershtansky/phenotips","owner":{"login":"itaiGershtansky","id":6307742,"avatar_url":"https://avatars.githubusercontent.com/u/6307742?v=3","gravatar_id":"","url":"https://api.github.com/users/itaiGershtansky","html_url":"https://github.com/itaiGershtansky","followers_url":"https://api.github.com/users/itaiGershtansky/followers","following_url":"https://api.github.com/users/itaiGershtansky/following{/other_user}","gists_url":"https://api.github.com/users/itaiGershtansky/gists{/gist_id}","starred_url":"https://api.github.com/users/itaiGershtansky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itaiGershtansky/subscriptions","organizations_url":"https://api.github.com/users/itaiGershtansky/orgs","repos_url":"https://api.github.com/users/itaiGershtansky/repos","events_url":"https://api.github.com/users/itaiGershtansky/events{/privacy}","received_events_url":"https://api.github.com/users/itaiGershtansky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/itaiGershtansky/phenotips","description":"PhenoTips provides an easy-to-use Web interface and standardized database back-end for collecting clinical findings observed in patients with possible genetic disorders.","fork":true,"url":"https://api.github.com/repos/itaiGershtansky/phenotips","forks_url":"https://api.github.com/repos/itaiGershtansky/phenotips/forks","keys_url":"https://api.github.com/repos/itaiGershtansky/phenotips/keys{/key_id}","collaborators_url":"https://api.github.com/repos/itaiGershtansky/phenotips/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/itaiGershtansky/phenotips/teams","hooks_url":"https://api.github.com/repos/itaiGershtansky/phenotips/hooks","issue_events_url":"https://api.github.com/repos/itaiGershtansky/phenotips/issues/events{/number}","events_url":"https://api.github.com/repos/itaiGershtansky/phenotips/events","assignees_url":"https://api.github.com/repos/itaiGershtansky/phenotips/assignees{/user}","branches_url":"https://api.github.com/repos/itaiGershtansky/phenotips/branches{/branch}","tags_url":"https://api.github.com/repos/itaiGershtansky/phenotips/tags","blobs_url":"https://api.github.com/repos/itaiGershtansky/phenotips/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/itaiGershtansky/phenotips/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/itaiGershtansky/phenotips/git/refs{/sha}","trees_url":"https://api.github.com/repos/itaiGershtansky/phenotips/git/trees{/sha}","statuses_url":"https://api.github.com/repos/itaiGershtansky/phenotips/statuses/{sha}","languages_url":"https://api.github.com/repos/itaiGershtansky/phenotips/languages","stargazers_url":"https://api.github.com/repos/itaiGershtansky/phenotips/stargazers","contributors_url":"https://api.github.com/repos/itaiGershtansky/phenotips/contributors","subscribers_url":"https://api.github.com/repos/itaiGershtansky/phenotips/subscribers","subscription_url":"https://api.github.com/repos/itaiGershtansky/phenotips/subscription","commits_url":"https://api.github.com/repos/itaiGershtansky/phenotips/commits{/sha}","git_commits_url":"https://api.github.com/repos/itaiGershtansky/phenotips/git/commits{/sha}","comments_url":"https://api.github.com/repos/itaiGershtansky/phenotips/comments{/number}","issue_comment_url":"https://api.github.com/repos/itaiGershtansky/phenotips/issues/comments{/number}","contents_url":"https://api.github.com/repos/itaiGershtansky/phenotips/contents/{+path}","compare_url":"https://api.github.com/repos/itaiGershtansky/phenotips/compare/{base}...{head}","merges_url":"https://api.github.com/repos/itaiGershtansky/phenotips/merges","archive_url":"https://api.github.com/repos/itaiGershtansky/phenotips/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/itaiGershtansky/phenotips/downloads","issues_url":"https://api.github.com/repos/itaiGershtansky/phenotips/issues{/number}","pulls_url":"https://api.github.com/repos/itaiGershtansky/phenotips/pulls{/number}","milestones_url":"https://api.github.com/repos/itaiGershtansky/phenotips/milestones{/number}","notifications_url":"https://api.github.com/repos/itaiGershtansky/phenotips/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/itaiGershtansky/phenotips/labels{/name}","releases_url":"https://api.github.com/repos/itaiGershtansky/phenotips/releases{/id}","created_at":"2015-05-27T17:14:37Z","updated_at":"2015-05-27T17:14:42Z","pushed_at":"2015-08-07T23:44:17Z","git_url":"git://github.com/itaiGershtansky/phenotips.git","ssh_url":"git@github.com:itaiGershtansky/phenotips.git","clone_url":"https://github.com/itaiGershtansky/phenotips.git","svn_url":"https://github.com/itaiGershtansky/phenotips","homepage":"http://phenotips.org/","size":396646,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"phenotips:family-studies","ref":"family-studies","sha":"3cc9ecfae735dd3bc3bac8cb4960770754268187","user":{"login":"phenotips","id":4872353,"avatar_url":"https://avatars.githubusercontent.com/u/4872353?v=3","gravatar_id":"","url":"https://api.github.com/users/phenotips","html_url":"https://github.com/phenotips","followers_url":"https://api.github.com/users/phenotips/followers","following_url":"https://api.github.com/users/phenotips/following{/other_user}","gists_url":"https://api.github.com/users/phenotips/gists{/gist_id}","starred_url":"https://api.github.com/users/phenotips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phenotips/subscriptions","organizations_url":"https://api.github.com/users/phenotips/orgs","repos_url":"https://api.github.com/users/phenotips/repos","events_url":"https://api.github.com/users/phenotips/events{/privacy}","received_events_url":"https://api.github.com/users/phenotips/received_events","type":"Organization","site_admin":false},"repo":{"id":2685841,"name":"phenotips","full_name":"phenotips/phenotips","owner":{"login":"phenotips","id":4872353,"avatar_url":"https://avatars.githubusercontent.com/u/4872353?v=3","gravatar_id":"","url":"https://api.github.com/users/phenotips","html_url":"https://github.com/phenotips","followers_url":"https://api.github.com/users/phenotips/followers","following_url":"https://api.github.com/users/phenotips/following{/other_user}","gists_url":"https://api.github.com/users/phenotips/gists{/gist_id}","starred_url":"https://api.github.com/users/phenotips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phenotips/subscriptions","organizations_url":"https://api.github.com/users/phenotips/orgs","repos_url":"https://api.github.com/users/phenotips/repos","events_url":"https://api.github.com/users/phenotips/events{/privacy}","received_events_url":"https://api.github.com/users/phenotips/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/phenotips/phenotips","description":"PhenoTips provides an easy-to-use Web interface and standardized database back-end for collecting clinical findings observed in patients with possible genetic disorders.","fork":false,"url":"https://api.github.com/repos/phenotips/phenotips","forks_url":"https://api.github.com/repos/phenotips/phenotips/forks","keys_url":"https://api.github.com/repos/phenotips/phenotips/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phenotips/phenotips/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phenotips/phenotips/teams","hooks_url":"https://api.github.com/repos/phenotips/phenotips/hooks","issue_events_url":"https://api.github.com/repos/phenotips/phenotips/issues/events{/number}","events_url":"https://api.github.com/repos/phenotips/phenotips/events","assignees_url":"https://api.github.com/repos/phenotips/phenotips/assignees{/user}","branches_url":"https://api.github.com/repos/phenotips/phenotips/branches{/branch}","tags_url":"https://api.github.com/repos/phenotips/phenotips/tags","blobs_url":"https://api.github.com/repos/phenotips/phenotips/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phenotips/phenotips/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phenotips/phenotips/git/refs{/sha}","trees_url":"https://api.github.com/repos/phenotips/phenotips/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phenotips/phenotips/statuses/{sha}","languages_url":"https://api.github.com/repos/phenotips/phenotips/languages","stargazers_url":"https://api.github.com/repos/phenotips/phenotips/stargazers","contributors_url":"https://api.github.com/repos/phenotips/phenotips/contributors","subscribers_url":"https://api.github.com/repos/phenotips/phenotips/subscribers","subscription_url":"https://api.github.com/repos/phenotips/phenotips/subscription","commits_url":"https://api.github.com/repos/phenotips/phenotips/commits{/sha}","git_commits_url":"https://api.github.com/repos/phenotips/phenotips/git/commits{/sha}","comments_url":"https://api.github.com/repos/phenotips/phenotips/comments{/number}","issue_comment_url":"https://api.github.com/repos/phenotips/phenotips/issues/comments{/number}","contents_url":"https://api.github.com/repos/phenotips/phenotips/contents/{+path}","compare_url":"https://api.github.com/repos/phenotips/phenotips/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phenotips/phenotips/merges","archive_url":"https://api.github.com/repos/phenotips/phenotips/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phenotips/phenotips/downloads","issues_url":"https://api.github.com/repos/phenotips/phenotips/issues{/number}","pulls_url":"https://api.github.com/repos/phenotips/phenotips/pulls{/number}","milestones_url":"https://api.github.com/repos/phenotips/phenotips/milestones{/number}","notifications_url":"https://api.github.com/repos/phenotips/phenotips/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phenotips/phenotips/labels{/name}","releases_url":"https://api.github.com/repos/phenotips/phenotips/releases{/id}","created_at":"2011-11-01T05:55:21Z","updated_at":"2015-08-03T09:23:05Z","pushed_at":"2015-08-10T04:09:00Z","git_url":"git://github.com/phenotips/phenotips.git","ssh_url":"git@github.com:phenotips/phenotips.git","clone_url":"https://github.com/phenotips/phenotips.git","svn_url":"https://github.com/phenotips/phenotips","homepage":"http://phenotips.org/","size":505024,"stargazers_count":17,"watchers_count":17,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":314,"forks":13,"open_issues":314,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/phenotips/phenotips/pulls/1831"},"html":{"href":"https://github.com/phenotips/phenotips/pull/1831"},"issue":{"href":"https://api.github.com/repos/phenotips/phenotips/issues/1831"},"comments":{"href":"https://api.github.com/repos/phenotips/phenotips/issues/1831/comments"},"review_comments":{"href":"https://api.github.com/repos/phenotips/phenotips/pulls/1831/comments"},"review_comment":{"href":"https://api.github.com/repos/phenotips/phenotips/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/phenotips/phenotips/pulls/1831/commits"},"statuses":{"href":"https://api.github.com/repos/phenotips/phenotips/statuses/679be0f6e956086f63611babb8e4b88615c5e9c8"}}}}