{"action":"created","comment":{"url":"https://api.github.com/repos/strongloop/loopback/pulls/comments/98019770","pull_request_review_id":18648410,"id":98019770,"diff_hunk":"@@ -431,6 +431,261 @@ describe('role model', function() {\n     });\n   });\n \n+  it('should support owner role resolver only with flag true', function(done) {\n+    var Message = app.registry.createModel('message',\n+    { content: String },\n+    {\n+      relations: {\n+        user: {\n+          type: 'belongsTo',\n+          model: 'User',\n+          foreignKey: 'userId',\n+        },\n+        sender: {\n+          type: 'belongsTo',\n+          model: 'User',\n+          foreignKey: 'senderId',\n+        },\n+      },\n+      ownerRelations: true,\n+    });\n+\n+    app.model(Message, {dataSource: 'db'});\n+\n+    var password = 'pass';\n+    new Promise((resolve, reject) => {\n+      app.models.User.create(\n+        [\n+          {email: 'user@user.com', password},\n+          {email: 'sender@sender.com', password}\n+        ], (err, users) => {\n+          if (err) return reject(err);\n+          resolve(users);\n+        });\n+    }).then(users => {\n+      var user = users[0];\n+      var sender = users[1];\n+      var userId = user.id;\n+      var senderId = sender.id;\n+      return Promise.props({\n+        sender, user,\n+        messages: new Promise((resolve, reject) => {\n+          Message.create([\n+            {userId}, {senderId}, {}\n+          ], (err, messages) => {\n+            if (err) return reject(err);\n+            resolve(messages);\n+          })\n+        })\n+      });\n+    }).then(data => {\n+      var {sender, user, messages} = data;\n+      var userRole = {\n+        principalType: ACL.USER, principalId: user.id,\n+        model: Message, id: messages[0].id,\n+      };\n+      var senderRole = {\n+        principalType: ACL.USER, principalId: sender.id,\n+        model: Message, id: messages[1].id,\n+      };\n+      var noOwnerRole = {\n+        principalType: ACL.USER, principalId: sender.id,\n+        model: Message, id: messages[2].id,\n+      };\n+\n+      return Promise.all([\n+        new Promise((resolve, reject) => {\n+          Role.isInRole(Role.OWNER, userRole, (err, yes) => {\n+            if (err) return reject(err);\n+            resolve(yes);\n+          })\n+        }),\n+        new Promise((resolve, reject) => {\n+          Role.isInRole(Role.OWNER, senderRole, (err, yes) => {\n+            if (err) return reject(err);\n+            resolve(yes);\n+          });\n+        }),\n+        new Promise((resolve, reject) => {\n+          Role.isInRole(Role.OWNER, noOwnerRole, (err, yes) => {\n+            if (err) return reject(err);\n+            resolve(!yes);\n+          });\n+        }),\n+      ]);\n+    }).map(bool => assert(bool)).then(_ => done());\n+  });\n+\n+  it('should support owner role resolver only with flag array', function(done) {\n+    var Message = app.registry.createModel('message',\n+    { content: String },\n+    {\n+      relations: {\n+        writer: {\n+          type: 'belongsTo',\n+          model: 'User',\n+          foreignKey: 'writerId',\n+        },\n+        sender: {\n+          type: 'belongsTo',\n+          model: 'User',\n+          foreignKey: 'senderId',\n+        },\n+      },\n+      // Only want user relation for role owner resolving\n+      ownerRelations: ['sender'],\n+    });\n+\n+    app.model(Message, {dataSource: 'db'});\n+\n+    var password = 'pass';\n+    new Promise((resolve, reject) => {\n+      app.models.User.create(\n+        [\n+          {email: 'writer@writer.com', password},\n+          {email: 'sender@sender.com', password}\n+        ], (err, users) => {\n+          if (err) return reject(err);\n+          resolve(users);\n+        });\n+    }).then(users => {\n+      var writer = users[0];\n+      var sender = users[1];\n+      var writerId = writer.id;\n+      var senderId = sender.id;\n+      return Promise.props({\n+        sender, writer,\n+        messages: new Promise((resolve, reject) => {\n+          Message.create([\n+            {writerId}, {senderId}, {}\n+          ], (err, messages) => {\n+            if (err) return reject(err);\n+            resolve(messages);\n+          })\n+        })\n+      });\n+    }).then(data => {\n+      var {sender, writer, messages} = data;\n+      var writerRole = {\n+        principalType: ACL.USER, principalId: writer.id,\n+        model: Message, id: messages[0].id,\n+      };\n+      var senderRole = {\n+        principalType: ACL.USER, principalId: sender.id,\n+        model: Message, id: messages[1].id,\n+      };\n+      var noOwnerRole = {\n+        principalType: ACL.USER, principalId: sender.id,\n+        model: Message, id: messages[2].id,\n+      };\n+\n+      return Promise.all([\n+        new Promise((resolve, reject) => {\n+          Role.isInRole(Role.OWNER, writerRole, (err, yes) => {\n+            if (err) return reject(err);\n+            resolve(!yes);\n+          })\n+        }),\n+        new Promise((resolve, reject) => {\n+          Role.isInRole(Role.OWNER, senderRole, (err, yes) => {\n+            if (err) return reject(err);\n+            resolve(yes);\n+          });\n+        }),\n+        new Promise((resolve, reject) => {\n+          Role.isInRole(Role.OWNER, noOwnerRole, (err, yes) => {\n+            if (err) return reject(err);\n+            resolve(!yes);\n+          });\n+        }),\n+      ]);\n+    }).catch(done)\n+      .map(bool => assert(bool))\n+      .then(_ => done());\n+  });\n+\n+  it('should resolve owner when no flag on userId property', function(done) {\n+    var Message = app.registry.createModel('message',\n+    { content: String, userId: Number },\n+    {\n+      relations: {\n+        // It shouldn't resolve the `sender` role\n+        sender: {\n+          type: 'belongsTo',\n+          model: 'User',\n+          foreignKey: 'senderId',\n+        },\n+      }\n+    });\n+\n+    app.model(Message, {dataSource: 'db'});\n+\n+    var password = 'pass';\n+    new Promise((resolve, reject) => {\n+      app.models.User.create(\n+        [\n+          {email: 'user@user.com', password},\n+          {email: 'sender@sender.com', password}\n+        ], (err, users) => {\n+          if (err) return reject(err);\n+          resolve(users);\n+        });\n+    }).then(users => {\n+      var user = users[0];\n+      var sender = users[1];\n+      var userId = user.id;\n+      var senderId = sender.id;\n+      return Promise.props({\n+        sender, user,\n+        messages: new Promise((resolve, reject) => {\n+          Message.create([\n+            {userId}, {userId, senderId}, {}\n+          ], (err, messages) => {\n+            if (err) return reject(err);\n+            resolve(messages);\n+          })\n+        })\n+      });\n+    }).then(data => {\n+      var {sender, user, messages} = data;\n+      var userRole = {\n+        principalType: ACL.USER, principalId: user.id,\n+        model: Message, id: messages[0].id,\n+      };\n+      var senderRole = {\n+        principalType: ACL.USER, principalId: user.id,\n+        model: Message, id: messages[1].id,\n+      };\n+      var noOwnerRole = {\n+        principalType: ACL.USER, principalId: sender.id,\n+        model: Message, id: messages[2].id,\n+      };\n+\n+      return Promise.all([\n+        new Promise((resolve, reject) => {","path":"test/role.test.js","position":67,"original_position":235,"commit_id":"a30458de16fe61cf0907f3b2ad851c110510cce7","original_commit_id":"a30458de16fe61cf0907f3b2ad851c110510cce7","user":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"body":"Please promise-ify `Role.isInRole` and other related APIs you call from new tests. See https://github.com/strongloop/loopback/issues/418 for background and https://github.com/strongloop/loopback/pull/1493/files for an example how to implement such change.\r\n\r\nWould you mind to add Promise support in a new pull request first, before working on this feature? It will help us to keep the git history clean.","created_at":"2017-01-26T15:39:03Z","updated_at":"2017-01-26T15:39:03Z","html_url":"https://github.com/strongloop/loopback/pull/3140#discussion_r98019770","pull_request_url":"https://api.github.com/repos/strongloop/loopback/pulls/3140","_links":{"self":{"href":"https://api.github.com/repos/strongloop/loopback/pulls/comments/98019770"},"html":{"href":"https://github.com/strongloop/loopback/pull/3140#discussion_r98019770"},"pull_request":{"href":"https://api.github.com/repos/strongloop/loopback/pulls/3140"}}},"pull_request":{"url":"https://api.github.com/repos/strongloop/loopback/pulls/3140","id":103296281,"html_url":"https://github.com/strongloop/loopback/pull/3140","diff_url":"https://github.com/strongloop/loopback/pull/3140.diff","patch_url":"https://github.com/strongloop/loopback/pull/3140.patch","issue_url":"https://api.github.com/repos/strongloop/loopback/issues/3140","number":3140,"state":"open","locked":false,"title":"Multiple owners role resolving ","user":{"login":"pierreclr","id":14262431,"avatar_url":"https://avatars.githubusercontent.com/u/14262431?v=3","gravatar_id":"","url":"https://api.github.com/users/pierreclr","html_url":"https://github.com/pierreclr","followers_url":"https://api.github.com/users/pierreclr/followers","following_url":"https://api.github.com/users/pierreclr/following{/other_user}","gists_url":"https://api.github.com/users/pierreclr/gists{/gist_id}","starred_url":"https://api.github.com/users/pierreclr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierreclr/subscriptions","organizations_url":"https://api.github.com/users/pierreclr/orgs","repos_url":"https://api.github.com/users/pierreclr/repos","events_url":"https://api.github.com/users/pierreclr/events{/privacy}","received_events_url":"https://api.github.com/users/pierreclr/received_events","type":"User","site_admin":false},"body":"### Description\r\n\r\nThis PR allows us to resolve multiple belongsTo role\r\n\r\n#### Related issues\r\n\r\n- #3081 mainly\r\n- #3105 because I encountered some problems passing the tests because of my french computer \r\n- #2454 (closed as a duplicate)\r\n- see also https://github.com/strongloop/loopback/pull/3106","created_at":"2017-01-26T12:10:13Z","updated_at":"2017-01-26T15:39:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe4db4eab0347e2a33680a3e8d17917f6030cb48","assignee":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"assignees":[{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/strongloop/loopback/pulls/3140/commits","review_comments_url":"https://api.github.com/repos/strongloop/loopback/pulls/3140/comments","review_comment_url":"https://api.github.com/repos/strongloop/loopback/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/3140/comments","statuses_url":"https://api.github.com/repos/strongloop/loopback/statuses/a30458de16fe61cf0907f3b2ad851c110510cce7","head":{"label":"pierreclr:feature/allow-mutiple-owners-resolving","ref":"feature/allow-mutiple-owners-resolving","sha":"a30458de16fe61cf0907f3b2ad851c110510cce7","user":{"login":"pierreclr","id":14262431,"avatar_url":"https://avatars.githubusercontent.com/u/14262431?v=3","gravatar_id":"","url":"https://api.github.com/users/pierreclr","html_url":"https://github.com/pierreclr","followers_url":"https://api.github.com/users/pierreclr/followers","following_url":"https://api.github.com/users/pierreclr/following{/other_user}","gists_url":"https://api.github.com/users/pierreclr/gists{/gist_id}","starred_url":"https://api.github.com/users/pierreclr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierreclr/subscriptions","organizations_url":"https://api.github.com/users/pierreclr/orgs","repos_url":"https://api.github.com/users/pierreclr/repos","events_url":"https://api.github.com/users/pierreclr/events{/privacy}","received_events_url":"https://api.github.com/users/pierreclr/received_events","type":"User","site_admin":false},"repo":{"id":79108549,"name":"loopback","full_name":"pierreclr/loopback","owner":{"login":"pierreclr","id":14262431,"avatar_url":"https://avatars.githubusercontent.com/u/14262431?v=3","gravatar_id":"","url":"https://api.github.com/users/pierreclr","html_url":"https://github.com/pierreclr","followers_url":"https://api.github.com/users/pierreclr/followers","following_url":"https://api.github.com/users/pierreclr/following{/other_user}","gists_url":"https://api.github.com/users/pierreclr/gists{/gist_id}","starred_url":"https://api.github.com/users/pierreclr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierreclr/subscriptions","organizations_url":"https://api.github.com/users/pierreclr/orgs","repos_url":"https://api.github.com/users/pierreclr/repos","events_url":"https://api.github.com/users/pierreclr/events{/privacy}","received_events_url":"https://api.github.com/users/pierreclr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pierreclr/loopback","description":"LoopBack is an open source Node.js framework built on top of Express optimized for building APIs for mobile, web, and other devices. Connect to multiple data sources, write business logic in Node.js, glue on top of your existing services and data, connect using JS, iOS & Android SDKs.","fork":true,"url":"https://api.github.com/repos/pierreclr/loopback","forks_url":"https://api.github.com/repos/pierreclr/loopback/forks","keys_url":"https://api.github.com/repos/pierreclr/loopback/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pierreclr/loopback/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pierreclr/loopback/teams","hooks_url":"https://api.github.com/repos/pierreclr/loopback/hooks","issue_events_url":"https://api.github.com/repos/pierreclr/loopback/issues/events{/number}","events_url":"https://api.github.com/repos/pierreclr/loopback/events","assignees_url":"https://api.github.com/repos/pierreclr/loopback/assignees{/user}","branches_url":"https://api.github.com/repos/pierreclr/loopback/branches{/branch}","tags_url":"https://api.github.com/repos/pierreclr/loopback/tags","blobs_url":"https://api.github.com/repos/pierreclr/loopback/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pierreclr/loopback/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pierreclr/loopback/git/refs{/sha}","trees_url":"https://api.github.com/repos/pierreclr/loopback/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pierreclr/loopback/statuses/{sha}","languages_url":"https://api.github.com/repos/pierreclr/loopback/languages","stargazers_url":"https://api.github.com/repos/pierreclr/loopback/stargazers","contributors_url":"https://api.github.com/repos/pierreclr/loopback/contributors","subscribers_url":"https://api.github.com/repos/pierreclr/loopback/subscribers","subscription_url":"https://api.github.com/repos/pierreclr/loopback/subscription","commits_url":"https://api.github.com/repos/pierreclr/loopback/commits{/sha}","git_commits_url":"https://api.github.com/repos/pierreclr/loopback/git/commits{/sha}","comments_url":"https://api.github.com/repos/pierreclr/loopback/comments{/number}","issue_comment_url":"https://api.github.com/repos/pierreclr/loopback/issues/comments{/number}","contents_url":"https://api.github.com/repos/pierreclr/loopback/contents/{+path}","compare_url":"https://api.github.com/repos/pierreclr/loopback/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pierreclr/loopback/merges","archive_url":"https://api.github.com/repos/pierreclr/loopback/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pierreclr/loopback/downloads","issues_url":"https://api.github.com/repos/pierreclr/loopback/issues{/number}","pulls_url":"https://api.github.com/repos/pierreclr/loopback/pulls{/number}","milestones_url":"https://api.github.com/repos/pierreclr/loopback/milestones{/number}","notifications_url":"https://api.github.com/repos/pierreclr/loopback/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pierreclr/loopback/labels{/name}","releases_url":"https://api.github.com/repos/pierreclr/loopback/releases{/id}","deployments_url":"https://api.github.com/repos/pierreclr/loopback/deployments","created_at":"2017-01-16T10:40:08Z","updated_at":"2017-01-16T10:40:12Z","pushed_at":"2017-01-26T14:47:23Z","git_url":"git://github.com/pierreclr/loopback.git","ssh_url":"git@github.com:pierreclr/loopback.git","clone_url":"https://github.com/pierreclr/loopback.git","svn_url":"https://github.com/pierreclr/loopback","homepage":"http://loopback.io","size":7684,"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":"strongloop:master","ref":"master","sha":"dfa1f6035bdb6fe6462c1add431cb193e14cb640","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":9325315,"name":"loopback","full_name":"strongloop/loopback","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","description":"LoopBack is an open source Node.js framework built on top of Express optimized for building APIs for mobile, web, and other devices. Connect to multiple data sources, write business logic in Node.js, glue on top of your existing services and data, connect using JS, iOS & Android SDKs.","fork":false,"url":"https://api.github.com/repos/strongloop/loopback","forks_url":"https://api.github.com/repos/strongloop/loopback/forks","keys_url":"https://api.github.com/repos/strongloop/loopback/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/loopback/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/loopback/teams","hooks_url":"https://api.github.com/repos/strongloop/loopback/hooks","issue_events_url":"https://api.github.com/repos/strongloop/loopback/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/loopback/events","assignees_url":"https://api.github.com/repos/strongloop/loopback/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/loopback/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/loopback/tags","blobs_url":"https://api.github.com/repos/strongloop/loopback/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/loopback/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/loopback/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/loopback/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/loopback/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/loopback/languages","stargazers_url":"https://api.github.com/repos/strongloop/loopback/stargazers","contributors_url":"https://api.github.com/repos/strongloop/loopback/contributors","subscribers_url":"https://api.github.com/repos/strongloop/loopback/subscribers","subscription_url":"https://api.github.com/repos/strongloop/loopback/subscription","commits_url":"https://api.github.com/repos/strongloop/loopback/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/loopback/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/loopback/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/loopback/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/loopback/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/loopback/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/loopback/merges","archive_url":"https://api.github.com/repos/strongloop/loopback/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/loopback/downloads","issues_url":"https://api.github.com/repos/strongloop/loopback/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/loopback/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/loopback/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/loopback/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/loopback/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/loopback/releases{/id}","deployments_url":"https://api.github.com/repos/strongloop/loopback/deployments","created_at":"2013-04-09T16:02:18Z","updated_at":"2017-01-26T05:29:21Z","pushed_at":"2017-01-26T14:47:24Z","git_url":"git://github.com/strongloop/loopback.git","ssh_url":"git@github.com:strongloop/loopback.git","clone_url":"https://github.com/strongloop/loopback.git","svn_url":"https://github.com/strongloop/loopback","homepage":"http://loopback.io","size":7687,"stargazers_count":8163,"watchers_count":8163,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":782,"mirror_url":null,"open_issues_count":524,"forks":782,"open_issues":524,"watchers":8163,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strongloop/loopback/pulls/3140"},"html":{"href":"https://github.com/strongloop/loopback/pull/3140"},"issue":{"href":"https://api.github.com/repos/strongloop/loopback/issues/3140"},"comments":{"href":"https://api.github.com/repos/strongloop/loopback/issues/3140/comments"},"review_comments":{"href":"https://api.github.com/repos/strongloop/loopback/pulls/3140/comments"},"review_comment":{"href":"https://api.github.com/repos/strongloop/loopback/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strongloop/loopback/pulls/3140/commits"},"statuses":{"href":"https://api.github.com/repos/strongloop/loopback/statuses/a30458de16fe61cf0907f3b2ad851c110510cce7"}}}}
{"actor":{"display_login":"bajtos"}}