{"action":"created","comment":{"url":"https://api.github.com/repos/NCI-GDC/psqlgraph/pulls/comments/74260154","id":74260154,"diff_hunk":"@@ -142,6 +142,26 @@ def copy(self):\n         )\n         return node\n \n+    def to_json(self):\n+        return {\n+            'node_id': self.node_id,\n+            'label': self.label,\n+            'acl': self.acl,\n+            'properties': self.properties,\n+            'system_annotations': self.system_annotations,\n+            'edges_out': [e.to_json() for e in self.edges_out],\n+            'edges_in': [e.to_json() for e in self.edges_in]\n+        }\n+\n+    @classmethod\n+    def from_json(cls, node_json):\n+        Type = Node.get_subclass(node_json['label'])","path":"psqlgraph/node.py","position":17,"original_position":17,"commit_id":"97fd9be53fa51594709ab75eafe6ee80b0c7e258","original_commit_id":"97fd9be53fa51594709ab75eafe6ee80b0c7e258","user":{"login":"millerjs","id":4062890,"avatar_url":"https://avatars.githubusercontent.com/u/4062890?v=3","gravatar_id":"","url":"https://api.github.com/users/millerjs","html_url":"https://github.com/millerjs","followers_url":"https://api.github.com/users/millerjs/followers","following_url":"https://api.github.com/users/millerjs/following{/other_user}","gists_url":"https://api.github.com/users/millerjs/gists{/gist_id}","starred_url":"https://api.github.com/users/millerjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millerjs/subscriptions","organizations_url":"https://api.github.com/users/millerjs/orgs","repos_url":"https://api.github.com/users/millerjs/repos","events_url":"https://api.github.com/users/millerjs/events{/privacy}","received_events_url":"https://api.github.com/users/millerjs/received_events","type":"User","site_admin":false},"body":"Might be good to check that a type was found here; `NoneType object is not callable` might be confusing to debug","created_at":"2016-08-10T14:53:46Z","updated_at":"2016-08-10T14:53:46Z","html_url":"https://github.com/NCI-GDC/psqlgraph/pull/123#discussion_r74260154","pull_request_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/pulls/123","_links":{"self":{"href":"https://api.github.com/repos/NCI-GDC/psqlgraph/pulls/comments/74260154"},"html":{"href":"https://github.com/NCI-GDC/psqlgraph/pull/123#discussion_r74260154"},"pull_request":{"href":"https://api.github.com/repos/NCI-GDC/psqlgraph/pulls/123"}}},"pull_request":{"url":"https://api.github.com/repos/NCI-GDC/psqlgraph/pulls/123","id":80693280,"html_url":"https://github.com/NCI-GDC/psqlgraph/pull/123","diff_url":"https://github.com/NCI-GDC/psqlgraph/pull/123.diff","patch_url":"https://github.com/NCI-GDC/psqlgraph/pull/123.patch","issue_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/issues/123","number":123,"state":"open","locked":false,"title":"feat(json): add to_json and from_json to nodes and edges","user":{"login":"dankolbman","id":2495894,"avatar_url":"https://avatars.githubusercontent.com/u/2495894?v=3","gravatar_id":"","url":"https://api.github.com/users/dankolbman","html_url":"https://github.com/dankolbman","followers_url":"https://api.github.com/users/dankolbman/followers","following_url":"https://api.github.com/users/dankolbman/following{/other_user}","gists_url":"https://api.github.com/users/dankolbman/gists{/gist_id}","starred_url":"https://api.github.com/users/dankolbman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankolbman/subscriptions","organizations_url":"https://api.github.com/users/dankolbman/orgs","repos_url":"https://api.github.com/users/dankolbman/repos","events_url":"https://api.github.com/users/dankolbman/events{/privacy}","received_events_url":"https://api.github.com/users/dankolbman/received_events","type":"User","site_admin":false},"body":"Json serializers and loaders for edges and nodes.\r\nr? @millerjs ","created_at":"2016-08-09T20:57:41Z","updated_at":"2016-08-10T14:53:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e908276ac663f23b2af7269bb6dc1da5de5264b8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/pulls/123/commits","review_comments_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/pulls/123/comments","review_comment_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/issues/123/comments","statuses_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/statuses/97fd9be53fa51594709ab75eafe6ee80b0c7e258","head":{"label":"NCI-GDC:feat/DAT-77-json-serializable","ref":"feat/DAT-77-json-serializable","sha":"97fd9be53fa51594709ab75eafe6ee80b0c7e258","user":{"login":"NCI-GDC","id":7882952,"avatar_url":"https://avatars.githubusercontent.com/u/7882952?v=3","gravatar_id":"","url":"https://api.github.com/users/NCI-GDC","html_url":"https://github.com/NCI-GDC","followers_url":"https://api.github.com/users/NCI-GDC/followers","following_url":"https://api.github.com/users/NCI-GDC/following{/other_user}","gists_url":"https://api.github.com/users/NCI-GDC/gists{/gist_id}","starred_url":"https://api.github.com/users/NCI-GDC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NCI-GDC/subscriptions","organizations_url":"https://api.github.com/users/NCI-GDC/orgs","repos_url":"https://api.github.com/users/NCI-GDC/repos","events_url":"https://api.github.com/users/NCI-GDC/events{/privacy}","received_events_url":"https://api.github.com/users/NCI-GDC/received_events","type":"Organization","site_admin":false},"repo":{"id":27442291,"name":"psqlgraph","full_name":"NCI-GDC/psqlgraph","owner":{"login":"NCI-GDC","id":7882952,"avatar_url":"https://avatars.githubusercontent.com/u/7882952?v=3","gravatar_id":"","url":"https://api.github.com/users/NCI-GDC","html_url":"https://github.com/NCI-GDC","followers_url":"https://api.github.com/users/NCI-GDC/followers","following_url":"https://api.github.com/users/NCI-GDC/following{/other_user}","gists_url":"https://api.github.com/users/NCI-GDC/gists{/gist_id}","starred_url":"https://api.github.com/users/NCI-GDC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NCI-GDC/subscriptions","organizations_url":"https://api.github.com/users/NCI-GDC/orgs","repos_url":"https://api.github.com/users/NCI-GDC/repos","events_url":"https://api.github.com/users/NCI-GDC/events{/privacy}","received_events_url":"https://api.github.com/users/NCI-GDC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NCI-GDC/psqlgraph","description":"Library for graph-like storage in postgresql using sqlalchemy","fork":false,"url":"https://api.github.com/repos/NCI-GDC/psqlgraph","forks_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/forks","keys_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/teams","hooks_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/hooks","issue_events_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/issues/events{/number}","events_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/events","assignees_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/assignees{/user}","branches_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/branches{/branch}","tags_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/tags","blobs_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/git/refs{/sha}","trees_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/statuses/{sha}","languages_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/languages","stargazers_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/stargazers","contributors_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/contributors","subscribers_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/subscribers","subscription_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/subscription","commits_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/commits{/sha}","git_commits_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/git/commits{/sha}","comments_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/comments{/number}","issue_comment_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/issues/comments{/number}","contents_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/contents/{+path}","compare_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/merges","archive_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/downloads","issues_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/issues{/number}","pulls_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/pulls{/number}","milestones_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/milestones{/number}","notifications_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/labels{/name}","releases_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/releases{/id}","deployments_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/deployments","created_at":"2014-12-02T16:45:42Z","updated_at":"2016-06-24T20:32:52Z","pushed_at":"2016-08-09T21:01:19Z","git_url":"git://github.com/NCI-GDC/psqlgraph.git","ssh_url":"git@github.com:NCI-GDC/psqlgraph.git","clone_url":"https://github.com/NCI-GDC/psqlgraph.git","svn_url":"https://github.com/NCI-GDC/psqlgraph","homepage":null,"size":6119,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":3,"default_branch":"develop"}},"base":{"label":"NCI-GDC:develop","ref":"develop","sha":"82db1c5fd6bb5f6cd526c9bc41603768b538faf8","user":{"login":"NCI-GDC","id":7882952,"avatar_url":"https://avatars.githubusercontent.com/u/7882952?v=3","gravatar_id":"","url":"https://api.github.com/users/NCI-GDC","html_url":"https://github.com/NCI-GDC","followers_url":"https://api.github.com/users/NCI-GDC/followers","following_url":"https://api.github.com/users/NCI-GDC/following{/other_user}","gists_url":"https://api.github.com/users/NCI-GDC/gists{/gist_id}","starred_url":"https://api.github.com/users/NCI-GDC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NCI-GDC/subscriptions","organizations_url":"https://api.github.com/users/NCI-GDC/orgs","repos_url":"https://api.github.com/users/NCI-GDC/repos","events_url":"https://api.github.com/users/NCI-GDC/events{/privacy}","received_events_url":"https://api.github.com/users/NCI-GDC/received_events","type":"Organization","site_admin":false},"repo":{"id":27442291,"name":"psqlgraph","full_name":"NCI-GDC/psqlgraph","owner":{"login":"NCI-GDC","id":7882952,"avatar_url":"https://avatars.githubusercontent.com/u/7882952?v=3","gravatar_id":"","url":"https://api.github.com/users/NCI-GDC","html_url":"https://github.com/NCI-GDC","followers_url":"https://api.github.com/users/NCI-GDC/followers","following_url":"https://api.github.com/users/NCI-GDC/following{/other_user}","gists_url":"https://api.github.com/users/NCI-GDC/gists{/gist_id}","starred_url":"https://api.github.com/users/NCI-GDC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NCI-GDC/subscriptions","organizations_url":"https://api.github.com/users/NCI-GDC/orgs","repos_url":"https://api.github.com/users/NCI-GDC/repos","events_url":"https://api.github.com/users/NCI-GDC/events{/privacy}","received_events_url":"https://api.github.com/users/NCI-GDC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NCI-GDC/psqlgraph","description":"Library for graph-like storage in postgresql using sqlalchemy","fork":false,"url":"https://api.github.com/repos/NCI-GDC/psqlgraph","forks_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/forks","keys_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/teams","hooks_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/hooks","issue_events_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/issues/events{/number}","events_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/events","assignees_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/assignees{/user}","branches_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/branches{/branch}","tags_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/tags","blobs_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/git/refs{/sha}","trees_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/statuses/{sha}","languages_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/languages","stargazers_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/stargazers","contributors_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/contributors","subscribers_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/subscribers","subscription_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/subscription","commits_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/commits{/sha}","git_commits_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/git/commits{/sha}","comments_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/comments{/number}","issue_comment_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/issues/comments{/number}","contents_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/contents/{+path}","compare_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/merges","archive_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/downloads","issues_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/issues{/number}","pulls_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/pulls{/number}","milestones_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/milestones{/number}","notifications_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/labels{/name}","releases_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/releases{/id}","deployments_url":"https://api.github.com/repos/NCI-GDC/psqlgraph/deployments","created_at":"2014-12-02T16:45:42Z","updated_at":"2016-06-24T20:32:52Z","pushed_at":"2016-08-09T21:01:19Z","git_url":"git://github.com/NCI-GDC/psqlgraph.git","ssh_url":"git@github.com:NCI-GDC/psqlgraph.git","clone_url":"https://github.com/NCI-GDC/psqlgraph.git","svn_url":"https://github.com/NCI-GDC/psqlgraph","homepage":null,"size":6119,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/NCI-GDC/psqlgraph/pulls/123"},"html":{"href":"https://github.com/NCI-GDC/psqlgraph/pull/123"},"issue":{"href":"https://api.github.com/repos/NCI-GDC/psqlgraph/issues/123"},"comments":{"href":"https://api.github.com/repos/NCI-GDC/psqlgraph/issues/123/comments"},"review_comments":{"href":"https://api.github.com/repos/NCI-GDC/psqlgraph/pulls/123/comments"},"review_comment":{"href":"https://api.github.com/repos/NCI-GDC/psqlgraph/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NCI-GDC/psqlgraph/pulls/123/commits"},"statuses":{"href":"https://api.github.com/repos/NCI-GDC/psqlgraph/statuses/97fd9be53fa51594709ab75eafe6ee80b0c7e258"}}}}
{"actor":{"display_login":"millerjs"}}