{"action":"created","comment":{"url":"https://api.github.com/repos/strongloop/loopback-workspace/pulls/comments/93798832","pull_request_review_id":14334910,"id":93798832,"diff_hunk":"@@ -10,17 +11,26 @@ var DataSource = require('./datamodel/datasource');\n  */\n class Tasks {\n   addModel(modelId, modelDef, cb) {\n-    var workspace = this;\n+    let workspace = this;\n     //Model is a self-aware node which adds itself to the Workspace graph\n     new Model(workspace, modelId, modelDef);\n     cb(null, modelDef);\n   }\n   addDataSource(id, datasource, cb) {\n-    var workspace = this;\n+    let workspace = this;","path":"component/tasks.js","position":22,"original_position":22,"commit_id":"3b75050e97dbc652aa0d143378d547f6f84f9dc8","original_commit_id":"3b75050e97dbc652aa0d143378d547f6f84f9dc8","user":{"login":"superkhau","id":1617364,"avatar_url":"https://avatars.githubusercontent.com/u/1617364?v=3","gravatar_id":"","url":"https://api.github.com/users/superkhau","html_url":"https://github.com/superkhau","followers_url":"https://api.github.com/users/superkhau/followers","following_url":"https://api.github.com/users/superkhau/following{/other_user}","gists_url":"https://api.github.com/users/superkhau/gists{/gist_id}","starred_url":"https://api.github.com/users/superkhau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superkhau/subscriptions","organizations_url":"https://api.github.com/users/superkhau/orgs","repos_url":"https://api.github.com/users/superkhau/repos","events_url":"https://api.github.com/users/superkhau/events{/privacy}","received_events_url":"https://api.github.com/users/superkhau/received_events","type":"User","site_admin":false},"body":"const","created_at":"2016-12-23T20:09:44Z","updated_at":"2016-12-23T20:14:46Z","html_url":"https://github.com/strongloop/loopback-workspace/pull/366#discussion_r93798832","pull_request_url":"https://api.github.com/repos/strongloop/loopback-workspace/pulls/366","_links":{"self":{"href":"https://api.github.com/repos/strongloop/loopback-workspace/pulls/comments/93798832"},"html":{"href":"https://github.com/strongloop/loopback-workspace/pull/366#discussion_r93798832"},"pull_request":{"href":"https://api.github.com/repos/strongloop/loopback-workspace/pulls/366"}}},"pull_request":{"url":"https://api.github.com/repos/strongloop/loopback-workspace/pulls/366","id":99185717,"html_url":"https://github.com/strongloop/loopback-workspace/pull/366","diff_url":"https://github.com/strongloop/loopback-workspace/pull/366.diff","patch_url":"https://github.com/strongloop/loopback-workspace/pull/366.patch","issue_url":"https://api.github.com/repos/strongloop/loopback-workspace/issues/366","number":366,"state":"open","locked":false,"title":"4.x : Workspace Refactoring - Add a property to a model","user":{"login":"deepakrkris","id":7688315,"avatar_url":"https://avatars.githubusercontent.com/u/7688315?v=3","gravatar_id":"","url":"https://api.github.com/users/deepakrkris","html_url":"https://github.com/deepakrkris","followers_url":"https://api.github.com/users/deepakrkris/followers","following_url":"https://api.github.com/users/deepakrkris/following{/other_user}","gists_url":"https://api.github.com/users/deepakrkris/gists{/gist_id}","starred_url":"https://api.github.com/users/deepakrkris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepakrkris/subscriptions","organizations_url":"https://api.github.com/users/deepakrkris/orgs","repos_url":"https://api.github.com/users/deepakrkris/repos","events_url":"https://api.github.com/users/deepakrkris/events{/privacy}","received_events_url":"https://api.github.com/users/deepakrkris/received_events","type":"User","site_admin":false},"body":"Feature to add a model property to a workspace graph\r\n- [X] - add a model-property loopback model\r\n- [X] - add method to connector to handle createModelProperty\r\n- [X] - add a method to workspace tasks for addModelProperty\r\n- [X] - create a new class for model property in workspace graph\r\n- [X] - add a new gherkin cucumber test case","created_at":"2016-12-22T23:30:12Z","updated_at":"2016-12-23T20:14:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d2cd6c6dc4019e00090b7035240fa651fcb21052","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/strongloop/loopback-workspace/pulls/366/commits","review_comments_url":"https://api.github.com/repos/strongloop/loopback-workspace/pulls/366/comments","review_comment_url":"https://api.github.com/repos/strongloop/loopback-workspace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strongloop/loopback-workspace/issues/366/comments","statuses_url":"https://api.github.com/repos/strongloop/loopback-workspace/statuses/3b75050e97dbc652aa0d143378d547f6f84f9dc8","head":{"label":"strongloop:addModelAttributes","ref":"addModelAttributes","sha":"3b75050e97dbc652aa0d143378d547f6f84f9dc8","user":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"repo":{"id":9530789,"name":"loopback-workspace","full_name":"strongloop/loopback-workspace","owner":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop/loopback-workspace","description":"Manage a directory of LoopBack projects for a user, team, or organization","fork":false,"url":"https://api.github.com/repos/strongloop/loopback-workspace","forks_url":"https://api.github.com/repos/strongloop/loopback-workspace/forks","keys_url":"https://api.github.com/repos/strongloop/loopback-workspace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/loopback-workspace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/loopback-workspace/teams","hooks_url":"https://api.github.com/repos/strongloop/loopback-workspace/hooks","issue_events_url":"https://api.github.com/repos/strongloop/loopback-workspace/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/loopback-workspace/events","assignees_url":"https://api.github.com/repos/strongloop/loopback-workspace/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/loopback-workspace/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/loopback-workspace/tags","blobs_url":"https://api.github.com/repos/strongloop/loopback-workspace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/loopback-workspace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/loopback-workspace/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/loopback-workspace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/loopback-workspace/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/loopback-workspace/languages","stargazers_url":"https://api.github.com/repos/strongloop/loopback-workspace/stargazers","contributors_url":"https://api.github.com/repos/strongloop/loopback-workspace/contributors","subscribers_url":"https://api.github.com/repos/strongloop/loopback-workspace/subscribers","subscription_url":"https://api.github.com/repos/strongloop/loopback-workspace/subscription","commits_url":"https://api.github.com/repos/strongloop/loopback-workspace/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/loopback-workspace/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/loopback-workspace/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/loopback-workspace/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/loopback-workspace/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/loopback-workspace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/loopback-workspace/merges","archive_url":"https://api.github.com/repos/strongloop/loopback-workspace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/loopback-workspace/downloads","issues_url":"https://api.github.com/repos/strongloop/loopback-workspace/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/loopback-workspace/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/loopback-workspace/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/loopback-workspace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/loopback-workspace/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/loopback-workspace/releases{/id}","deployments_url":"https://api.github.com/repos/strongloop/loopback-workspace/deployments","created_at":"2013-04-18T20:12:34Z","updated_at":"2016-12-07T03:06:26Z","pushed_at":"2016-12-23T20:08:21Z","git_url":"git://github.com/strongloop/loopback-workspace.git","ssh_url":"git@github.com:strongloop/loopback-workspace.git","clone_url":"https://github.com/strongloop/loopback-workspace.git","svn_url":"https://github.com/strongloop/loopback-workspace","homepage":"http://loopback.io","size":1304,"stargazers_count":22,"watchers_count":22,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":34,"forks":28,"open_issues":34,"watchers":22,"default_branch":"master"}},"base":{"label":"strongloop:4.x","ref":"4.x","sha":"bbd75dfa7cf9a81a0b9adb7234cf775683071cb0","user":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"repo":{"id":9530789,"name":"loopback-workspace","full_name":"strongloop/loopback-workspace","owner":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop/loopback-workspace","description":"Manage a directory of LoopBack projects for a user, team, or organization","fork":false,"url":"https://api.github.com/repos/strongloop/loopback-workspace","forks_url":"https://api.github.com/repos/strongloop/loopback-workspace/forks","keys_url":"https://api.github.com/repos/strongloop/loopback-workspace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/loopback-workspace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/loopback-workspace/teams","hooks_url":"https://api.github.com/repos/strongloop/loopback-workspace/hooks","issue_events_url":"https://api.github.com/repos/strongloop/loopback-workspace/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/loopback-workspace/events","assignees_url":"https://api.github.com/repos/strongloop/loopback-workspace/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/loopback-workspace/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/loopback-workspace/tags","blobs_url":"https://api.github.com/repos/strongloop/loopback-workspace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/loopback-workspace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/loopback-workspace/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/loopback-workspace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/loopback-workspace/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/loopback-workspace/languages","stargazers_url":"https://api.github.com/repos/strongloop/loopback-workspace/stargazers","contributors_url":"https://api.github.com/repos/strongloop/loopback-workspace/contributors","subscribers_url":"https://api.github.com/repos/strongloop/loopback-workspace/subscribers","subscription_url":"https://api.github.com/repos/strongloop/loopback-workspace/subscription","commits_url":"https://api.github.com/repos/strongloop/loopback-workspace/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/loopback-workspace/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/loopback-workspace/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/loopback-workspace/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/loopback-workspace/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/loopback-workspace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/loopback-workspace/merges","archive_url":"https://api.github.com/repos/strongloop/loopback-workspace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/loopback-workspace/downloads","issues_url":"https://api.github.com/repos/strongloop/loopback-workspace/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/loopback-workspace/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/loopback-workspace/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/loopback-workspace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/loopback-workspace/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/loopback-workspace/releases{/id}","deployments_url":"https://api.github.com/repos/strongloop/loopback-workspace/deployments","created_at":"2013-04-18T20:12:34Z","updated_at":"2016-12-07T03:06:26Z","pushed_at":"2016-12-23T20:08:21Z","git_url":"git://github.com/strongloop/loopback-workspace.git","ssh_url":"git@github.com:strongloop/loopback-workspace.git","clone_url":"https://github.com/strongloop/loopback-workspace.git","svn_url":"https://github.com/strongloop/loopback-workspace","homepage":"http://loopback.io","size":1304,"stargazers_count":22,"watchers_count":22,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":34,"forks":28,"open_issues":34,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strongloop/loopback-workspace/pulls/366"},"html":{"href":"https://github.com/strongloop/loopback-workspace/pull/366"},"issue":{"href":"https://api.github.com/repos/strongloop/loopback-workspace/issues/366"},"comments":{"href":"https://api.github.com/repos/strongloop/loopback-workspace/issues/366/comments"},"review_comments":{"href":"https://api.github.com/repos/strongloop/loopback-workspace/pulls/366/comments"},"review_comment":{"href":"https://api.github.com/repos/strongloop/loopback-workspace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strongloop/loopback-workspace/pulls/366/commits"},"statuses":{"href":"https://api.github.com/repos/strongloop/loopback-workspace/statuses/3b75050e97dbc652aa0d143378d547f6f84f9dc8"}}}}
{"actor":{"display_login":"superkhau"}}