{"action":"created","comment":{"url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/pulls/comments/29299284","id":29299284,"diff_hunk":"@@ -2366,27 +2262,27 @@ def _flattenTree2Groups(self,tree, level=0, out=[]):\n                 group['records']=out\n                 out=list()\n \n-                \n+\n     def createSnapshotSummary(self, id, name='summary', description=None, groupBy=None ):\n         \"\"\"\n-        Traverses all sub-Entities of the given Entity \n+        Traverses all sub-Entities of the given Entity\n         and creates a summary object within the given Entity.\n-        \n-        :param id:          Id of Entity to traverse to create Entity \n+\n+        :param id:          Id of Entity to traverse to create Entity\n         :param name:        Name of created summary Entity\n         :param description: Description of created Entity\n         \"\"\"\n         tree=self._traverseTree(id)[0]['records']\n         print self.printEntity(tree)\n-        \n-        ## TODO: Instead of doing a flatten just by the default hierarchy structure, \n-        ##       I should be using an external group-by parameter that determines whether \n+\n+        ## TODO: Instead of doing a flatten just by the default hierarchy structure,\n+        ##       I should be using an external group-by parameter that determines whether\n         ##       and by what property of structure to group by.\n         self._flattenTree2Groups(tree)\n         self.printEntity(tree)\n         self.createEntity({'name': name,\n                            \"description\": description,\n-                           \"concreteType\": \"org.sagebionetworks.repo.model.Summary\", \n+                           \"concreteType\": \"org.sagebionetworks.repo.model.Summary\",\n                            \"groups\": tree,\n                            \"parentId\": id})\n ","path":"synapseclient/client.py","position":1651,"original_position":1651,"commit_id":"40fa12a66b4c97bd79df18ac7462fe4fad338ca5","original_commit_id":"40fa12a66b4c97bd79df18ac7462fe4fad338ca5","user":{"login":"larssono","id":2185472,"avatar_url":"https://avatars.githubusercontent.com/u/2185472?v=3","gravatar_id":"","url":"https://api.github.com/users/larssono","html_url":"https://github.com/larssono","followers_url":"https://api.github.com/users/larssono/followers","following_url":"https://api.github.com/users/larssono/following{/other_user}","gists_url":"https://api.github.com/users/larssono/gists{/gist_id}","starred_url":"https://api.github.com/users/larssono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larssono/subscriptions","organizations_url":"https://api.github.com/users/larssono/orgs","repos_url":"https://api.github.com/users/larssono/repos","events_url":"https://api.github.com/users/larssono/events{/privacy}","received_events_url":"https://api.github.com/users/larssono/received_events","type":"User","site_admin":false},"body":"Remove this function as well\r\n","created_at":"2015-04-28T23:33:41Z","updated_at":"2015-04-28T23:33:41Z","html_url":"https://github.com/Sage-Bionetworks/synapsePythonClient/pull/221#discussion_r29299284","pull_request_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/pulls/221","_links":{"self":{"href":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/pulls/comments/29299284"},"html":{"href":"https://github.com/Sage-Bionetworks/synapsePythonClient/pull/221#discussion_r29299284"},"pull_request":{"href":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/pulls/221"}}},"pull_request":{"url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/pulls/221","id":34223121,"html_url":"https://github.com/Sage-Bionetworks/synapsePythonClient/pull/221","diff_url":"https://github.com/Sage-Bionetworks/synapsePythonClient/pull/221.diff","patch_url":"https://github.com/Sage-Bionetworks/synapsePythonClient/pull/221.patch","issue_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/issues/221","number":221,"state":"open","locked":false,"title":"Remove locationable (fixes SYNPY-233)","user":{"login":"larssono","id":2185472,"avatar_url":"https://avatars.githubusercontent.com/u/2185472?v=3","gravatar_id":"","url":"https://api.github.com/users/larssono","html_url":"https://github.com/larssono","followers_url":"https://api.github.com/users/larssono/followers","following_url":"https://api.github.com/users/larssono/following{/other_user}","gists_url":"https://api.github.com/users/larssono/gists{/gist_id}","starred_url":"https://api.github.com/users/larssono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larssono/subscriptions","organizations_url":"https://api.github.com/users/larssono/orgs","repos_url":"https://api.github.com/users/larssono/repos","events_url":"https://api.github.com/users/larssono/events{/privacy}","received_events_url":"https://api.github.com/users/larssono/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-28T00:13:57Z","updated_at":"2015-04-28T23:33:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8290fb768e54c75ddfd80db4cadca35e75592214","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/pulls/221/commits","review_comments_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/pulls/221/comments","review_comment_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/issues/221/comments","statuses_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/statuses/40fa12a66b4c97bd79df18ac7462fe4fad338ca5","head":{"label":"larssono:remove_locationable","ref":"remove_locationable","sha":"40fa12a66b4c97bd79df18ac7462fe4fad338ca5","user":{"login":"larssono","id":2185472,"avatar_url":"https://avatars.githubusercontent.com/u/2185472?v=3","gravatar_id":"","url":"https://api.github.com/users/larssono","html_url":"https://github.com/larssono","followers_url":"https://api.github.com/users/larssono/followers","following_url":"https://api.github.com/users/larssono/following{/other_user}","gists_url":"https://api.github.com/users/larssono/gists{/gist_id}","starred_url":"https://api.github.com/users/larssono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larssono/subscriptions","organizations_url":"https://api.github.com/users/larssono/orgs","repos_url":"https://api.github.com/users/larssono/repos","events_url":"https://api.github.com/users/larssono/events{/privacy}","received_events_url":"https://api.github.com/users/larssono/received_events","type":"User","site_admin":false},"repo":{"id":6988451,"name":"synapsePythonClient","full_name":"larssono/synapsePythonClient","owner":{"login":"larssono","id":2185472,"avatar_url":"https://avatars.githubusercontent.com/u/2185472?v=3","gravatar_id":"","url":"https://api.github.com/users/larssono","html_url":"https://github.com/larssono","followers_url":"https://api.github.com/users/larssono/followers","following_url":"https://api.github.com/users/larssono/following{/other_user}","gists_url":"https://api.github.com/users/larssono/gists{/gist_id}","starred_url":"https://api.github.com/users/larssono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larssono/subscriptions","organizations_url":"https://api.github.com/users/larssono/orgs","repos_url":"https://api.github.com/users/larssono/repos","events_url":"https://api.github.com/users/larssono/events{/privacy}","received_events_url":"https://api.github.com/users/larssono/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/larssono/synapsePythonClient","description":"python client for the Synapse.   Please visit https://synapse.sagebase.org/ for more information.","fork":true,"url":"https://api.github.com/repos/larssono/synapsePythonClient","forks_url":"https://api.github.com/repos/larssono/synapsePythonClient/forks","keys_url":"https://api.github.com/repos/larssono/synapsePythonClient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/larssono/synapsePythonClient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/larssono/synapsePythonClient/teams","hooks_url":"https://api.github.com/repos/larssono/synapsePythonClient/hooks","issue_events_url":"https://api.github.com/repos/larssono/synapsePythonClient/issues/events{/number}","events_url":"https://api.github.com/repos/larssono/synapsePythonClient/events","assignees_url":"https://api.github.com/repos/larssono/synapsePythonClient/assignees{/user}","branches_url":"https://api.github.com/repos/larssono/synapsePythonClient/branches{/branch}","tags_url":"https://api.github.com/repos/larssono/synapsePythonClient/tags","blobs_url":"https://api.github.com/repos/larssono/synapsePythonClient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/larssono/synapsePythonClient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/larssono/synapsePythonClient/git/refs{/sha}","trees_url":"https://api.github.com/repos/larssono/synapsePythonClient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/larssono/synapsePythonClient/statuses/{sha}","languages_url":"https://api.github.com/repos/larssono/synapsePythonClient/languages","stargazers_url":"https://api.github.com/repos/larssono/synapsePythonClient/stargazers","contributors_url":"https://api.github.com/repos/larssono/synapsePythonClient/contributors","subscribers_url":"https://api.github.com/repos/larssono/synapsePythonClient/subscribers","subscription_url":"https://api.github.com/repos/larssono/synapsePythonClient/subscription","commits_url":"https://api.github.com/repos/larssono/synapsePythonClient/commits{/sha}","git_commits_url":"https://api.github.com/repos/larssono/synapsePythonClient/git/commits{/sha}","comments_url":"https://api.github.com/repos/larssono/synapsePythonClient/comments{/number}","issue_comment_url":"https://api.github.com/repos/larssono/synapsePythonClient/issues/comments{/number}","contents_url":"https://api.github.com/repos/larssono/synapsePythonClient/contents/{+path}","compare_url":"https://api.github.com/repos/larssono/synapsePythonClient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/larssono/synapsePythonClient/merges","archive_url":"https://api.github.com/repos/larssono/synapsePythonClient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/larssono/synapsePythonClient/downloads","issues_url":"https://api.github.com/repos/larssono/synapsePythonClient/issues{/number}","pulls_url":"https://api.github.com/repos/larssono/synapsePythonClient/pulls{/number}","milestones_url":"https://api.github.com/repos/larssono/synapsePythonClient/milestones{/number}","notifications_url":"https://api.github.com/repos/larssono/synapsePythonClient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/larssono/synapsePythonClient/labels{/name}","releases_url":"https://api.github.com/repos/larssono/synapsePythonClient/releases{/id}","created_at":"2012-12-03T19:54:57Z","updated_at":"2015-04-27T22:27:30Z","pushed_at":"2015-04-28T20:23:34Z","git_url":"git://github.com/larssono/synapsePythonClient.git","ssh_url":"git@github.com:larssono/synapsePythonClient.git","clone_url":"https://github.com/larssono/synapsePythonClient.git","svn_url":"https://github.com/larssono/synapsePythonClient","homepage":null,"size":2249,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"Sage-Bionetworks:develop","ref":"develop","sha":"a959bc36dc03c7db08b28440a36db86a945488a9","user":{"login":"Sage-Bionetworks","id":1250897,"avatar_url":"https://avatars.githubusercontent.com/u/1250897?v=3","gravatar_id":"","url":"https://api.github.com/users/Sage-Bionetworks","html_url":"https://github.com/Sage-Bionetworks","followers_url":"https://api.github.com/users/Sage-Bionetworks/followers","following_url":"https://api.github.com/users/Sage-Bionetworks/following{/other_user}","gists_url":"https://api.github.com/users/Sage-Bionetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Sage-Bionetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sage-Bionetworks/subscriptions","organizations_url":"https://api.github.com/users/Sage-Bionetworks/orgs","repos_url":"https://api.github.com/users/Sage-Bionetworks/repos","events_url":"https://api.github.com/users/Sage-Bionetworks/events{/privacy}","received_events_url":"https://api.github.com/users/Sage-Bionetworks/received_events","type":"Organization","site_admin":false},"repo":{"id":5497036,"name":"synapsePythonClient","full_name":"Sage-Bionetworks/synapsePythonClient","owner":{"login":"Sage-Bionetworks","id":1250897,"avatar_url":"https://avatars.githubusercontent.com/u/1250897?v=3","gravatar_id":"","url":"https://api.github.com/users/Sage-Bionetworks","html_url":"https://github.com/Sage-Bionetworks","followers_url":"https://api.github.com/users/Sage-Bionetworks/followers","following_url":"https://api.github.com/users/Sage-Bionetworks/following{/other_user}","gists_url":"https://api.github.com/users/Sage-Bionetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Sage-Bionetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sage-Bionetworks/subscriptions","organizations_url":"https://api.github.com/users/Sage-Bionetworks/orgs","repos_url":"https://api.github.com/users/Sage-Bionetworks/repos","events_url":"https://api.github.com/users/Sage-Bionetworks/events{/privacy}","received_events_url":"https://api.github.com/users/Sage-Bionetworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sage-Bionetworks/synapsePythonClient","description":"Programmatic interface to Synapse services for Python","fork":false,"url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient","forks_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/forks","keys_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/teams","hooks_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/hooks","issue_events_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/issues/events{/number}","events_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/events","assignees_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/assignees{/user}","branches_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/branches{/branch}","tags_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/tags","blobs_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/statuses/{sha}","languages_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/languages","stargazers_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/stargazers","contributors_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/contributors","subscribers_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/subscribers","subscription_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/subscription","commits_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/contents/{+path}","compare_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/merges","archive_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/downloads","issues_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/issues{/number}","pulls_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/pulls{/number}","milestones_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/milestones{/number}","notifications_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/labels{/name}","releases_url":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/releases{/id}","created_at":"2012-08-21T15:32:00Z","updated_at":"2015-04-28T23:26:58Z","pushed_at":"2015-04-28T23:26:58Z","git_url":"git://github.com/Sage-Bionetworks/synapsePythonClient.git","ssh_url":"git@github.com:Sage-Bionetworks/synapsePythonClient.git","clone_url":"https://github.com/Sage-Bionetworks/synapsePythonClient.git","svn_url":"https://github.com/Sage-Bionetworks/synapsePythonClient","homepage":"https://www.synapse.org","size":3387,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":9,"forks":18,"open_issues":9,"watchers":14,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/pulls/221"},"html":{"href":"https://github.com/Sage-Bionetworks/synapsePythonClient/pull/221"},"issue":{"href":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/issues/221"},"comments":{"href":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/issues/221/comments"},"review_comments":{"href":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/pulls/221/comments"},"review_comment":{"href":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/pulls/221/commits"},"statuses":{"href":"https://api.github.com/repos/Sage-Bionetworks/synapsePythonClient/statuses/40fa12a66b4c97bd79df18ac7462fe4fad338ca5"}}}}