{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/202","labels_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/202/comments","events_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/202/events","html_url":"https://github.com/strongloop/loopback-connector-mongodb/pull/202","id":121109340,"number":202,"title":"Implement replaceOrCreate and replaceAttributes","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},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/labels/%23review","name":"#review","color":"ededed"}],"state":"open","locked":false,"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},"milestone":{"url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/milestones/28","html_url":"https://github.com/strongloop/loopback-connector-mongodb/milestones/%23Epic:%20LoopBack%203.0","labels_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/milestones/28/labels","id":1013128,"number":28,"title":"#Epic: LoopBack 3.0","description":null,"creator":{"login":"altsang","id":2261105,"avatar_url":"https://avatars.githubusercontent.com/u/2261105?v=3","gravatar_id":"","url":"https://api.github.com/users/altsang","html_url":"https://github.com/altsang","followers_url":"https://api.github.com/users/altsang/followers","following_url":"https://api.github.com/users/altsang/following{/other_user}","gists_url":"https://api.github.com/users/altsang/gists{/gist_id}","starred_url":"https://api.github.com/users/altsang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altsang/subscriptions","organizations_url":"https://api.github.com/users/altsang/orgs","repos_url":"https://api.github.com/users/altsang/repos","events_url":"https://api.github.com/users/altsang/events{/privacy}","received_events_url":"https://api.github.com/users/altsang/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-03-09T18:11:50Z","updated_at":"2015-12-22T14:49:52Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-12-08T22:01:57Z","updated_at":"2015-12-23T15:59:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/pulls/202","html_url":"https://github.com/strongloop/loopback-connector-mongodb/pull/202","diff_url":"https://github.com/strongloop/loopback-connector-mongodb/pull/202.diff","patch_url":"https://github.com/strongloop/loopback-connector-mongodb/pull/202.patch"},"body":"Please See Spike task: https://github.com/strongloop-internal/scrum-loopback/issues/621\r\n\r\n##### Added functionality:\r\n\r\n*Initial implementation for replaceAttribute\r\n*Initial implementation for replaceOrCreate\r\n\r\n##### Other notes:\r\n\r\n* These changes are related to the changes in the pull requests under `loopback-connector` and `loopback-datasource-juggler`\r\n* It seems test cases cannot be run on windows machines; I need to dig into it.\r\n\r\nConnecto to a spike task: https://github.com/strongloop-internal/scrum-loopback/issues/621\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/comments/166930961","html_url":"https://github.com/strongloop/loopback-connector-mongodb/pull/202#issuecomment-166930961","issue_url":"https://api.github.com/repos/strongloop/loopback-connector-mongodb/issues/202","id":166930961,"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},"created_at":"2015-12-23T15:59:52Z","updated_at":"2015-12-23T15:59:52Z","body":"Hi @superkhau,\r\n\r\nMost of the issues reported by you are code format issues(e.g removing space between `function` keyword and `(`); so I was wondering why we don't have a linter like [eslint](https://github.com/eslint/eslint) integrated with this project? Whenever I push my code they all pass locally; in other words, if I get this code format issues as a part of test, I can fix them before sending a pull request and we can save lots of time...\r\n\r\nCC: @bajtos\r\n\r\nThanks!"}}