{"action":"created","comment":{"url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/pulls/comments/71534165","id":71534165,"diff_hunk":"@@ -536,6 +536,54 @@ describe('crud-with-options', function() {\n \n   });\n \n+  describe('upsert with where', function() {\n+\n+    beforeEach(seed);\n+\n+    it('should allow upsertWithWhere(data, cb)', function(done) {\n+      User.upsertWithWhere({ name: 'John Smith' }, function() {\n+        User.find({ where: { name: 'John Lennon' }}, function(err, data) {\n+          should.not.exist(err);\n+          data.length.should.equal(1);\n+          User.find({ where: { name: 'John Smith' }}, function(err, data) {\n+            should.not.exist(err);","path":"test/crud-with-options.test.js","position":14,"original_position":14,"commit_id":"a8c469ca95aab85c3a4d22f4a7d420ef612a6318","original_commit_id":"bb2a7baa8da55f0ab88cd4401d5e69eb7f11fb46","user":{"login":"Amir-61","id":10672146,"avatar_url":"https://avatars.githubusercontent.com/u/10672146?v=3","gravatar_id":"","url":"https://api.github.com/users/Amir-61","html_url":"https://github.com/Amir-61","followers_url":"https://api.github.com/users/Amir-61/followers","following_url":"https://api.github.com/users/Amir-61/following{/other_user}","gists_url":"https://api.github.com/users/Amir-61/gists{/gist_id}","starred_url":"https://api.github.com/users/Amir-61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amir-61/subscriptions","organizations_url":"https://api.github.com/users/Amir-61/orgs","repos_url":"https://api.github.com/users/Amir-61/repos","events_url":"https://api.github.com/users/Amir-61/events{/privacy}","received_events_url":"https://api.github.com/users/Amir-61/received_events","type":"User","site_admin":false},"body":"This comment has not been addressed ^","created_at":"2016-07-20T14:23:43Z","updated_at":"2016-07-20T14:23:43Z","html_url":"https://github.com/strongloop/loopback-datasource-juggler/pull/1001#discussion_r71534165","pull_request_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/pulls/1001","_links":{"self":{"href":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/pulls/comments/71534165"},"html":{"href":"https://github.com/strongloop/loopback-datasource-juggler/pull/1001#discussion_r71534165"},"pull_request":{"href":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/pulls/1001"}}},"pull_request":{"url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/pulls/1001","id":77335191,"html_url":"https://github.com/strongloop/loopback-datasource-juggler/pull/1001","diff_url":"https://github.com/strongloop/loopback-datasource-juggler/pull/1001.diff","patch_url":"https://github.com/strongloop/loopback-datasource-juggler/pull/1001.patch","issue_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/1001","number":1001,"state":"open","locked":false,"title":"upsertWithWhere method","user":{"login":"mountain1234585","id":18303722,"avatar_url":"https://avatars.githubusercontent.com/u/18303722?v=3","gravatar_id":"","url":"https://api.github.com/users/mountain1234585","html_url":"https://github.com/mountain1234585","followers_url":"https://api.github.com/users/mountain1234585/followers","following_url":"https://api.github.com/users/mountain1234585/following{/other_user}","gists_url":"https://api.github.com/users/mountain1234585/gists{/gist_id}","starred_url":"https://api.github.com/users/mountain1234585/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mountain1234585/subscriptions","organizations_url":"https://api.github.com/users/mountain1234585/orgs","repos_url":"https://api.github.com/users/mountain1234585/repos","events_url":"https://api.github.com/users/mountain1234585/events{/privacy}","received_events_url":"https://api.github.com/users/mountain1234585/received_events","type":"User","site_admin":false},"body":"Added a new method for performing upsertWithWhere in dao.js\r\n\r\nConnect to strongloop/loopback#2331","created_at":"2016-07-13T18:09:55Z","updated_at":"2016-07-20T14:23:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3876963d8cc71514bfbe4467b895267f4b5885d6","assignee":{"login":"Amir-61","id":10672146,"avatar_url":"https://avatars.githubusercontent.com/u/10672146?v=3","gravatar_id":"","url":"https://api.github.com/users/Amir-61","html_url":"https://github.com/Amir-61","followers_url":"https://api.github.com/users/Amir-61/followers","following_url":"https://api.github.com/users/Amir-61/following{/other_user}","gists_url":"https://api.github.com/users/Amir-61/gists{/gist_id}","starred_url":"https://api.github.com/users/Amir-61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amir-61/subscriptions","organizations_url":"https://api.github.com/users/Amir-61/orgs","repos_url":"https://api.github.com/users/Amir-61/repos","events_url":"https://api.github.com/users/Amir-61/events{/privacy}","received_events_url":"https://api.github.com/users/Amir-61/received_events","type":"User","site_admin":false},"assignees":[{"login":"Amir-61","id":10672146,"avatar_url":"https://avatars.githubusercontent.com/u/10672146?v=3","gravatar_id":"","url":"https://api.github.com/users/Amir-61","html_url":"https://github.com/Amir-61","followers_url":"https://api.github.com/users/Amir-61/followers","following_url":"https://api.github.com/users/Amir-61/following{/other_user}","gists_url":"https://api.github.com/users/Amir-61/gists{/gist_id}","starred_url":"https://api.github.com/users/Amir-61/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amir-61/subscriptions","organizations_url":"https://api.github.com/users/Amir-61/orgs","repos_url":"https://api.github.com/users/Amir-61/repos","events_url":"https://api.github.com/users/Amir-61/events{/privacy}","received_events_url":"https://api.github.com/users/Amir-61/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/pulls/1001/commits","review_comments_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/pulls/1001/comments","review_comment_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/1001/comments","statuses_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/statuses/a8c469ca95aab85c3a4d22f4a7d420ef612a6318","head":{"label":"mountain1234585:upsertNPK","ref":"upsertNPK","sha":"a8c469ca95aab85c3a4d22f4a7d420ef612a6318","user":{"login":"mountain1234585","id":18303722,"avatar_url":"https://avatars.githubusercontent.com/u/18303722?v=3","gravatar_id":"","url":"https://api.github.com/users/mountain1234585","html_url":"https://github.com/mountain1234585","followers_url":"https://api.github.com/users/mountain1234585/followers","following_url":"https://api.github.com/users/mountain1234585/following{/other_user}","gists_url":"https://api.github.com/users/mountain1234585/gists{/gist_id}","starred_url":"https://api.github.com/users/mountain1234585/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mountain1234585/subscriptions","organizations_url":"https://api.github.com/users/mountain1234585/orgs","repos_url":"https://api.github.com/users/mountain1234585/repos","events_url":"https://api.github.com/users/mountain1234585/events{/privacy}","received_events_url":"https://api.github.com/users/mountain1234585/received_events","type":"User","site_admin":false},"repo":{"id":63267897,"name":"loopback-datasource-juggler","full_name":"mountain1234585/loopback-datasource-juggler","owner":{"login":"mountain1234585","id":18303722,"avatar_url":"https://avatars.githubusercontent.com/u/18303722?v=3","gravatar_id":"","url":"https://api.github.com/users/mountain1234585","html_url":"https://github.com/mountain1234585","followers_url":"https://api.github.com/users/mountain1234585/followers","following_url":"https://api.github.com/users/mountain1234585/following{/other_user}","gists_url":"https://api.github.com/users/mountain1234585/gists{/gist_id}","starred_url":"https://api.github.com/users/mountain1234585/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mountain1234585/subscriptions","organizations_url":"https://api.github.com/users/mountain1234585/orgs","repos_url":"https://api.github.com/users/mountain1234585/repos","events_url":"https://api.github.com/users/mountain1234585/events{/privacy}","received_events_url":"https://api.github.com/users/mountain1234585/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mountain1234585/loopback-datasource-juggler","description":"Connect Loopback to various Data Sources","fork":true,"url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler","forks_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/forks","keys_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/teams","hooks_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/hooks","issue_events_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/issues/events{/number}","events_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/events","assignees_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/assignees{/user}","branches_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/branches{/branch}","tags_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/tags","blobs_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/git/refs{/sha}","trees_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/statuses/{sha}","languages_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/languages","stargazers_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/stargazers","contributors_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/contributors","subscribers_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/subscribers","subscription_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/subscription","commits_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/commits{/sha}","git_commits_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/git/commits{/sha}","comments_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/comments{/number}","issue_comment_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/issues/comments{/number}","contents_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/contents/{+path}","compare_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/merges","archive_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/downloads","issues_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/issues{/number}","pulls_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/pulls{/number}","milestones_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/milestones{/number}","notifications_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/labels{/name}","releases_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/releases{/id}","deployments_url":"https://api.github.com/repos/mountain1234585/loopback-datasource-juggler/deployments","created_at":"2016-07-13T17:55:56Z","updated_at":"2016-07-13T17:55:58Z","pushed_at":"2016-07-20T11:18:25Z","git_url":"git://github.com/mountain1234585/loopback-datasource-juggler.git","ssh_url":"git@github.com:mountain1234585/loopback-datasource-juggler.git","clone_url":"https://github.com/mountain1234585/loopback-datasource-juggler.git","svn_url":"https://github.com/mountain1234585/loopback-datasource-juggler","homepage":"http://www.loopback.io","size":5892,"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":"a22ff61af2d7c3edc97705905b4ea6c5566a00da","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":10126908,"name":"loopback-datasource-juggler","full_name":"strongloop/loopback-datasource-juggler","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-datasource-juggler","description":"Connect Loopback to various Data Sources","fork":false,"url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler","forks_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/forks","keys_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/teams","hooks_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/hooks","issue_events_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/events","assignees_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/tags","blobs_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/languages","stargazers_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/stargazers","contributors_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/contributors","subscribers_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/subscribers","subscription_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/subscription","commits_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/merges","archive_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/downloads","issues_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/releases{/id}","deployments_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/deployments","created_at":"2013-05-17T15:56:04Z","updated_at":"2016-06-28T18:45:59Z","pushed_at":"2016-07-20T11:18:27Z","git_url":"git://github.com/strongloop/loopback-datasource-juggler.git","ssh_url":"git@github.com:strongloop/loopback-datasource-juggler.git","clone_url":"https://github.com/strongloop/loopback-datasource-juggler.git","svn_url":"https://github.com/strongloop/loopback-datasource-juggler","homepage":"http://www.loopback.io","size":6224,"stargazers_count":138,"watchers_count":138,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":195,"mirror_url":null,"open_issues_count":207,"forks":195,"open_issues":207,"watchers":138,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/pulls/1001"},"html":{"href":"https://github.com/strongloop/loopback-datasource-juggler/pull/1001"},"issue":{"href":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/1001"},"comments":{"href":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/1001/comments"},"review_comments":{"href":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/pulls/1001/comments"},"review_comment":{"href":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/pulls/1001/commits"},"statuses":{"href":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/statuses/a8c469ca95aab85c3a4d22f4a7d420ef612a6318"}}}}
{"actor":{"display_login":"Amir-61"}}