{"action":"created","comment":{"url":"https://api.github.com/repos/e-mission/e-mission-server/pulls/comments/51208191","id":51208191,"diff_hunk":"@@ -0,0 +1,9 @@\n+import logging\n+import emission.core.wrapper.wrapperbase as ecwb\n+\n+class TourModel(obecwb.WrapperBase):\n+\n+    props = {\"user_id\" : ecwb.WrapperBase.Access.WORM} # user_id of the E-Missions user the graph represnts ","path":"emission/core/wrapper/tour_model.py","position":6,"original_position":6,"commit_id":"3a886108e618c96391f87267d24ea05c74c4fd65","original_commit_id":"3a886108e618c96391f87267d24ea05c74c4fd65","user":{"login":"shankari","id":2423263,"avatar_url":"https://avatars.githubusercontent.com/u/2423263?v=3","gravatar_id":"","url":"https://api.github.com/users/shankari","html_url":"https://github.com/shankari","followers_url":"https://api.github.com/users/shankari/followers","following_url":"https://api.github.com/users/shankari/following{/other_user}","gists_url":"https://api.github.com/users/shankari/gists{/gist_id}","starred_url":"https://api.github.com/users/shankari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shankari/subscriptions","organizations_url":"https://api.github.com/users/shankari/orgs","repos_url":"https://api.github.com/users/shankari/repos","events_url":"https://api.github.com/users/shankari/events{/privacy}","received_events_url":"https://api.github.com/users/shankari/received_events","type":"User","site_admin":false},"body":"Doesn't the tour model need any other information? like the list of common trips and common places? How am I supposed to retrieve the list of common places and trips from the tour model? Or if the intention is to just retrieve them directly, then why do we need a tour model wrapper?\r\n\r\nAdding the decorators will make it much more clear how we plan on stitching together the objects.","created_at":"2016-01-28T23:58:47Z","updated_at":"2016-01-28T23:58:47Z","html_url":"https://github.com/e-mission/e-mission-server/pull/227#discussion_r51208191","pull_request_url":"https://api.github.com/repos/e-mission/e-mission-server/pulls/227","_links":{"self":{"href":"https://api.github.com/repos/e-mission/e-mission-server/pulls/comments/51208191"},"html":{"href":"https://github.com/e-mission/e-mission-server/pull/227#discussion_r51208191"},"pull_request":{"href":"https://api.github.com/repos/e-mission/e-mission-server/pulls/227"}}},"pull_request":{"url":"https://api.github.com/repos/e-mission/e-mission-server/pulls/227","id":57183500,"html_url":"https://github.com/e-mission/e-mission-server/pull/227","diff_url":"https://github.com/e-mission/e-mission-server/pull/227.diff","patch_url":"https://github.com/e-mission/e-mission-server/pull/227.patch","issue_url":"https://api.github.com/repos/e-mission/e-mission-server/issues/227","number":227,"state":"open","locked":false,"title":"Wrapper for common trips class","user":{"login":"joshzarrabi","id":3689026,"avatar_url":"https://avatars.githubusercontent.com/u/3689026?v=3","gravatar_id":"","url":"https://api.github.com/users/joshzarrabi","html_url":"https://github.com/joshzarrabi","followers_url":"https://api.github.com/users/joshzarrabi/followers","following_url":"https://api.github.com/users/joshzarrabi/following{/other_user}","gists_url":"https://api.github.com/users/joshzarrabi/gists{/gist_id}","starred_url":"https://api.github.com/users/joshzarrabi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshzarrabi/subscriptions","organizations_url":"https://api.github.com/users/joshzarrabi/orgs","repos_url":"https://api.github.com/users/joshzarrabi/repos","events_url":"https://api.github.com/users/joshzarrabi/events{/privacy}","received_events_url":"https://api.github.com/users/joshzarrabi/received_events","type":"User","site_admin":false},"body":"Here is my wrapper class for common trips\r\nBasically what I had before but with better documentation and names","created_at":"2016-01-26T08:52:46Z","updated_at":"2016-01-28T23:58:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82e00ee041144f458f2a0d106fad891705a34d29","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/e-mission/e-mission-server/pulls/227/commits","review_comments_url":"https://api.github.com/repos/e-mission/e-mission-server/pulls/227/comments","review_comment_url":"https://api.github.com/repos/e-mission/e-mission-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/e-mission/e-mission-server/issues/227/comments","statuses_url":"https://api.github.com/repos/e-mission/e-mission-server/statuses/3a886108e618c96391f87267d24ea05c74c4fd65","head":{"label":"joshzarrabi:common_trips","ref":"common_trips","sha":"3a886108e618c96391f87267d24ea05c74c4fd65","user":{"login":"joshzarrabi","id":3689026,"avatar_url":"https://avatars.githubusercontent.com/u/3689026?v=3","gravatar_id":"","url":"https://api.github.com/users/joshzarrabi","html_url":"https://github.com/joshzarrabi","followers_url":"https://api.github.com/users/joshzarrabi/followers","following_url":"https://api.github.com/users/joshzarrabi/following{/other_user}","gists_url":"https://api.github.com/users/joshzarrabi/gists{/gist_id}","starred_url":"https://api.github.com/users/joshzarrabi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshzarrabi/subscriptions","organizations_url":"https://api.github.com/users/joshzarrabi/orgs","repos_url":"https://api.github.com/users/joshzarrabi/repos","events_url":"https://api.github.com/users/joshzarrabi/events{/privacy}","received_events_url":"https://api.github.com/users/joshzarrabi/received_events","type":"User","site_admin":false},"repo":{"id":41275946,"name":"e-mission-server","full_name":"joshzarrabi/e-mission-server","owner":{"login":"joshzarrabi","id":3689026,"avatar_url":"https://avatars.githubusercontent.com/u/3689026?v=3","gravatar_id":"","url":"https://api.github.com/users/joshzarrabi","html_url":"https://github.com/joshzarrabi","followers_url":"https://api.github.com/users/joshzarrabi/followers","following_url":"https://api.github.com/users/joshzarrabi/following{/other_user}","gists_url":"https://api.github.com/users/joshzarrabi/gists{/gist_id}","starred_url":"https://api.github.com/users/joshzarrabi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshzarrabi/subscriptions","organizations_url":"https://api.github.com/users/joshzarrabi/orgs","repos_url":"https://api.github.com/users/joshzarrabi/repos","events_url":"https://api.github.com/users/joshzarrabi/events{/privacy}","received_events_url":"https://api.github.com/users/joshzarrabi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joshzarrabi/e-mission-server","description":"The backend (server) code for the e-mission server","fork":true,"url":"https://api.github.com/repos/joshzarrabi/e-mission-server","forks_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/forks","keys_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/teams","hooks_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/hooks","issue_events_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/issues/events{/number}","events_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/events","assignees_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/assignees{/user}","branches_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/branches{/branch}","tags_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/tags","blobs_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/statuses/{sha}","languages_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/languages","stargazers_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/stargazers","contributors_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/contributors","subscribers_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/subscribers","subscription_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/subscription","commits_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/contents/{+path}","compare_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/merges","archive_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/downloads","issues_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/issues{/number}","pulls_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/pulls{/number}","milestones_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/milestones{/number}","notifications_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/labels{/name}","releases_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/releases{/id}","deployments_url":"https://api.github.com/repos/joshzarrabi/e-mission-server/deployments","created_at":"2015-08-24T01:53:03Z","updated_at":"2015-08-24T01:53:04Z","pushed_at":"2016-01-28T23:26:14Z","git_url":"git://github.com/joshzarrabi/e-mission-server.git","ssh_url":"git@github.com:joshzarrabi/e-mission-server.git","clone_url":"https://github.com/joshzarrabi/e-mission-server.git","svn_url":"https://github.com/joshzarrabi/e-mission-server","homepage":"https://e-mission.eecs.berkeley.edu","size":64720,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"e-mission:master","ref":"master","sha":"e0d619adda12b963a67edaea01cc0be6243a9d9c","user":{"login":"e-mission","id":10713694,"avatar_url":"https://avatars.githubusercontent.com/u/10713694?v=3","gravatar_id":"","url":"https://api.github.com/users/e-mission","html_url":"https://github.com/e-mission","followers_url":"https://api.github.com/users/e-mission/followers","following_url":"https://api.github.com/users/e-mission/following{/other_user}","gists_url":"https://api.github.com/users/e-mission/gists{/gist_id}","starred_url":"https://api.github.com/users/e-mission/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e-mission/subscriptions","organizations_url":"https://api.github.com/users/e-mission/orgs","repos_url":"https://api.github.com/users/e-mission/repos","events_url":"https://api.github.com/users/e-mission/events{/privacy}","received_events_url":"https://api.github.com/users/e-mission/received_events","type":"Organization","site_admin":false},"repo":{"id":26307245,"name":"e-mission-server","full_name":"e-mission/e-mission-server","owner":{"login":"e-mission","id":10713694,"avatar_url":"https://avatars.githubusercontent.com/u/10713694?v=3","gravatar_id":"","url":"https://api.github.com/users/e-mission","html_url":"https://github.com/e-mission","followers_url":"https://api.github.com/users/e-mission/followers","following_url":"https://api.github.com/users/e-mission/following{/other_user}","gists_url":"https://api.github.com/users/e-mission/gists{/gist_id}","starred_url":"https://api.github.com/users/e-mission/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e-mission/subscriptions","organizations_url":"https://api.github.com/users/e-mission/orgs","repos_url":"https://api.github.com/users/e-mission/repos","events_url":"https://api.github.com/users/e-mission/events{/privacy}","received_events_url":"https://api.github.com/users/e-mission/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/e-mission/e-mission-server","description":"The backend (server) code for the e-mission server","fork":false,"url":"https://api.github.com/repos/e-mission/e-mission-server","forks_url":"https://api.github.com/repos/e-mission/e-mission-server/forks","keys_url":"https://api.github.com/repos/e-mission/e-mission-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/e-mission/e-mission-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/e-mission/e-mission-server/teams","hooks_url":"https://api.github.com/repos/e-mission/e-mission-server/hooks","issue_events_url":"https://api.github.com/repos/e-mission/e-mission-server/issues/events{/number}","events_url":"https://api.github.com/repos/e-mission/e-mission-server/events","assignees_url":"https://api.github.com/repos/e-mission/e-mission-server/assignees{/user}","branches_url":"https://api.github.com/repos/e-mission/e-mission-server/branches{/branch}","tags_url":"https://api.github.com/repos/e-mission/e-mission-server/tags","blobs_url":"https://api.github.com/repos/e-mission/e-mission-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/e-mission/e-mission-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/e-mission/e-mission-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/e-mission/e-mission-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/e-mission/e-mission-server/statuses/{sha}","languages_url":"https://api.github.com/repos/e-mission/e-mission-server/languages","stargazers_url":"https://api.github.com/repos/e-mission/e-mission-server/stargazers","contributors_url":"https://api.github.com/repos/e-mission/e-mission-server/contributors","subscribers_url":"https://api.github.com/repos/e-mission/e-mission-server/subscribers","subscription_url":"https://api.github.com/repos/e-mission/e-mission-server/subscription","commits_url":"https://api.github.com/repos/e-mission/e-mission-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/e-mission/e-mission-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/e-mission/e-mission-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/e-mission/e-mission-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/e-mission/e-mission-server/contents/{+path}","compare_url":"https://api.github.com/repos/e-mission/e-mission-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/e-mission/e-mission-server/merges","archive_url":"https://api.github.com/repos/e-mission/e-mission-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/e-mission/e-mission-server/downloads","issues_url":"https://api.github.com/repos/e-mission/e-mission-server/issues{/number}","pulls_url":"https://api.github.com/repos/e-mission/e-mission-server/pulls{/number}","milestones_url":"https://api.github.com/repos/e-mission/e-mission-server/milestones{/number}","notifications_url":"https://api.github.com/repos/e-mission/e-mission-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/e-mission/e-mission-server/labels{/name}","releases_url":"https://api.github.com/repos/e-mission/e-mission-server/releases{/id}","deployments_url":"https://api.github.com/repos/e-mission/e-mission-server/deployments","created_at":"2014-11-07T06:39:02Z","updated_at":"2016-01-22T06:08:49Z","pushed_at":"2016-01-28T23:26:14Z","git_url":"git://github.com/e-mission/e-mission-server.git","ssh_url":"git@github.com:e-mission/e-mission-server.git","clone_url":"https://github.com/e-mission/e-mission-server.git","svn_url":"https://github.com/e-mission/e-mission-server","homepage":"https://e-mission.eecs.berkeley.edu","size":75242,"stargazers_count":2,"watchers_count":2,"language":"Jupyter Notebook","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":34,"forks":21,"open_issues":34,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/e-mission/e-mission-server/pulls/227"},"html":{"href":"https://github.com/e-mission/e-mission-server/pull/227"},"issue":{"href":"https://api.github.com/repos/e-mission/e-mission-server/issues/227"},"comments":{"href":"https://api.github.com/repos/e-mission/e-mission-server/issues/227/comments"},"review_comments":{"href":"https://api.github.com/repos/e-mission/e-mission-server/pulls/227/comments"},"review_comment":{"href":"https://api.github.com/repos/e-mission/e-mission-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/e-mission/e-mission-server/pulls/227/commits"},"statuses":{"href":"https://api.github.com/repos/e-mission/e-mission-server/statuses/3a886108e618c96391f87267d24ea05c74c4fd65"}}}}